CI

Code Index MCP

Helps the agent index, search and analyze a code repository with minimal setup.

🧠 Code understandingGitHub stars1,005Updated 2026-07-27License: MITAuth: noneGitHub ↗
Best for code understanding · tested 2026-10-21

All four servers found where compute_total is defined and where it's called, in both clients. Code Index did it in the fewest calls (2 in each client); Serena needed 7 in total, Git 9 and codebase-memory 10. On a 2-file repo this shows they work, not how they scale. On Oct 14 all four also passed in Claude Desktop and ChatGPT (Codex), so call counts from Claude Code and Cursor remain the only tiebreak. Confirmed Oct 21, 2026: a second run passed again in all 4 clients (code-index-mcp 2.17.1).

Test results

Last passed 2026-10-21
Claude CodePassed2026-10-21 · install, connect, tools, agent taskTested with Claude Code 2.1.296 · code-index-mcp 2.17.1 · connected in 2.9s
CursorPassed2026-10-21 · install, connect, tools, agent taskTested with Cursor CLI 2026.10.19-6bbf2c4 · code-index-mcp 2.17.1 · connected in 1.0s
Claude DesktopPassed2026-10-21 · install, connect, tools, agent taskTested with Claude Desktop 2.37337.1 (Linux beta, Electron 44.7.0) · code-index-mcp 2.17.1 · connected in 0.7s
ChatGPT (Codex)Passed2026-10-21 · install, connect, tools, agent taskTested with Codex CLI 0.162.0-alpha.17.2 · code-index-mcp 2.17.1 · connect time not recorded

Server package tested: code-index-mcp 2.17.1 (uv, Python 3.12.15; resolved 2026-10-21)

Direct and key dependencies as resolved: anyio 4.15.1 · httpx 0.28.1 · mcp 1.30.0 · msgpack 1.2.3 · pathspec 1.1.1 · pydantic 2.14.1 · pydantic-settings 2.16.1 · pydantic_core 2.50.1 · sse-starlette 3.5.0 · starlette 1.9.0 · tree-sitter 0.26.0 · tree-sitter-c-sharp 0.23.5 · tree-sitter-java 0.23.5 · tree-sitter-javascript 0.25.0 · tree-sitter-kotlin 1.1.0 · tree-sitter-rust 0.24.2 · tree-sitter-typescript 0.23.2 · tree-sitter-zig 1.1.2 · typing_extensions 4.16.0 · uvicorn 0.54.0 · watchdog 6.0.0

All 40 resolved dependencies
annotated-types==0.8.0
anyio==4.15.1
attrs==26.1.0
certifi==2026.10.19
cffi==2.1.1
click==8.5.0
cryptography==50.0.2
h11==0.16.0
httpcore==1.0.9
httpx==0.28.1
httpx-sse==0.4.3
idna==3.20
jsonschema==4.26.0
jsonschema-specifications==2025.9.1
mcp==1.30.0
msgpack==1.2.3
pathspec==1.1.1
pycparser==3.11
pydantic==2.14.1
pydantic-settings==2.16.1
pydantic_core==2.50.1
PyJWT==2.15.1
python-dotenv==1.2.4
python-multipart==0.0.32
referencing==0.37.0
rpds-py==2026.9.1
sse-starlette==3.5.0
starlette==1.9.0
tree-sitter==0.26.0
tree-sitter-c-sharp==0.23.5
tree-sitter-java==0.23.5
tree-sitter-javascript==0.25.0
tree-sitter-kotlin==1.1.0
tree-sitter-rust==0.24.2
tree-sitter-typescript==0.23.2
tree-sitter-zig==1.1.2
typing-inspection==0.4.4
typing_extensions==4.16.0
uvicorn==0.54.0
watchdog==6.0.0

Captured with: uvx --from code-index-mcp python (importlib.metadata in the same uvx env; equivalent to uv pip freeze).

Full result per app: Does it work with Claude Code? · Does it work with Cursor? · Does it work with Claude Desktop? · Does it work with ChatGPT (Codex)?

