Semantic code search over a local repository, with AST-based chunks and incremental re-indexing.
Connect Runs on your machine
claude mcp add cocoindex-code -e COCOINDEX_CODE_ROOT_PATH=<COCOINDEX_CODE_ROOT_PATH> -- uvx cocoindex-code==0.2.43
{
"mcpServers": {
"cocoindex-code": {
"command": "uvx",
"args": [
"cocoindex-code==0.2.43"
],
"env": {
"COCOINDEX_CODE_ROOT_PATH": "<COCOINDEX_CODE_ROOT_PATH>"
}
}
}
}
{
"mcpServers": {
"cocoindex-code": {
"command": "uvx",
"args": [
"cocoindex-code==0.2.43"
],
"env": {
"COCOINDEX_CODE_ROOT_PATH": "<COCOINDEX_CODE_ROOT_PATH>"
}
}
}
}
{
"servers": {
"cocoindex-code": {
"type": "stdio",
"command": "uvx",
"args": [
"cocoindex-code==0.2.43"
],
"env": {
"COCOINDEX_CODE_ROOT_PATH": "<COCOINDEX_CODE_ROOT_PATH>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
COCOINDEX_CODE_ROOT_PATHOptional | Root directory of the codebase to index. Set it when the client does not start the server inside the codebase. If unset, the server uses its working directory. |
Details
| Package | [email protected] (PYPI, stdio) |
| First published | 5 Nov 2026 |
| Last updated | 5 Nov 2026 |
| Registry name | io.github.cocoindex-io/cocoindex-code |
More developer tools servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
