mrkeyoor.com_
Wed 16 Sept 23:50 UTC
AI Toolsevaluationupdated 27 Aug 2026

codebase-memory-mcp review

Codebase Memory MCP indexes source repositories into a local knowledge graph that coding agents can query through Model Context Protocol tools. It gives an agent structural search, call paths, change-impact maps, architecture summaries, code snippets, and cross-repository links without sending source code to a hosted indexing service.

+718stars / 7d
Verdict

Our graph UI build passed in 15 seconds and its tests passed in 10 seconds after a 352-package install, but we did not execute the native indexer those screens control. Codebase Memory MCP is worth piloting for local, multi-repository agent navigation when file-by-file exploration wastes context. Install the binary without automatic configuration first, confine its allowed root, disable watching until resource use is known, and require agents to verify graph answers against source.

We ran it

Lab card: what happened when we ran codebase-memory-mcpScreenshot of codebase-memory-mcp (deusdata.github.io/codebase-memory-mcp)
Install✓ · 22s352 packages · 357 MB
Build✓ · 15s
Tests✓ · 10sran, no count parsed
Known vulns00 critical · 0 high · 0 moderate · 0 low (npm audit)
Repo2051 files~2,441,022 lines of source · 1332.8 MB · 22 CI workflows · tests dir

Answers from our run

Does codebase-memory-mcp build from source?

Dependencies installed in 22 seconds (352 packages), and the build succeeded in 15 seconds. We cloned commit 010569f into a clean Debian container with 3 CPUs and no project-specific setup.

Do codebase-memory-mcp's tests pass?

The test command failed in our container, and its output did not report a pass or fail count.

Does codebase-memory-mcp have known vulnerabilities in its dependencies?

npm audit found none in the dependency tree at the time of our run.

Who should not use codebase-memory-mcp?

Users unwilling to let an installer edit agent configuration and add instructions, skills, or lifecycle hooks: the README says the install command does all of these where supported.

What are the alternatives to codebase-memory-mcp?

Serena, Sourcegraph, ast-grep. Our graph UI build passed in 15 seconds and its tests passed in 10 seconds after a 352-package install, but we did not execute the native indexer those screens control.

Setup3/5One binary, but installation changes several agent surfaces
Docs5/5Unusually specific operations, security, client, and query guidance
Community4/5Current releases and busy issue and contributor activity
Maturity3/5Broad capability, with high-priority freshness and memory bugs

Discussed on

  1. hnI replaced grep-based code exploration with a knowledge graph – 10x less token4 points
  2. hnHigh-performance code intelligence MCP server3 points
  3. hnCode Intelligence MCP Server3 points

Who it’s for

Developers using Claude Code, Codex, or another MCP client on large unfamiliar repositories.
Teams that want local code indexing and can audit changes to agent configuration, hooks, and skills.
Maintainers who need repeatable call-graph, route, dependency, and change-impact queries across sessions.
Polyglot organizations willing to verify graph coverage against source before trusting negative findings.

Who it’s NOT for

Users unwilling to let an installer edit agent configuration and add instructions, skills, or lifecycle hooks: the README says the install command does all of these where supported.
Machines with tight memory limits until their own soak test passes: issue 832 reports memory above 20 GB after indexing 65 files totaling 1.3 MB.
Workflows that require the index to be authoritative after every Git state change: issue 1339 reports false negatives when a dirty working tree returns to clean.
Repositories on unusual container ownership layouts: issue 1830 reports project-root discovery failing in a user-namespace-remapped Docker container.
Teams that need compiler-grade semantics for every supported language: all 158 languages receive tree-sitter parsing, while the deeper type-resolution layer covers a smaller named set.

Setup reality

Our sandbox entered graph-ui/, installed 352 npm packages in 22 seconds using 357 MB, built it in 15 seconds, and completed its tests in 10 seconds. npm audit found 0 known vulnerabilities across critical, high, moderate, and low severity.

That successful run covers the graph UI, not the native C server or its advertised multi-language parser suite. Normal users can install a release binary without Docker, a language runtime, or an API key. The installer may configure detected MCP clients, skills, hooks, PATH entries, a shared daemon, and cached indexes, so --skip-config is the safer audit-first route.

Commit 010569f contained 2,051 files, about 2,441,022 source lines, and a 1,332.8 MB checkout. Source builds require C and C++ compilers, zlib, Git, and project scripts. Auto-watch defaults to true; operators can disable it and set an allowed root, memory budget, worker count, and cache directory.

The graph gives agents structure that text search cannot

Codebase Memory MCP parses repositories into nodes for files, packages, classes, functions, methods, routes, resources, and other code entities. Edges record definitions, imports, calls, type use, HTTP links, data flow, and related structure. Its 15 MCP tools let an agent search the graph, trace callers, inspect architecture, map a Git diff to affected symbols, query a read-only Cypher subset, fetch source snippets, and keep architecture decisions. The index persists across sessions instead of forcing each agent to rediscover the project.

This is useful when a question spans files or repositories. Grep can find a function name, but it does not distinguish a proven call from an ambiguous use or follow a route into another service. The graph can narrow the investigation before the agent reads exact source. It should remain a navigation aid, because parsing and type inference can miss dynamic dispatch, generated code, runtime configuration, or unsupported language behavior. The README's own installed guidance tells agents to verify evidence against source and check coverage before making negative claims.

