DeusData/codebase-memory-mcp
Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
What it solves
AI coding agents often lack structural awareness of a codebase: they may struggle to find an unfamiliar feature, follow a call across services, trace a deployment back to its source, or assess which parts of a project a change could affect. This project addresses that by connecting code, documentation, configuration, and infrastructure in a persistent local knowledge graph that agents — or humans via CLI — can query for context.
How it works
A native C backend indexes your repository entirely on your machine, with no hosted service or API key required. It parses 164 languages and file formats using bundled grammar files, and adds type resolution through a Hybrid LSP approach for supported languages. The backend exposes 17 MCP tools that coding agents call to search symbols, text, and semantics; find callers, dependencies, source snippets, and file outlines; and trace relationships through Docker, Kubernetes, Helm, Kustomize, Terraform/OpenTofu, Terragrunt, Ansible, scripts, Make, and CI configuration. Indexes persist between sessions, and focused graph queries can reduce repeated file reads and token usage.
An installer supports 46 automatic or conditional client integrations, adding MCP configuration, instructions and skills, Scout/Verify/Auditor agent profiles, and session/search/read hooks that augment supported client workflows with graph context (context-only and fail-open — they never block the requested tool call). A session coordination daemon shares one per-account daemon across clients, managing watchers, shared indexing jobs, and the optional UI. The daemon enforces a crash-safe admission barrier requiring all active processes to use the exact same build and cache root.
An optional visual companion, CBM Lens (open beta v0.0.1), runs a browser interface on loopback (default port 9749) and offers an IDE-style source reader, a 3D graph explorer called Galaxy, architecture maps, system structure and behavior views, coverage diagnostics, architecture decision records, and local code chat. Browser AI model download is opt-in and inference stays on-device.
Who it's for
Developers and teams who use AI coding agents — such as Claude Code, Codex, or OpenCode — and want those agents to understand large or unfamiliar codebases with structural, graph-based context. It is also for people who want to visually explore a repository, trace deployments back to source, assess change impact before running, or find related tests. It suits those who prefer local processing and native tools with no Docker or language runtime dependency.
Highlights
- Local-first: indexing and graph queries run on your machine; no hosted service or API key
- 17 MCP tools exposing symbol, text, and semantic search plus callers, dependencies, source snippets, and file outlines
- Parses 164 languages and formats with vendored grammars, plus Hybrid LSP type resolution
- 46 automatic or conditional client integrations including MCP config, skills, Scout/Verify/Auditor profiles, and hooks
- CBM Lens beta brings a source reader, 3D Galaxy graph, architecture overviews, routes, coverage diagnostics, ADR editing, and local code chat
- Tracks infrastructure relationships: Docker, Kubernetes, Helm, Kustomize, Terraform/OpenTofu, Terragrunt, Ansible, scripts, Make, and CI config
- Experimental Smart CI combines static relationships and per-test coverage for supported C/C++ test harnesses
- Native pure-C runtime with no language runtime or Docker; macOS, Linux, and Windows supported; SLSA 3 and VirusTotal-scanned releases
Related
- Project
- Project
- Project
- Project
- Project