# Repository Briefing: DeusData/codebase-memory-mcp
> Source: https://repoforai.com/repo/DeusData/codebase-memory-mcp (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/DeusData/codebase-memory-mcp
- **Official Docs / Website**: https://deusdata.github.io/codebase-memory-mcp/
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: C
- **License**: MIT
- **Engineering Health**: A+ (95/100 · Maintenance 35/35 · Adoption 23/25 · Releases 17/20 · License 20/20)
- **Latest Release**: v0.12.1 (2026-10-16) — https://github.com/DeusData/codebase-memory-mcp/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: MCP, CLI, Self-Hosted, Local AI
- **Momentum**: 49,565 ★ total (+30 24h / +335 7d) · 4,169 forks
- **Topics**: `aider`, `ast`, `claude-code`, `code-analysis`, `code-intelligence`, `codex`, `cursor`, `cypher`, `developer-tools`, `gemini-cli`, `graph-visualization`, `kilocode`
- **When to Use**: 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.

## Overview
```text
### 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.
```

## Key Capabilities
```text
- 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`.
```

## Quick Start / Clone
```bash
curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash
```
