# Smart Coding MCP

> Explore codebases with local semantic search.

- **URL**: https://followmcp.com/en/servers/smart-coding-mcp
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 200
- **FMRS Score**: 41/100 (Grade D)
- **Source**: https://github.com/omar-haris/smart-coding-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 18+
- **Auth**: No credential needed

## Overview
Smart Coding MCP is an extensible MCP server that provides semantic code search for AI assistants. It generates embeddings with local AI models and finds relevant code using cosine similarity with exact-match boosting. It can also look up current package versions from registries, index codebases, switch workspaces, and report server status.

## Best for
- AI coding assistant users who want meaning-based search in a local codebase.
- Developers who need current versions across multiple package ecosystems.
- Users who switch between multiple projects in one session.

## Not for
- Users who need a remotely hosted or cloud code-indexing service.
- Users who require client or connection support beyond what the README explicitly documents.

## Required permissions
- Needs access to files in the configured workspace to discover, chunk, and index code.
- Needs to create and manage the local .smart-coding-cache/ directory.
- Package version lookups access the relevant official registries; code indexing and embeddings are described as running locally.

## Risks
- Indexing processes workspace code and caches embeddings locally; verify the workspace path is correct.
- Indexing can use CPU; the README says indexing CPU usage is limited to 50% by default.
- Clearing the cache deletes the entire .smart-coding-cache/ directory and requires reindexing.
- Package version lookups depend on live registry access.

## Client config (JSON)
```json
{"mcpServers":{"smart-coding-mcp":{"command":"smart-coding-mcp","args":["--workspace","/absolute/path/to/your/project"]}}}
```

## Tools (6)
- `a_semantic_search`: Search code by natural-language meaning using semantic similarity and exact-match boosting.
- `d_check_last_version`: Fetch the latest version from official package registries across 20+ ecosystems, including npm, PyPI, and Crates.io.
- `b_index_codebase`: Manually trigger a full codebase reindex.
- `c_clear_cache`: Delete the embeddings cache so the next search or indexing operation starts fresh.
- `e_set_workspace`: Switch the workspace path at runtime and optionally trigger reindexing.
- `f_get_status`: Inspect server, workspace, indexing progress, model configuration, and cache status.
