# Codebase Memory MCP — Code Intelligence for AI Agents > High-performance code intelligence MCP server. Indexes repos in milliseconds via tree-sitter AST, supports 66 languages, sub-ms graph queries. MIT, 1,300+ stars. ## Install Merge the JSON below into your `.mcp.json`: ## Quick Use Add to your `.mcp.json` (Claude Code) or MCP client config: ```json { "mcpServers": { "codebase-memory-mcp": { "command": "/path/to/codebase-memory-mcp", "args": [] } } } ``` Download the binary from [GitHub Releases](https://github.com/DeusData/codebase-memory-mcp/releases), then restart Claude Code. --- ## Intro Codebase Memory MCP is the fastest code intelligence engine for AI coding agents, with 1,300+ GitHub stars. It full-indexes an average repository in milliseconds and can index the Linux kernel (28M lines, 75K files) in 3 minutes. Uses tree-sitter AST parsing across 66 languages with sub-millisecond graph queries. Best for developers using Claude Code, Cursor, or any MCP client who want their AI to deeply understand their codebase. Works with JavaScript, Python, Go, Rust, Java, C++, and 60+ more languages. Explore more MCP servers on [TokRepo MCP Hub](https://tokrepo.com/en/@MCP%20Hub). --- ## Codebase Memory MCP — Full Code Intelligence Engine ### How It Works Codebase Memory MCP parses your entire codebase using tree-sitter AST grammars and builds a persistent knowledge graph stored in SQLite. AI agents query this graph via 14 MCP tools to understand code structure, trace dependencies, and find patterns. ### Key Features - **66 language support** — vendored tree-sitter grammars for JS, Python, Go, Rust, Java, C++, and more - **Sub-millisecond queries** — SQLite-backed graph with Cypher-like query support - **14 MCP tools** — search, tracing, architecture analysis, dead code detection - **3D graph visualization** — built-in UI to explore code relationships - **Git diff impact mapping** — understand how changes affect the codebase - **Cross-service HTTP route linking** — maps API routes across microservices - **ADR management** — Architecture Decision Records tracking - **Background file watcher** — auto-sync when files change - **Single static binary** — zero dependencies, just download and run ### Performance Benchmarks | Codebase | Files | Lines | Index Time | |----------|-------|-------|------------| | Average repo | ~500 | ~50K | < 1 second | | Large monorepo | ~5,000 | ~500K | ~30 seconds | | Linux kernel | 75,000 | 28M | ~3 minutes | ### MCP Tools Available 1. **search** — find functions, classes, variables by name or pattern 2. **trace** — follow call chains and dependency paths 3. **architecture** — get high-level module overview 4. **dead-code** — detect unused functions and imports 5. **impact** — analyze which code is affected by a change 6. **routes** — map HTTP endpoints across services 7. And 8 more specialized analysis tools ### Installation Download the single binary from GitHub Releases: ```bash # Download latest release (check GitHub for your platform) curl -LO https://github.com/DeusData/codebase-memory-mcp/releases/latest/download/codebase-memory-mcp-linux-amd64 chmod +x codebase-memory-mcp-linux-amd64 mv codebase-memory-mcp-linux-amd64 /usr/local/bin/codebase-memory-mcp ``` ### FAQ **Q: What is Codebase Memory MCP?** A: A high-performance MCP server that indexes your entire codebase into a queryable knowledge graph, giving AI agents deep code understanding with sub-millisecond response times. **Q: Is Codebase Memory MCP free?** A: Yes, fully open-source under the MIT license. **Q: How many programming languages does it support?** A: 66 languages via vendored tree-sitter grammars, covering all major languages including JavaScript, Python, Go, Rust, Java, C++, TypeScript, Ruby, and more. --- ## Source & Thanks > Created by [DeusData](https://github.com/DeusData). Licensed under MIT. > > [codebase-memory-mcp](https://github.com/DeusData/codebase-memory-mcp) — ⭐ 1,300+ Thanks to the DeusData team for building the fastest code intelligence engine for MCP. --- ## Quick Use Add to your `.mcp.json` (Claude Code) or MCP client config: ```json { "mcpServers": { "codebase-memory-mcp": { "command": "/path/to/codebase-memory-mcp", "args": [] } } } ``` Download the binary from [GitHub Releases](https://github.com/DeusData/codebase-memory-mcp/releases), restart Claude Code, and you're ready. --- ## Introduction Codebase Memory MCP is the fastest code-intelligence engine for AI coding agents, with 1,300+ GitHub stars. Millisecond-scale indexing for typical repos; 3 minutes for the Linux kernel (28M lines, 75K files). Built on tree-sitter AST parsing with support for 66 programming languages and sub-millisecond graph queries. Ideal for developers using MCP clients like Claude Code and Cursor. --- ## Codebase Memory MCP — Full Code Intelligence Engine ### Core Features - **66 languages** — JS, Python, Go, Rust, Java, C++, and more - **Sub-ms queries** — knowledge graph backed by SQLite - **14 MCP tools** — search, tracing, architecture analysis, dead-code detection - **3D graph visualization** — built-in UI to explore code relationships - **Git diff impact analysis** — understand the blast radius of code changes - **Single-file binary** — zero dependencies, download and run ### Performance Benchmarks | Codebase | Files | Lines | Indexing Time | |----------|-------|-------|---------------| | Typical project | ~500 | ~50K | < 1s | | Large monorepo | ~5,000 | ~500K | ~30s | | Linux kernel | 75,000 | 28M | ~3 min | ### FAQ **Q: What is Codebase Memory MCP?** A: A high-performance MCP server that indexes entire codebases into a queryable knowledge graph, giving AI agents deep understanding of code structure. **Q: Is it free?** A: Completely free and open source under the MIT license. --- ## Source & Thanks > Created by [DeusData](https://github.com/DeusData). Licensed under MIT. > > [codebase-memory-mcp](https://github.com/DeusData/codebase-memory-mcp) — ⭐ 1,300+ --- Source: https://tokrepo.com/en/workflows/codebase-memory-mcp-code-intelligence-ai-agents-a3fe5165 Author: MCP Hub