What Is codebase-memory-mcp: A Code Intelligence Engine for AI Coding Agents
codebase-memory-mcp is a code intelligence engine for AI coding agents, full-indexing an average repo in milliseconds and the Linux kernel (28M LOC, 75K files) in 3 minutes. Structural queries in under 1ms. Single static binary for macOS / Linux / Windows. MIT license, arXiv paper (2603.27277).
Core Highlights
- Extreme indexing speed: Linux kernel 28M LOC in 3 min. RAM-first pipeline (LZ4 compression + in-memory SQLite + Aho-Corasick pattern matching), memory released after indexing.
- 158 languages: tree-sitter AST parsing + Hybrid LSP semantic type resolution (Python / TS / Go / C++ / Java / Rust etc., 10 langs), producing a knowledge graph of functions / classes / call chains / HTTP routes / cross-service links.
- 120× fewer tokens: 5 structural queries ~3,400 tokens vs 412,000 via file-by-file search. One graph query replaces dozens of grep / read cycles.
- 15 MCP tools: search / trace / architecture / impact analysis / Cypher queries / dead-code detection / cross-service HTTP linking / ADR management, etc.
- 3D graph visualization: interactive UI at localhost:9749.
- Zero dependencies: single static binary-download -> install -> restart agent -> done.
How to Use
One-line install (macOS / Linux):
curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bashWindows (PowerShell):
Invoke-WebRequest -Uri https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.ps1 -OutFile install.ps1
.\install.ps1install auto-configures detected AI agent clients (43 supported surfaces); restart the agent and use 15 MCP tools to query the code graph.
Who It's For
- Taking over large repos: new to a project, index first and read the graph-faster than grinding code.
- AI coding agent users: give Claude Code / Codex / Cursor code memory; agents query the graph instead of grep, saving tokens + boosting accuracy.
- Code review / architecture: 3D graph visualization + dead-code detection + impact analysis.
vs. graphify
graphify is an AI coding skill (/graphify trigger); codebase-memory-mcp is an MCP server (resident, 15 tools). graphify is lightweight on-demand; codebase-memory-mcp is heavy full-index. They can stack.