Local processing reduces exposure but does not remove trust

The native server runs locally, stores SQLite-backed indexes under the user cache, and says it collects no telemetry. Semantic search uses bundled embeddings and needs no external model, Ollama instance, hosted service, or API key. The coding agent remains the natural-language layer and calls graph tools through MCP. This arrangement keeps proprietary source away from a separate indexing vendor, which is a meaningful advantage for private repositories.

Installation deserves more scrutiny than the one-line curl command suggests. The native install command can detect and configure 43 agent surfaces, add MCP entries, write durable instructions, create skills and hooks, alter PATH setup, and install a shared per-account daemon. Claude Code and Codex receive specific configuration and supporting assets. These actions are documented, and uninstall removes owned entries while asking before index deletion. Audit the script and binary, use --skip-config first, then enable only the clients required.

What happened when we ran it

Our sandbox at commit 010569f entered the graph-ui/ project and installed 352 npm packages in 22 seconds. Dependencies occupied 357 MB. The build succeeded in 15 seconds and tests succeeded in 10 seconds. npm audit reported 0 known vulnerabilities: 0 critical, 0 high, 0 moderate, and 0 low. This is a clean result for the web interface.

It is not a native-server result. The full checkout contained 2,051 files, about 2,441,022 lines of source, and 1,332.8 MB. It had 22 GitHub Actions workflows, a tests directory, and no Dockerfile. Our generic Node runner did not compile the C executable, run the README's native suite, index a repository, query the graph, start the daemon, or measure memory. The project's indexing-speed and token claims remain its measurements, not ours.

A source build needs C and C++ compilers, zlib, Git, and the supplied build script. Most users should start with a checksummed release binary and inspect it before execution. Release v0.10.8 links VirusTotal evidence and hashes for each platform binary. Those checks cannot prove runtime behavior.

Watching is convenient until index freshness fails

A shared daemon coordinates agent sessions, indexing, the optional UI, and repository watchers. Auto-watch defaults to true, while first-session indexing is separately configurable. It avoids duplicate watchers but places a cached view between changing source and the agent's answer.

Issue 1339 reports a serious freshness edge: after a dirty working tree returns to clean, the graph can retain false negatives because the watcher misses the revert. The report was updated August 26, 2026 and marked high priority. A stale graph is worse than no graph when an agent confidently claims a caller or symbol does not exist. Keep source verification mandatory, run an explicit reindex after large rebases or resets, and test clean-to-dirty-to-clean transitions in a pilot repository.

More than 20 GB after 65 files demands a soak test

The indexer uses an in-memory SQLite pipeline with memory and worker limits. Issue 832 reports more than 20 GB of resident memory after indexing 65 Markdown files totaling 1.3 MB on a 32 GB Windows machine. The high-priority report is enough to reject an unmonitored rollout.

Set CBM_MEM_BUDGET_MB, reduce workers if needed, and watch resident memory during initial indexing and repeated queries. The allowed-root setting is equally important when an agent or UI could receive untrusted paths: without it, no containment boundary restricts index requests. Disable auto-watch during evaluation, point the cache at a known location, and inspect its growth. Local operation protects network privacy, but a runaway local process can still disrupt builds and editors.

Version 0.10.8 fixes graph truth and release plumbing

The August 19, 2026 release corrected Cypher aggregates that could undercount, Python alias resolution, ghost-like semantic search results, list-field extraction, and incremental responses that hid persisted parse gaps. It also repaired Windows Unicode search and made abandoned code scans cancellable. These are substantive correctness fixes for the answers agents consume. The release superseded v0.10.7 after a tag naming error broke package download URLs, then hardened release gates and version validation.

The repository was pushed August 27. GitHub listed 519 open issues and pull requests combined, split into 405 issues and 114 pull requests by search. Current work addresses stale daemon files, client integrations, language parsing, and Windows paths. Pin a release, review configuration diffs, and retest before upgrading.

Codebase Memory MCP can save an agent from blind file-by-file exploration, especially in polyglot systems where routes and calls cross repository boundaries. Its value depends on disciplined use: graph for direction, source for proof. With restricted paths, measured memory, explicit indexing, and minimal client changes, it is a credible local tool. Without those controls, a stale or resource-hungry index can make the agent faster at reaching the wrong answer.

Alternatives

ProjectWhat it isPick it when
Serena gh↗An agent toolkit that exposes language-aware code navigation and editing through MCP.pick this instead when language-server-backed symbol operations and editing matter more than one persistent cross-language graph.
SourcegraphA code search and intelligence platform designed for many repositories and users.pick this instead when centralized organization-wide search and browser access justify operating a service.
ast-grep gh↗A structural search and rewrite tool built on tree-sitter patterns.pick this instead when deterministic pattern matching and code rewrites are enough without a daemon or knowledge graph.
Tree-sitter gh↗An incremental parser library that produces concrete syntax trees for many languages.pick this instead when you are building your own code intelligence layer and only need parsing infrastructure.

Sources

  1. Codebase Memory MCP repository and README
  2. Codebase Memory MCP v0.10.8 release
  3. Graph freshness bug after a clean revert
  4. Memory retention report after indexing
  5. Container ownership project-root issue

More ai tools reviews

eve · MemOS · LongCat-Video · Concat · DLSS5-Feeder · Concat · the whole board →