← Back to Leaderboard
CDeusData

DeusData/codebase-memory-mcp

A local code graph for tracing code, docs, and infrastructure via MCP.

Engineering Health (Methodology)
A+ · 95/100
Maintenance Activity
● Updated today
Latest Release
v0.12.1
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption23/25
Release Cadence17/20
License Clarity20/20
MCPCLISelf-HostedLocal AI
Total Stars
★ 49,565
24h Growth
+30
7d Growth
+335
Forks
4,169

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

DeusData/codebase-memory-mcp Star History (2026-02-24 - 2026-12-04) ALL-TIME STAR HISTORY (2026-02 – 2026-12) +49.6k in 283d · avg +175/day 52.3k 26.2k 0 2026-02-24: ★ 12026-03-14: ★ 6322026-04-04: ★ 1,1602026-04-25: ★ 1,7882026-05-16: ★ 2,2912026-06-06: ★ 2,9122026-06-27: ★ 17,5922026-07-18: ★ 32,0942026-08-08: ★ 37,5722026-08-29: ★ 40,6152026-09-19: ★ 43,3982026-10-10: ★ 45,9802026-10-31: ★ 47,7312026-11-18: ★ 48,7642026-12-04: ★ 49,565 ★ 49.6k 2026-02 2026-07 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Agent interface: A native C server exposes 17 MCP tools, and the CLI can query the graph without an agent.
Index coverage: Vendored grammars and Hybrid LSP resolution connect supported source, documents, and infrastructure; v0.12.1 adds Helm deployment links.
Session coordination: A per-account daemon shares watchers and indexing jobs and rejects active processes with mismatched builds, coordination ABIs, or canonical cache roots.
Agent setup: 46 automatic or conditional integrations; supported hooks add context without blocking or replacing the original tool call.
Test selection: Experimental Smart CI combines static relationships and per-test coverage for supported C/C++ harnesses, with broader runs when evidence is insufficient.
Local UI: CBM Lens Beta provides loopback source and graph navigation, with optional browser inference via WebGPU and shader-f16.
Best For

Teams whose coding agents repeatedly navigate unfamiliar repositories, trace changes across code and deployment definitions, and need a reusable local index.

Skip If

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.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

MCPCLISelf-HostedLocal AI
curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
codebase-memory-mcp ★49.6k+335CMITA local code graph for tracing code, docs, and infrastructure via MCP.
graphify156.8k+2.4kPythonApache-2.0Local AST graphs for dependency tracing, with CLI and MCP access.
archify103.1k+2kJavaScriptApache-2.0Agent skill and Node CLI for source-backed, interactive architecture diagrams.
taste-skill125.3k+2.9kJavaScriptMITAn 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.

Raw .md ↗
curl -sL https://repoforai.com/repo/DeusData/codebase-memory-mcp.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

DeusData/codebase-memory-mcp Star History on RepoForAI

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?

The native installer can register the MCP server and add client-specific guidance, skills, profiles, and hooks. The 46 integration paths are automatic or conditional, not a guarantee of feature parity. Use --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?

Core indexing and graph queries don't require a model, Docker, or a separate language runtime. Size a pilot around index build time, cache growth, and query responsiveness on representative repositories. Optional browser chat requires WebGPU with 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?

The repository is MIT-licensed, which permits commercial use subject to its notice requirements. For redistribution, review 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?

Use text search and editor navigation for exact matches and direct source verification. Add CBM when agents repeatedly need to follow multi-hop calls, move between documentation and implementation, or relate deployment configuration to code. If the question is what actually ran in production, use runtime traces: the graph and Galaxy's directional pulses do not show live execution.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining DeusData/codebase-memory-mcp? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature DeusData/codebase-memory-mcp on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare