DeusData/codebase-memory-mcp
A local code graph for tracing code, docs, and infrastructure via MCP.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
The native C MCP server is the core. It uses vendored grammars to parse supported source and file formats, adds Hybrid LSP type resolution for supported languages, and persists the resulting relationships in a local graph. Coding agents access it through 17 MCP tools; developers can query it from the CLI. CBM Lens is a separate, optional browser view of the same index, not a prerequisite for agent use.
A per-account coordination daemon owns shared watchers, indexing jobs, and the optional UI. Each session registers the work it needs, so closing one session doesn't cancel a job another still needs. A session-managed daemon stops after the last session; one launched manually stays up until stopped. Frontends report startup errors on stderr, keeping MCP JSON-RPC stdout clear, while the daemon keeps owner-only diagnostic logs under the cache root.
Key Capabilities & Differentiators
Symbol, text, and semantic search can be combined with callers, dependencies, file outlines, and source snippets. The same graph indexes document sections, PDF text pages, and architecture decisions, making it possible to move from a design rationale to a supported code reference. Infrastructure coverage includes Docker, Kubernetes, Helm, Kustomize, Terraform/OpenTofu, Terragrunt, Ansible, scripts, Make, and CI configuration. Treat the resulting links as indexed evidence, not a complete deployment inventory.
For change review, CBM can compare indexed snapshots and surface affected symbols and related tests. Experimental Smart CI combines static relationships with per-test coverage for supported C/C++ harnesses and runs more tests when the evidence is insufficient. Lens adds a source reader, architecture maps, Galaxy graph navigation, and coverage diagnostics. It can answer caller and callee questions from graph data without loading a model; optional browser chat uses code or graph context selected in the UI.
Trade-offs & Limitations
Compared with grep and editor navigation, the graph pays off on repeated questions that span files, documentation, and deployment definitions. For one-off exact lookups, those tools remain simpler: there is no index to build or keep fresh. Check index freshness and source before relying on a graph-derived impact assessment. Static fan-in and Galaxy's directional edge pulses describe indexed relationships, not runtime traffic or proof that a path executed.
The local design avoids a hosted indexing dependency, but shifts index lifecycle, cache storage, and coordinated upgrades to the workstation. Client setup is convenient when you want the full integration, but it writes client configuration and enables applicable hooks by default. Use install --no-hooks if you only want the other integration pieces, and verify support on each client before standardizing. The MIT license permits commercial use; review third-party notices and optional model terms separately when redistributing a bundle.
Hardware & Deployment Guide
Standard native releases for macOS, Linux, and Windows include Lens. Core indexing and queries require no hosted service, API key, Docker, or separate language runtime. Use the platform release archive and bundled installer if you want to inspect the artifacts before installation. Nix and source builds offer UI-free variants. To run Lens, use codebase-memory-mcp daemon start --open --port=9749; it serves on 127.0.0.1. Optional browser chat downloads models from Hugging Face after opt-in, then runs inference on-device with WebGPU and shader-f16.
For upgrades, plan to restart clients together: active processes must agree on the exact version, executable build, coordination ABI, and canonical cache root. Check daemon-conflicts.ndjson under the cache's logs directory when a client fails to join. v0.11.0 marked an index-format change; v0.12.0 brought the Lens beta and expanded documentation indexing; v0.12.1 repaired installation paths, linked Helm charts to what they deploy, and corrected spurious container registry attribution.
shader-f16.Teams whose coding agents repeatedly navigate unfamiliar repositories, trace changes across code and deployment definitions, and need a reusable local index.
Most work is one-off text lookup, you need observed runtime behavior rather than indexed relationships, or policy requires a centrally managed service rather than a per-account daemon.
Quick Start & Installation
curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| codebase-memory-mcp ★ | 49.6k | +335 | C | MIT | A local code graph for tracing code, docs, and infrastructure via MCP. |
| graphify | 156.8k | +2.4k | Python | Apache-2.0 | Local AST graphs for dependency tracing, with CLI and MCP access. |
| archify | 103.1k | +2k | JavaScript | Apache-2.0 | Agent skill and Node CLI for source-backed, interactive architecture diagrams. |
| taste-skill | 125.3k | +2.9k | JavaScript | MIT | An agent skill for directing company website design and checking builds in a bro |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/DeusData/codebase-memory-mcp.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about codebase-memory-mcp
What does installation change in my coding agent?
--skip-config for a binary-only install, or run codebase-memory-mcp install --no-hooks to keep MCP registration and other integration files without CBM-managed hooks.Do I need a GPU, and how should I size a workstation?
shader-f16; the default Qwen2.5 Coder 0.5B download is about 567 MB. That is a download size, not a VRAM requirement. Larger models need separate testing on the devices you plan to support.Can a company self-host it, and what remains to review for compliance?
LICENSE and THIRD_PARTY.md, and check the terms of any optional model separately. The index and Lens inference stay local, but an independently configured MCP client may send tool results to its own model provider. Review that data path separately if source code is sensitive.When is this a better fit than grep or editor navigation?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy