C

codebase-memory-mcp

Indexes a codebase into a persistent knowledge graph your agent can query, shipped as a single static binary with no dependencies.

🧠 Code understandingGitHub stars48,701Updated 2026-11-14License: MITAuth: noneGitHub ↗

Test results

Last passed 2026-10-20
Claude CodePassed2026-10-20 · install, connect, tools, agent taskTested with Claude Code 2.1.296 · codebase-memory-mcp 0.12.1 · connected in 3.1s
CursorPassed2026-10-20 · install, connect, tools, agent taskTested with Cursor CLI 2026.10.19-6bbf2c4 · codebase-memory-mcp 0.12.1 · connected in 2.5s
Claude DesktopPassed2026-10-14 · install, connect, tools, agent taskTested with Claude Desktop 2.37337.1 (Linux beta) · package version not recorded · connected in 8.0s
ChatGPT (Codex)Passed2026-10-14 · install, connect, tools, agent taskTested with Codex CLI 0.162.0-alpha.17.2 · package version not recorded · connect time not recorded

Server package tested: codebase-memory-mcp 0.12.1 (npm, Node v20.19.2; resolved 2026-10-20)

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, 17 tools listed · 2026-10-20 · connected in 6.2s
🔁 Version 0.12.1 shipped Oct 16, 2026 (0.12.0 had breaking changes and a one-time index rebuild; its npm/PyPI/Go installs were broken until 0.12.1). Retested on Oct 20, 2026 on 0.12.1: passed again in Claude Code and Cursor (found where compute_total is defined and called). The Claude Desktop and ChatGPT (Codex) results are still from 0.11.0 (Oct 14).

Real test

Passed

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

Client
Cursor · Cursor CLI 2026.10.19-6bbf2c4
Date
Oct 20, 2026
The task we gave
Using only the codebase-memory 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

Tool calls:

codebase-memory:list_projectscodebase-memory:search_graphcodebase-memory:trace_pathcodebase-memory:search_graph

Other calls recorded:

getMcpToolsToolCall

Tool result

{"success": {"content": [{"text": {"text": "{\"projects\":[{\"name\":\"workspace-timmy-harness-sandbox-coderepo\",\"root_path\":\"/workspace/timmy/harness/sandbox/coderepo\",\"branch\":\"main\"}],\"total\":1,\"offset\":0,\"limit\":200,\"returned\":1,\"has_more\":false}"}}], "isError": false, "structuredContent": {"projects": [{"name": "workspace-timmy-harness-sandbox-coderepo", "root_path": "/workspace/timmy/harness/sandbox/coderepo", "branch": "main"}], "total": 1, "offset": 0, "limit": 200, "returned": 1, "has_more": false}, "systemReminders": []}}

Agent reply

I’ll use the `codebase-memory` MCP graph/search tools to inspect `/workspace/timmy/harness/sandbox/coderepo`, then identify where `compute_total` is defined and where it’s called. I’m starting by checking the available tool schemas and project indexing status.I’ve confirmed the available `codebase-memory` tools. Next I’ll check whether `/workspace/timmy/harness/sandbox/coderepo` is already indexed; if not, I’ll index it and then trace `compute_total` definition and callers.I found the definition in `billing.py` and identified one inbound caller symbol (`utils.format_receipt`). I’ll resolve that caller to its file path now.`compute_total` is defined in `billing.py`, and it is called from `utils.py`.
Verdict
Passed

Install

claude mcp add codebase-memory -- npx -y codebase-memory-mcp

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

{
  "mcpServers": {
    "codebase-memory": {
      "command": "npx",
      "args": [
        "-y",
        "codebase-memory-mcp"
      ]
    }
  }
}

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

{
  "mcpServers": {
    "codebase-memory": {
      "command": "npx",
      "args": [
        "-y",
        "codebase-memory-mcp"
      ]
    }
  }
}

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

[mcp_servers.codebase-memory]
command = "npx"
args = ["-y", "codebase-memory-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-20Protocol (direct stdio)Protocol: starts, 17 tools listedcodebase-memory-mcp 0.12.1 · server reported v0.12.1
2026-10-20Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · codebase-memory-mcp 0.12.1
2026-10-20CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.19-6bbf2c4 · codebase-memory-mcp 0.12.1
2026-10-14Claude DesktopPassed
install, connect, tools, agent task
Claude Desktop 2.37337.1 (Linux beta) · package version not recorded
2026-10-14ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · package version not recorded
2026-10-13Protocol (direct stdio)Protocol: starts, 17 tools listed0.11.0
2026-10-13CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.12-d47ca18 · package version not recorded
2026-10-13Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · package version not recorded

Tested on ToolPassed badge

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

Maker of codebase-memory-mcp? It passed in Claude Code, Cursor, Claude Desktop, ChatGPT (Codex) on 2026-10-20. 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/codebase-memory.svg)](https://toolpassed.com/mcp/codebase-memory/)

Tools seen by our harness (17)

index_repositorysearch_graphquery_graphtrace_pathget_code_snippetget_file_outlineget_graph_schemacompare_graphsget_architecturesearch_codelist_projectsdelete_projectindex_statuscheck_index_coveragedetect_changesmanage_adringest_traces
Featured