Codebase Memory indexes repositories into a persistent local graph and exposes it through MCP tools and a CLI. Optional CBM Lens UI explores calls, docs, and infrastructure links on your machine.
Overview
Codebase Memory (CBM) is an MCP server that builds a local knowledge graph connecting source code, documentation, configuration, and infrastructure definitions. Coding agents query symbols, call paths, dependencies, and evidence snippets instead of repeatedly opening whole files.
The native backend ships many MCP tools, parses multiple languages with bundled grammars, and adds hybrid LSP type resolution where supported. Indexes stay on disk between sessions; graph work does not require a hosted API or API key. An installer can wire MCP settings, skills, agent profiles, and hooks into dozens of editor and agent clients.
Beyond code, CBM can index Markdown or PDF sections, architecture decision records, and relationships from Docker, Kubernetes, Helm, Terraform-family configs, Ansible, Make, and CI files. Experimental Smart CI combines static reachability with per-test coverage hints for some C/C++ harnesses to narrow test runs.
Standard releases include the optional CBM Lens companion for maps, Galaxy 3D graph views, IDE-style source reading, and local chat about selected code. Releases target macOS, Linux, and Windows with a native runtime that does not require Docker for core use.
Key features
- Seventeen MCP graph query tools
- Persistent local index and SQLite storage
- Tree-sitter parsing and hybrid LSP types
- Infrastructure and docs linked to code
- Installer hooks for many coding agents
- Native CLI alongside MCP access
- Optional CBM Lens visual explorer
- Cross-repo and Cypher graph queries
Use cases
- Giving agents structural repo context
- Tracing callers across services and configs
- Assessing blast radius before a change
Does the same job as
Codebase Memory doesn't name these products itself, but its own description shows it does the same job.