Skip to content
Cursor

CocoIndex Code for Cursor

io.github.cocoindex-io/cocoindex-code

Semantic code search over a local repository, with AST-based chunks and incremental re-indexing.

client:Cursor transport:stdio runtime:pypi

Install CocoIndex Code in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "cocoindex-code": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "cocoindex-code"
      ],
      "env": {
        "COCOINDEX_CODE_ROOT_PATH": "<COCOINDEX_CODE_ROOT_PATH>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

CocoIndex Code in other clients