codebase-memory-mcp
MCP : Standardises the connection between an AI application and systems that expose tools or data
A local MCP server that builds a persistent graph of the repository, code, documentation and infrastructure, with no remote service or key.
Written in C, codebase-memory-mcp indexes very fast: the project claims the Linux kernel in three minutes on a recent laptop. It stores the result in a SQLite database on your machine and exposes seventeen tools to the agent. The installer configures a large number of clients in one go and adds instructions, skills and hooks that add context without blocking calls. On trust, the project is precise: no telemetry, no network calls from the binary, published checksums. Two points to flag to a security team: the Windows binaries are not signed, and an antivirus may flag one, which the project documents as a false positive.
Security reflects where data goes, requested permissions and incidents on record at the verification date. It is not a guarantee of zero risk: check the deployment mode and the connections you enable.
What it does, concretely
A coding agent exploring a repository keeps rereading the same files to work out who calls what, where the documentation lives and how the service is deployed. codebase-memory-mcp addresses this by building a persistent graph of the repository that links code, documentation, configuration and infrastructure. According to the project, focused queries can reduce repeated file reads and token use.
In practice, it is a local MCP server written in C. It analyzes the repository, stores the graph on your machine and exposes 17 tools to the agent: symbol and text search, call tracing, code snippets, file outlines, change detection, index status. Indexing and queries need no hosted service or API key. You can also query the graph from the command line.
The installer detects your clients (Claude Code, Codex CLI, Gemini CLI, Cursor, OpenCode and others, 46 in total) and configures them. It also adds instructions, skills, agent profiles and, depending on the client, hooks. These hooks add context without replacing or blocking the requested call. An optional visual interface, CBM Lens, is in open beta (v0.0.1).
The tool is aimed at developers and teams who use a coding agent on repositories large enough for it to get lost, including ones with Docker, Kubernetes or Terraform. It is a weaker fit if you do not want an installer to modify your agents' configuration, or if your security team requires signed Windows binaries. Test selection (Smart CI) is experimental and currently covers only C/C++.
What it offers
- ·A persistent local graph links code, documentation, configuration and infrastructure (Docker, Kubernetes, Helm, Terraform, Ansible, Make, CI).
- ·17 MCP tools, including search_graph, search_code, trace_path, get_code_snippet and get_file_outline, let the agent find code and follow relationships.
- ·Search combines graph filters, full-text and local semantic search, with type resolution (Hybrid LSP) for supported languages.
- ·detect_changes and compare_graphs map a diff to affected symbols, compare index snapshots and help find related tests.
- ·check_index_coverage and index_status show what the index skipped or only partly covers, so you know when to read the source directly.
- ·The installer configures 46 agent clients (automatically or conditionally) and adds instructions, skills, Scout, Verify and Auditor profiles, and hooks depending on the client.
- ·CBM Lens, an optional interface in open beta (v0.0.1), offers a source reader, architecture maps, a 3D Galaxy view and a local code chat.
- ·Smart CI, experimental, offers explained test selection for supported C/C++ suites and broadens the run when evidence is missing.
In practice
- Price
- Free
- Commercial use
- Commercial use: yes
- Available on
- claude-code, codex, cursor, gemini-cli, opencode, any-agent
- FR interface
- No
Security and data
- Rating
- Security: one caveat, see the card
- Your data
- Data stays local
- Maintenance
- Active
- Last release
- 16 October 2026
Links and repository checked on 30 November 2026 · added on 30 November 2026
How to install codebase-memory-mcp
curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash