Code Index MCP Server
Fast local source code searching using Zoekt trigram-based indexing
Code Index scores 54 (Fair), licensed MIT and written in Go. It installs as a local process. It declares 9 tools. Filed under Developer tools. GitHub shows 7 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
54 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
70/100 for listing completeness. Lost points: 9 of 9 tools barely described, short summary, no docs link.
How quality is graded
Where the 54 comes from
22 + 5 + 3 + 10 + 4 + 10 = 54. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 5 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "trondhindenes-code-index-mcp": { "command": "npx", "args": [ "-y", "https://github.com/trondhindenes/code-index-mcp/releases/download/1.0.16/code-index-mcp-darwin-amd64.mcpb" ] } }}
Environment variables
This server does not declare environment variables.
Tools9Tool docs quality grade F
All capabilitiesmacOS Intel
macOS Apple Silicon
Linux x64
Linux ARM64
delete_indextoolindex_directorytoolindex_infotoollist_indexestoolsearch_codetool
About
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
Manual installation (recommended)
In order to get the binary onto your computer, you can do one of the following:
Download from releases
Go to GitHub Releases and download the appropriate file (not mcpb but the tar/gzipped ones corresponding to your platform). For example:
curl -sL https://github.com/trondhindenes/code-index-mcp/releases/download/1.0.13/code-index-mcp-darwin-arm64.tar.gz | tar xz
chmod +x code-index-mcp
Using Go
go install github.com/trondhindenes/code-index-mcp@latest
Build from Source
git clone https://github.com/trondhindenes/code-index-mcp
cd code-index-mcp
go build -o code-index-mcp .
Configuration
Now that you have the binary installed locally, you can register it in your tools of choice. This should not be necessary if you installed via mcpb bundle but your mileage may vary.
Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"code-index": {
"command": "/path/to/code-index-mcp"
}
}
}
Claude Code
Run the following:
claude mcp add --scope user --transport stdio code-index /path/to/code-index-mcp
Environment Variables
CODE_INDEX_DIR: Override the default index storage location
Default index locations:
- macOS:
~/Library/Application Support/code-index/ - Linux:
~/.local/share/code-index/or$XDG_DATA_HOME/code-index/
Available Tools
index_directory
Index a source code directory for fast searching.
Parameters:
directory(required): The path to the directory to index
Example:
Index the directory /Users/me/projects/myapp
search_code
Search for code across indexed directories. Returns compact grep-like output to minimize context window usage.
Parameters:
query(required): The search query using Zoekt syntaxdirectory(optional): Limit search to a specific indexed directorymax_files(optional): Maximum files to return (default: 20)max_lines_per_file(optional): Maximum matches per file (default: 3)files_only(optional): Only return file paths, no line content (default: false)
Output Format:
/path/to/file.go:42: matching line content here
/path/to/file.go:58: another matching line
... and 5 more matches in this file
Query Syntax Examples:
func main- Simple text searchfile:\.go$ func main- Search only in .go fileslang:python class.*Model- Search in Python files-test func main- Exclude files containing "test"case:yes MyFunc- Case-sensitive search
list_indexes
List all indexed directories and their locations.
delete_index
Delete the index for a specific directory.
Parameters:
directory(required): The path to the directory whose index should be deleted
index_info
Get information about the indexing configuration, including storage location.
Skipped Directories
The following directories are automatically skipped during indexing:
- Hidden directories (starting with
.) node_modules,vendor,__pycache__target,build,distvenv,.venv,env,.env
Skipped Files
Binary files and common non-code files are automatically skipped, including:
- Executables (
.exe,.dll,.so,.dylib) - Archives (
.zip,.tar,.gz) - Images (
.png,.jpg,.gif) - Documents (
.pdf,.doc,.docx)
License
MIT
Frequently asked questions
What is Code Index MCP Server?
Fast local source code searching using Zoekt trigram-based indexing
How do I install Code Index MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Code Index MCP Server runs locally from the MCP bundle https://github.com/trondhindenes/code-index-mcp/releases/download/1.0.16/code-index-mcp-darwin-amd64.mcpb with the command npx -y https://github.com/trondhindenes/code-index-mcp/releases/download/1.0.16/code-index-mcp-darwin-amd64.mcpb.
Is Code Index MCP Server free and open source?
Yes. Code Index MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Code Index MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Code Index MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Code Index MCP Server provide?
Code Index MCP Server provides 9 tools, including code-index-mcp-darwin-amd64.mcpb, code-index-mcp-darwin-arm64.mcpb, code-index-mcp-linux-amd64.mcpb, and code-index-mcp-linux-arm64.mcpb. See the full tool list for descriptions and parameters.
How is Code Index MCP Server's trust score calculated?
Code Index MCP Server scores 54 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.