$git clone https://github.com/DeusData/codebase-memory-mcpThe fastest and most efficient code intelligence engine for AI coding agents. Full-indexes an average repository in milliseconds, the Linux kernel (28M LOC, 75K files) in 3 minutes. Answers structural queries in under 1ms. Ships as a single static binary for macOS, Linux, and
| 1 | # codebase-memory-mcp |
| 2 | |
| 3 | [](https://github.com/DeusData/codebase-memory-mcp/releases/latest) |
| 4 | [](LICENSE) |
| 5 | [](https://github.com/DeusData/codebase-memory-mcp/actions/workflows/dry-run.yml) |
| 6 | [](https://github.com/DeusData/codebase-memory-mcp) |
| 7 | [](https://github.com/DeusData/codebase-memory-mcp) |
| 8 | [](#hybrid-lsp) |
| 9 | [](https://github.com/DeusData/codebase-memory-mcp) |
| 10 | [](https://github.com/DeusData/codebase-memory-mcp) |
| 11 | [](https://github.com/DeusData/codebase-memory-mcp/releases/latest) |
| 12 | [](https://scorecard.dev/viewer/?uri=github.com/DeusData/codebase-memory-mcp) |
| 13 | [](https://slsa.dev) |
| 14 | [](https://github.com/DeusData/codebase-memory-mcp/releases/latest) |
| 15 | [](https://arxiv.org/abs/2603.27277) |
| 16 | |
| 17 | **The fastest and most efficient code intelligence engine for AI coding agents.** Full-indexes an average repository in milliseconds, the Linux kernel (28M LOC, 75K files) in 3 minutes. Answers structural queries in under 1ms. Ships as a single static binary for macOS, Linux, and Windows — download, run `install`, done. |
| 18 | |
| 19 | High-quality parsing through [tree-sitter](https://tree-sitter.github.io/tree-sitter/) AST analysis across all 158 languages, enhanced with [**Hybrid LSP** semantic type resolution](#hybrid-lsp) for Python, TypeScript / JavaScript / JSX / TSX, PHP, C#, Go, C, C++, Java, Kotlin, Rust, and Perl — producing a persistent knowledge graph of functions, classes, call chains, HTTP routes, and cross-service links. 15 MCP tools. Zero dependencies. Plug and play across 43 supported automatic/conditional client surfaces. |
| 20 | |
| 21 | > **Research** — The design and benchmarks behind this project are described in the preprint [*Codebase-Memory: Tree-Sitter-Based Knowledge Graphs for LLM Code Exploration via MCP*](https://arxiv.org/abs/2603.27277) (arXiv:2603.27277). Evaluated across 31 real-world repositories: 83% answer quality, 10× fewer tokens, 2.1× fewer tool calls vs. file-by-file exploration. |
| 22 | |
| 23 | > **Security & Trust** — This tool reads your codebase and writes to your agent configuration files. That is what it is designed to do. If you prefer to audit before running, the [full source is here](https://github.com/DeusData/codebase-memory-mcp) — every release binary is signed, checksummed, and scanned by 70+ antivirus engines. All processing happens 100% locally; your code never leaves your machine. Found a security issue? We want to know — see [SECURITY.md](SECURITY.md). Security is Priority #1 for us. |
| 24 | |
| 25 | <p align="center"> |
| 26 | <img src="docs/graph-ui-screenshot.png" alt="Graph visualization UI showing the codebase-memory-mcp knowledge graph" width="800"> |
| 27 | <br> |
| 28 | <em>Built-in 3D graph visualization (UI variant) — explore your knowledge graph at localhost:9749</em> |
| 29 | </p> |
| 30 | |
| 31 | ## Why codebase-memory-mcp |
| 32 | |
| 33 | - **Extreme indexing speed** — Linux kernel (28M LOC, 75K files) in 3 minutes. RAM-first pipeline: LZ4 compression, in-memory SQLite, fused Aho-Corasick pattern matching. Memory released after indexing. |
| 34 | - **Plug and play** — single static binary for macOS (a |