# CocoIndex Code (MCP server)

> 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.

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.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/cocoindex-io/cocoindex-code |
| GitHub stars | 2,983 |
| License | Apache-2.0 |
| Language | Python |
| Transport | stdio |
| Packages | pypi: cocoindex-code |
| Remote URL | none |
| Needs API key | no |
| Official | no |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | Developer tools |
| Latest release | v0.2.43 (Nov 5, 2026) |
| Last commit | Nov 5, 2026 |
| MCP registry name | io.github.cocoindex-io/cocoindex-code |

## Install

### Claude Desktop (claude_desktop_config.json)

```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

```sh
claude mcp add --env COCOINDEX_CODE_ROOT_PATH=your-value --transport stdio cocoindex-code -- uvx cocoindex-code
```

### Cursor (.cursor/mcp.json)

```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)

```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 2026-10-07.

## Environment variables

- `COCOINDEX_CODE_ROOT_PATH`: 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.

## Similar MCP servers

- [kordoc](https://appsgit.com/mcp-servers/kordoc): Parse Korean documents (HWP, HWPX, PDF, XLSX, DOCX, PPTX) to Markdown; fill forms, diff, render. (3,000 stars, MIT)
- [Medplum](https://appsgit.com/mcp-servers/medplum): Securely access and manage FHIR healthcare data stored in Medplum. (2,798 stars, Apache-2.0, official)
- [Shadcn UI MCP Server](https://appsgit.com/mcp-servers/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. (3,098 stars, MIT)
- [Unla](https://appsgit.com/mcp-servers/unla): 🧩 MCP Gateway - A lightweight gateway service that instantly transforms existing MCP Servers and APIs into MCP servers with zero code changes. (2,257 stars, MIT)
- [Argent](https://appsgit.com/mcp-servers/argent): Drive iOS Simulators, Android emulators, TVs and Electron/web apps from your coding agent. (3,198 stars, Apache-2.0, official)
- [New-Term Radar](https://appsgit.com/mcp-servers/new-term-radar): New AI model, product and repo names as they surface, and the search terms behind them, sized. (2,180 stars, MIT, needs API key)

---

Canonical page: https://appsgit.com/mcp-servers/cocoindex-code
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed daily.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
