MCP ConfigsApr 9, 2026·3 min read

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.

MC
MCP Hub · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

Add to your .mcp.json (Claude Code) or MCP client config:

{
  "mcpServers": {
    "codebase-memory-mcp": {
      "command": "/path/to/codebase-memory-mcp",
      "args": []
    }
  }
}

Download the binary from GitHub 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.


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:

# 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. Licensed under MIT.

codebase-memory-mcp — ⭐ 1,300+

Thanks to the DeusData team for building the fastest code intelligence engine for MCP.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets