@jonyoder/code-index-mcp
v0.1.10
Published
MCP server for semantic code search using vector embeddings
Maintainers
Readme
@jonyoder/code-index-mcp
MCP server for semantic code search using vector embeddings. Pairs with the code-index CLI tool.
What it does
Exposes a code_search tool that AI coding assistants (like Claude Code) use to search your codebase by concept:
"check if string is in slice" → finds StringInSlice in util.go
"how does authentication work" → finds auth packages, token handlers
"database transaction management" → finds BeginTransaction across packagesSetup
1. Build the index
Install the code-index CLI and run:
code-index allThis parses your source code, generates LLM summaries, and builds a searchable vector database in .code-index/.
2. Add the MCP server
Add to your project's .mcp.json:
{
"mcpServers": {
"code-index": {
"command": "npx",
"args": ["@jonyoder/code-index-mcp"]
}
}
}Claude Code will use code_search proactively when working in your codebase.
How it works
On each search query, the MCP server:
- Finds the
.code-index/code-index.dbdatabase (searches upward from cwd) - Embeds the query using the configured provider (Bedrock, OpenAI, or Ollama)
- Searches the SQLite vector database for the closest matches
- Returns results with function signatures, file locations, and summaries
If configured, it also checks for updated databases in the background (via S3 or HTTP URL) so your team always has current search results.
Configuration
The server reads .code-index.json from your repository root for embedding provider settings. See the configuration docs for details.
Requirements
- Node.js 20+
- A built code-index database (
.code-index/code-index.db) - An embedding provider configured (AWS Bedrock, OpenAI, or Ollama)
License
MIT — see LICENSE.
