In short.
codebase-memory-mcp is a local repository analysis integration for developers using AI coding assistants, but its graph needs checking against source files because relationships can be missing or unresolved. The README describes a native C backend with 17 MCP tools, persistent SQLite storage, 164 vendored parser grammars and additional type resolution for selected languages. Indexing and queries require no hosted service or generative model. CBM Lens adds an optional beta interface for navigation and local browser chat. Performance claims are project-reported; installation, compatibility, accuracy and security have not been independently tested.
Researched and written by an AI model and checked by a second AI model. How it works
The scope is only README.md from the specified GitHub address, captured at revision f854641dcb32776a143ae86be52d30fb4ee20611, together with the accompanying LICENSE notice. Linked documentation, implementation files, third-party notices, papers, UI assets, model weights, binaries and release scan or provenance records are outside the supplied evidence. Installation, indexing, queries, client integrations, UI behavior, security and performance were not tested.
The overview
What it is
DeusData's codebase-memory-mcp connects a coding assistant to a persistent map of repository symbols, files and relationships. MCP, the Model Context Protocol, lets the assistant request structured information through tools such as search_graph and trace_path. The server is the core product; it can also be queried directly through its command line.
CBM Lens is an optional browser companion labelled open beta v0.0.1. It provides source reading, architecture views, graph navigation, coverage diagnostics and optional local chat. The analysis backend itself does not require a generative model.
Fit for your work
The documented design is useful for repeated questions about an unfamiliar repository: locating a feature, following callers, connecting documentation to implementation or investigating what a change could affect. Its value depends on whether the relevant files and relationships were indexed accurately and remain current.
The README attributes 10 times lower token use and 2.1 times fewer tool calls to a March 2026 study covering 31 repositories. These are project-reported results for particular workloads and agent configurations. The paper and underlying measurements are not supplied, so those figures do not establish expected savings for another project.
Who it suits
Developers already using an MCP-compatible coding assistant can use it to obtain repository context without manually following every reference. Beginners can start with questions about a function or feature; experienced developers can inspect graph relationships, query pagination, deployment links and index diagnostics directly.
Teams maintaining several repositories may benefit from explicit cross-repository linking and optional shared graph snapshots. These features require setup: cross-repository linking must be run explicitly, and shared artifacts need a deliberate publishing cadence to avoid excessive Git history growth.
What it can do
The tools cover symbol and structural search, BM25 text search, semantic search, callers and callees, file outlines, source snippets, architecture summaries and a read-only Cypher subset. Change analysis maps Git differences to indexed symbols, while snapshot comparison reports graph additions and removals.
Supported documentation sections, text-layer PDFs and resolvable references can join the graph. Infrastructure extraction connects supported container, Kubernetes, Helm, Kustomize, Terraform, Terragrunt, Ansible, build and CI forms. Dynamic expressions and unsupported forms can leave relationships unresolved; PDF extraction does not include OCR.
CBM Lens provides visual navigation and source reading. Its optional chat explains selected context and cannot edit files or run tools. Experimental Smart CI combines static relationships with admitted per-test coverage for supported C/C++ harnesses; it does not provide general test selection across all indexed languages.
Using it
What you need
The README documents native releases for macOS, Linux and Windows. The native executable needs no Docker or language runtime. Agent integration requires an MCP-compatible client; direct CLI queries do not require an AI assistant. Minimum practical RAM and disk requirements are unknown.
Optional browser chat requires WebGPU with shader-f16 support. Its default Qwen2.5 Coder 0.5B model downloads about 567 MB after opt-in. Source builds require C and C++ compilers, zlib and Git; building the UI additionally requires Node.js 22 or newer and npm.
All active CBM processes under one account must use the same version, executable build, coordination ABI and canonical cache directory. Installation and update activation coordinate the shutdown of active CBM work, after which open coding-agent sessions need restarting.
How it works
Vendored tree-sitter parsers extract definitions, imports and call sites. Selected languages receive additional type resolution through a native C layer called Hybrid LSP. This implements language-resolution algorithms inside the executable rather than starting an external language server. Other languages rely on less specialized resolution.
The resulting graph persists in local SQLite databases, normally under ~/.cache/codebase-memory-mcp/. A shared coordination daemon manages indexing jobs, watchers and the optional UI. The coding assistant translates questions into graph queries and explains the returned evidence.
Graph paths generally describe static possibilities. Separately collected runtime traces can be ingested when their endpoints resolve to indexed symbols. Static paths alone do not establish which code executed.
Getting started
The documented manual route is to obtain the appropriate archive from [https://github.com/DeusData/codebase-memory-mcp/releases/latest], verify its published SHA-256 checksum, extract it and use the bundled installer. The installer can configure supported clients, instructions, skills, agent profiles and applicable hooks. Integration features vary by client.
The installer documents --skip-config for binary-only installation. Hooks are enabled by default; codebase-memory-mcp install --no-hooks disables managed hooks while retaining MCP registration and other integration files. Manual MCP configuration can instead point the client at the executable's absolute path.
After restarting the client, request repository indexing or use codebase-memory-mcp cli index_repository --repo-path /absolute/path. Automatic first indexing is off by default. Successful indexing through an active MCP session can register a watcher; CLI indexing does not. For Lens, the documented command is codebase-memory-mcp daemon start --open --port=9749.
An example question
The README illustrates asking, "what calls ProcessOrder?" An agent can request trace_path(function_name="ProcessOrder", direction="inbound") and explain the returned call chain. For an actual repository, use the project name returned by list_projects and locate the symbol with search_graph first.
Before changing code based on that answer, inspect the relevant source and use check_index_coverage for the affected paths. An empty caller list can reflect missing relationships or coverage gaps. No actual ProcessOrder results or successful query execution are established by the supplied evidence.
Assessment & evidence
Limits
The 164 grammar count does not establish equal semantic accuracy across languages. Specialized type resolution covers selected languages and constructs. Dynamic dispatch, unresolved templates, stale indexes and excluded files can affect results. Symlinks are skipped, and search_code searches indexed files only. A clean coverage response means no recorded gap, not complete analysis.
Results can be paginated or limited by output budgets. Relevant continuation pages and omission metadata matter when assessing impact. Smart CI is experimental and requires suitable C/C++ harness and coverage evidence; missing or unsuitable evidence broadens its selection or requests a full run.
The README reports occasional Windows Defender detections and describes them as false positives. That explanation and the linked release scan reports are unverified here. Its local-processing claim concerns CBM indexing and storage; data handling by a coding assistant receiving tool output is unknown.
Why the design may help
A reusable graph can let an assistant request a narrow relationship answer instead of repeatedly reconstructing connections from whole files. Combining source locations, graph relationships and coverage information can also make an answer easier to inspect. These are reasonable inferences from the documented design; actual productivity gains remain untested.
Confidence should depend on the particular evidence behind an answer. A resolved relationship with inspectable source is useful positive evidence. Claims about complete impact, absent callers or removable code require broader coverage and checks for relationships the extractor may miss.
Other approaches
Direct source reading and text search are practical alternatives for occasional repository questions, although following relationships then remains manual. Existing IDE symbol navigation may be sufficient for focused definition lookups. These are workflow comparisons inferred from the documented functions; no independent comparison with competing products is supplied.
Within this resource, the CLI provides graph access without an AI client, and CBM Lens provides visual navigation. Both use the same underlying index, so choosing a different interface does not remove its coverage and freshness limits.
Evidence and confidence
The resource description comes from the project's README at [https://github.com/DeusData/codebase-memory-mcp/blob/main/README.md], with a captured copy at [https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/f854641dcb32776a143ae86be52d30fb4ee20611/README.md]. The accompanying licence is available at [https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/f854641dcb32776a143ae86be52d30fb4ee20611/LICENSE].
The README reports historical tests at commit 4d9592b5: 9,376 native tests passed, 11 were skipped and one failed on macOS; 3,970 UI tests reportedly passed. Those results do not establish the test status of the captured revision. Implementation behavior, release verification claims and benchmark reproducibility remain unassessed; nothing was executed.
Access & freshness
Costs
The documented backend needs no hosted indexing service or API key, and the MIT licence grants use without a licence charge. Local indexing still consumes processor time, memory and storage. Hardware requirements, operating costs and expected financial savings for a particular repository are unknown.
A chosen coding assistant may have separate subscription or token charges. Optional browser models require downloads and local resources. Teams that store frequently updated graph artifacts in Git LFS on GitHub face metered LFS storage and bandwidth, and the README notes those objects cannot be pruned without contacting GitHub support; no monetary rates are supplied.
Licence and reuse
The supplied MIT License names copyright 2025 DeusData and permits use, copying, modification, redistribution, sublicensing and sale of the software and associated documentation. Copies or substantial portions must retain the copyright and permission notice. The software is supplied without warranty.
That notice supports redistribution of the captured README with its licence. Terms for bundled third-party components and optional model weights are not established by these two files; the referenced third-party notices and model licences are not supplied.
Version context
The README snapshot was captured on 14 November 2026 at 16:33:53.392 UTC and belongs to source revision f854641dcb32776a143ae86be52d30fb4ee20611. The captured README file has SHA-256 34460ef08df9315c85cea6fe7e86bb70f89ba3d0e2a222d86d7074625f4d6239.
The document labels CBM Lens open beta v0.0.1 and dates its visual recordings to October 2026. Its v0.11.0 release-security examples do not establish the latest backend release. The current release version, present binary contents and changes after this source revision are unknown.
What to do next
Start with a repository and relationship you already understand. Review the installer and intended client changes, verify the chosen release artifact, then index the repository and compare a known caller or dependency path with its source. Check coverage, freshness and any continuation pages before relying on a broader answer.
Confirm watcher ownership if you expect automatic updates, especially after CLI indexing or when working outside Git. For large repositories subject to client timeouts, use the documented asynchronous indexing mode with a daemon that remains alive and poll its status.
Evaluate token use, latency and answer quality on representative tasks before estimating savings. Introduce Smart CI in report-only shadow mode and validate the supported harness and coverage inputs before using it to omit tests.
