Persistent codebase knowledge graph. Survives session restarts and context compaction.
Persistent codebase knowledge graph. Survives session restarts and context compaction.
Built-in 3D graph visualization (UI variant) — explore your knowledge graph at localhost:9749
Installation goes through your MCP client rather than a global install: point it at codebase-memory-mcp on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
Built — in graph visualization** — 3D interactive UI at localhost:9749 (optional UI binary variant)Infrastructure-as — code indexing** — Dockerfiles, Kubernetes manifests, and Kustomize overlays indexed as graph nodes with cross-references. Resource nodes for K8scodebase-memory-mcp — -.tar.gz (macOS/Linux) or .zip (Windows) — standardcodebase-memory-mcp-ui — -.tar.gz / .zip — with graph visualizationinstall.sh — ** add --ui (see Quick Start)PyPI — ** CBM_VARIANT=ui pip install codebase-memory-mcpManual — ** download the codebase-memory-mcp-ui-- archiveCypher — like queries**: MATCH (f:Function)-[:CALLS]->(g) WHERE f.name = 'main' RETURN g.nameMulti — galaxy 3D UI layout** for cross-repo architecture visualizationCross — repo architecture summary** combining services, routes, and dependencies across the indexed fleetRAM — first pipeline**: LZ4 compression, in-memory SQLite, single dump at end. Memory released afterAuto-sync — Background watcher detects file changes and re-indexes automaticallycodebase-memory-mcp — -.tar.gz (macOS/Linux) or .zip (Windows) — standardcodebase-memory-mcp-ui — -.tar.gz / .zip — with graph visualizationinstall.sh — ** add --ui (see Quick Start)Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| index_repository | Index a repository into the graph. Auto-sync keeps it fresh after that. Waits for the whole index by default; pass async: true to start it in the daemon and ret |
| list_projects | List all indexed projects with node/edge counts. |
| delete_project | Remove a project and all its graph data. |
| index_status | Check indexing status of a project. |
| check_index_coverage | Check whether exact paths or a scope are indexed and fresh. A clean result means no recorded gap, not proof of completeness. |
| search_graph | Structural, BM25, and semantic search. Page structural rows with offset/limit and ranked semantic rows independently with semantic_offset/semantic_limit. |
| trace_path | BFS traversal — who calls a function and what it calls (alias: trace_call_path). Depth 1-5. |
| detect_changes | Map git diff to affected symbols + blast radius with risk classification. |
| query_graph | Execute Cypher-like graph queries (read-only). |
| get_graph_schema | Node/edge counts, relationship patterns, property definitions per label. Run this first. |
| compare_graphs | Compare two indexed snapshots: node/edge additions and removals between a base and a target. |
| get_code_snippet | Read source code for a function by qualified name. |
| get_file_outline | Declaration outline of one repository-relative file in source order, with optional label filter and paging. |
| get_architecture | Codebase overview: languages, packages, routes, hotspots, clusters, ADR. |
| search_code | Grep-like text search within indexed project files. |
| manage_adr | CRUD for Architecture Decision Records (get reads, update replaces the whole document, set_sections rewrites only the named sections and leaves every other byte |
| ingest_traces | Ingest runtime traces to validate HTTP_CALLS edges. |
{
"mcpServers": {
"codebase-memory-mcp": {
"command": "/path/to/codebase-memory-mcp",
"args": []
}
}
}From the project documentation. Replace placeholders and example paths before connecting.
A knowledge graph your assistant keeps between sessions — entities, relations and observations that persist.
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Your workspace, on speaking terms with AI — search, read and write Notion pages and databases.
A structured scratchpad for hard problems — stepwise reasoning with revisions, branches and visible logic.
Symbol-level code navigation, refactoring and memory for coding agents — the IDE brain your assistant has been missing.
Stop letting your assistant hallucinate n8n node parameters — this server hands it the real schemas, templates and validation.