Protocol: starts, 14 tools listed · 2026-10-13 · connected in 0.5s

Real test

Passed

One run from our records. When two runs share a date, we show a failure if there is one.

Client
Claude Desktop · Claude Desktop 2.37337.1 (Linux beta, Electron 44.7.0)
Date
Oct 21, 2026
The task we gave
Using only the code-index MCP tools, look at the code repository at /workspace/timmy/harness/sandbox/coderepo. Find which file defines the function compute_total and which other file calls it. Reply with both file names.
What it promised
details not recorded for this run
What happened

3 tool calls recorded. The names were not stored on this run.

Tool result

{"content": [{"type": "text", "text": "Project path set to: /workspace/timmy/harness/sandbox/coderepo. Indexed 2 files. Advanced search enabled (ripgrep)."}], "structuredContent": {"result": "Project path set to: /workspace/timmy/harness/sandbox/coderepo. Indexed 2 files. Advanced search enabled (ripgrep)."}, "isError": false}

Agent reply

The code-index tools are deferred, so I need to load their schemas first. The function compute_total is defined in billing.py, and it is called from utils.py (inside format_receipt).
Verdict
Passed

Install

claude mcp add code-index -- uvx code-index-mcp

Run in your terminal. This exact command is what our harness runs in Claude Code; see the results above.

{
  "mcpServers": {
    "code-index": {
      "command": "uvx",
      "args": [
        "code-index-mcp"
      ]
    }
  }
}

Save as .cursor/mcp.json. This exact config is what our harness runs in Cursor; see the results above.

{
  "mcpServers": {
    "code-index": {
      "command": "uvx",
      "args": [
        "code-index-mcp"
      ]
    }
  }
}

Add to claude_desktop_config.json and restart Claude Desktop. Tested on the Linux beta; see the results above.

[mcp_servers.code-index]
command = "uvx"
args = ["code-index-mcp"]

Add to ~/.codex/config.toml (shared by the ChatGPT (Codex) CLI and the ChatGPT desktop app; Codex runs inside the ChatGPT desktop app). Tested with the ChatGPT (Codex) CLI bundled in the ChatGPT desktop app; see the results above.

Not connecting? Troubleshooting: Claude Code · Cursor · Claude Desktop · ChatGPT (Codex)

Test history

DateCheckResultVersions tested
2026-10-21Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · code-index-mcp 2.17.1
2026-10-21CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.19-6bbf2c4 · code-index-mcp 2.17.1
2026-10-21Claude DesktopPassed
install, connect, tools, agent task
Claude Desktop 2.37337.1 (Linux beta, Electron 44.7.0) · code-index-mcp 2.17.1
2026-10-21ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · code-index-mcp 2.17.1
2026-10-14ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · package version not recorded
2026-10-14Claude DesktopPassed
install, connect, tools, agent task
Claude Desktop 2.37337.1 (Linux beta) · package version not recorded
2026-10-13Protocol (direct stdio)Protocol: starts, 14 tools listedserver reported v1.30.0
2026-10-13Protocol (direct stdio)Protocol: starts, 14 tools listed1.30.0
2026-10-13Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · package version not recorded
2026-10-13CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.12-d47ca18 · package version not recorded

Tested on ToolPassed badge

ToolPassed: passed Claude Code, Cursor, Claude Desktop, ChatGPT (Codex)

Maker of Code Index MCP? It passed in Claude Code, Cursor, Claude Desktop, ChatGPT (Codex) on 2026-10-21. Add this free badge to your README; it links back to this listing. Free, no strings: the badge never changes a result.

[![Tested on ToolPassed](https://toolpassed.com/badge/mcp/code-index.svg)](https://toolpassed.com/mcp/code-index/)

Tools seen by our harness (14)

set_project_pathsearch_code_advancedfind_filesget_file_summaryget_symbol_bodyrefresh_indexbuild_deep_indexget_settings_infocreate_temp_directorycheck_temp_directoryclear_settingsrefresh_search_toolsget_file_watcher_statusconfigure_file_watcher
Featured