code-index-mcp
Level ALocalA Model Context Protocol (MCP) server that helps large language models index, search, and analyze code repositories with minimal setup
code-index-mcp is an MCP server that helps large language models index, search, and analyze code repositories with minimal setup. It uses a dual-strategy architecture: tree-sitter AST parsing for 10 core languages (Python, JavaScript, TypeScript, Java, Kotlin, C#, Go, Objective-C, Zig, Rust) and a fallback strategy for 50+ other file types. It auto-selects the best available search tool (ugrep, ripgrep, ag, grep) and keeps indexes current via a file watcher, useful for code review, refactoring…
Installation
MCP client config (paste into mcp.json)
{
"mcpServers": {
"johnhuang316-code-index-mcp": {
"command": "uvx",
"args": [
"code-index-mcp"
]
}
}
}Agent install prompt
Copy and paste into Cursor / Claude / other agents to install this MCP for you
Please read this MCP repository and install it into my current environment:
https://github.com/johnhuang316/code-index-mcp
Known working client config (can write into mcp.json):
{
"mcpServers": {
"johnhuang316-code-index-mcp": {
"command": "uvx",
"args": [
"code-index-mcp"
]
}
}
}
Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.