
Code Index
Wraps Zoekt's trigram search engine to let Claude index and query your local codebases. You get five tools: index_directory to build searchable indexes per repo, search_code with regex and file filters, list_indexes to see what's available, delete_index for cleanup, and index_info for storage details. The search output is deliberately terse, returning grep style filename:line:content tuples with configurable limits on files and matches per file. Query syntax supports language filters, case sensitivity, and boolean operators. Good for when you need Claude to search across multiple large repos without embedding full directory trees in context. Automatically skips node_modules, build artifacts, and binaries during indexing.
- GitHub stars
- 6
- tools
- 5
- transport
- STDIO
- last updated
- Nov 30, 2025
Tools
5 toolsPublic tool metadata for what this MCP can expose to an agent.
index_directoryIndex a source code directory for fast searching.
Index a source code directory for fast searching.
No parameter schema in public metadata yet.
search_codeSearch for code across indexed directories. Returns compact grep-like output to minimize context window usage.
Search for code across indexed directories. Returns compact grep-like output to minimize context window usage.
No parameter schema in public metadata yet.
list_indexesList all indexed directories and their locations.
List all indexed directories and their locations.
No parameter schema in public metadata yet.
delete_indexDelete the index for a specific directory.
Delete the index for a specific directory.
No parameter schema in public metadata yet.
index_infoGet information about the indexing configuration, including storage location.
Get information about the indexing configuration, including storage location.
No parameter schema in public metadata yet.
Sponsors
Readme
Code Index MCP Server
An MCP (Model Context Protocol) server for fast local source code searching using Zoekt.
Features
- Fast code search: Uses Zoekt's trigram-based indexing for fast substring and regex matching
- Per-directory indexes: Each indexed directory gets its own index stored in the user profile
- Rich query language: Supports regex, file filters, language filters, and boolean operators
- Cross-platform: Works on macOS and Linux
Installation
This server is available on the MCP Registry.
Download Pre-built MCPB bundle (experimental)
Download the appropriate .mcpb bundle for your platform from the GitHub Releases page:
code-index-mcp-darwin-arm64.mcpb- macOS Apple Siliconcode-index-mcp-darwin-amd64.mcpb- macOS Intelcode-index-mcp-linux-amd64.mcpb- Linux x64code-index-mcp-linux-arm64.mcpb- Linux ARM64
The .mcpb file is a ZIP archive containing the binary and manifest. You can open it directly in Claude Desktop in order to install it
Details
- Repository
- github.com/trondhindenes/code-index-mcp
- Category
- Search & Web Crawling
- Package
https://github.com/trondhindenes/code-index-mcp/releases/download/1.0.16/code-index-mcp-darwin-amd64.mcpb- Transport
- STDIO
- Registry
- MCP registry, active