Skip to content
appsgit

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

claude_desktop_config.json
{
  "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-code

Cursor

.cursor/mcp.json
{
  "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

.vscode/mcp.json
{
  "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.

NameRequiredDescription
COCOINDEX_CODE_ROOT_PATHNoRoot 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

FAQ

CocoIndex Code FAQ

Still curious? Email info@appsgit.com.

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.