CocoIndex Code
CocoIndex Code is an MCP server that adds developer tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Semantic code search over a local repository, with AST-based chunks and incremental re-indexing. It has 2,983 GitHub stars, is released under the Apache-2.0 license and runs locally with uvx cocoindex-code.
github.com/cocoindex-io/cocoindex-code (opens in a new tab)
Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error
Install CocoIndex Code
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"cocoindex-code": {
"command": "uvx",
"args": [
"cocoindex-code"
],
"env": {
"COCOINDEX_CODE_ROOT_PATH": "your-value"
}
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --env COCOINDEX_CODE_ROOT_PATH=your-value --transport stdio cocoindex-code -- uvx cocoindex-codeCursor
{
"mcpServers": {
"cocoindex-code": {
"type": "stdio",
"command": "uvx",
"args": [
"cocoindex-code"
],
"env": {
"COCOINDEX_CODE_ROOT_PATH": "your-value"
}
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"servers": {
"cocoindex-code": {
"type": "stdio",
"command": "uvx",
"args": [
"cocoindex-code"
],
"env": {
"COCOINDEX_CODE_ROOT_PATH": "your-value"
}
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Environment variables
Variables the server reads at startup.
| Name | Required | Description |
|---|---|---|
COCOINDEX_CODE_ROOT_PATH | No | 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. |
About CocoIndex Code
CocoIndex Code provides AST-based semantic search for your codebase, built on the CocoIndex Rust data transformation engine. Use it from the CLI or connect Claude, Codex, Cursor, and other coding agents through a Skill or MCP.
- agents
- code-search
- coding-agent
- indexing
- python
- context-engineering
- mcp
- tree-sitter
- cocoindex
- ast
Similar MCP servers
More developer tools MCP servers
kordoc
chrisryugj/kordoc
Parse Korean documents (HWP, HWPX, PDF, XLSX, DOCX, PPTX) to Markdown; fill forms, diff, render.
Active · last commit Nov 16, 2026
Developer toolsTypeScriptMedplum
medplum/medplum
Securely access and manage FHIR healthcare data stored in Medplum.
Active · last commit Nov 15, 2026
OfficialDeveloper toolsTypeScriptShadcn UI MCP Server
Jpisnice/shadcn-ui-mcp-server
A mcp server to allow LLMS gain context about shadcn ui component structure,usage and installation,compaitable with react,svelte 5,vue & React Native.
Active · last commit Oct 3, 2026
Developer toolsTypeScriptUnla
AmoyLab/Unla
🧩 MCP Gateway - A lightweight gateway service that instantly transforms existing MCP Servers and APIs into MCP servers with zero code changes.
Active · last commit Oct 20, 2026
Developer toolsTypeScriptArgent
software-mansion/argent
Drive iOS Simulators, Android emulators, TVs and Electron/web apps from your coding agent.
Active · last commit Nov 13, 2026
OfficialDeveloper toolsTypeScriptNew-Term Radar
zhuyansen/new-term-radar
New AI model, product and repo names as they surface, and the search terms behind them, sized.
Too new to judge · created Oct 12, 2026
Developer toolsPython
How do I install the CocoIndex Code MCP server?
Add the command uvx cocoindex-code to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is CocoIndex Code free?
The server is open source under the Apache-2.0 license, so running it is free. It does not declare any required API key.
Is CocoIndex Code actively maintained?
The most recent commit was on Nov 5, 2026. The latest release is v0.2.43, published Nov 5, 2026. appsgit only lists MCP servers with a commit in the last six months.