codebase-memory-mcp
Indexes a codebase into a persistent knowledge graph your agent can query, shipped as a single static binary with no dependencies.
Test results
Last passed 2026-10-20Server 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)?
Real test
PassedOne 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_graphOther calls recorded:
getMcpToolsToolCallTool 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-mcpRun 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
| Date | Check | Result | Versions tested |
|---|---|---|---|
| 2026-10-20 | Protocol (direct stdio) | Protocol: starts, 17 tools listed | codebase-memory-mcp 0.12.1 · server reported v0.12.1 |
| 2026-10-20 | Claude Code | Passed install, connect, tools, agent task | Claude Code 2.1.296 · codebase-memory-mcp 0.12.1 |
| 2026-10-20 | Cursor | Passed install, connect, tools, agent task | Cursor CLI 2026.10.19-6bbf2c4 · codebase-memory-mcp 0.12.1 |
| 2026-10-14 | Claude Desktop | Passed install, connect, tools, agent task | Claude Desktop 2.37337.1 (Linux beta) · package version not recorded |
| 2026-10-14 | ChatGPT (Codex) | Passed install, connect, tools, agent task | Codex CLI 0.162.0-alpha.17.2 · package version not recorded |
| 2026-10-13 | Protocol (direct stdio) | Protocol: starts, 17 tools listed | 0.11.0 |
| 2026-10-13 | Cursor | Passed install, connect, tools, agent task | Cursor CLI 2026.10.12-d47ca18 · package version not recorded |
| 2026-10-13 | Claude Code | Passed install, connect, tools, agent task | Claude Code 2.1.296 · package version not recorded |
Tested on ToolPassed badge
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.
[](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