High-Performance Code Intelligence MCP Server

Index codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

11,226 ⭐ Stars
833 🍴 Forks
158 🌐 Languages
MIT 📜 License

3 min

Linux kernel index
(28M LOC, 75K files)

<1ms

Query response time
(structural queries)

99%

Fewer tokens
vs file-by-file search

14

MCP tools
included

Why Choose codebase-memory-mcp

⚡ Extreme Indexing Speed

Linux kernel (28M LOC, 75K files) in 3 minutes. RAM-first pipeline with LZ4 compression, in-memory SQLite, and fused Aho-Corasick pattern matching. Memory released after indexing.

🔌 Plug and Play

Single static binary for macOS (arm64/amd64), Linux (arm64/amd64), and Windows (amd64). No Docker, no runtime dependencies, no API keys. Download → install → done.

🌐 158 Languages

Vendored tree-sitter grammars compiled into the binary. Nothing to install, nothing that breaks. Full support for Python, TypeScript, Go, Rust, Java, C/C++, and more.

🔍 Built-in Graph Visualization

3D interactive UI at localhost:9749. Explore your knowledge graph visually with node relationships, clusters, and architecture overview.

🏗️ Infrastructure-as-Code Indexing

Dockerfiles, Kubernetes manifests, and Kustomize overlays indexed as graph nodes with cross-references. Resource nodes for K8s kinds with IMPORTS edges.

🤖 11 Coding Agents

Auto-detects and configures Claude Code, Codex CLI, Gemini CLI, Zed, OpenCode, Antigravity, Aider, KiloCode, VS Code, OpenClaw, and Kiro.

Quick Start

🍎 macOS / Linux

One-line install with auto-config:

curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash

With graph visualization:

curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash -s -- --ui

🪟 Windows

PowerShell installer:

# 1. Download the installer
Invoke-WebRequest -Uri https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.ps1 -OutFile install.ps1

# 2. Run it
.\install.ps1

📦 Package Managers

# Homebrew
brew install codebase-memory-mcp

# AUR
yay -S codebase-memory-mcp-bin

# npm, PyPI, Scoop, Winget, Chocolatey
npm install -g codebase-memory-mcp

Performance Benchmarks

Operation Time Notes
Linux kernel full index 3 min 28M LOC, 75K files → 4.81M nodes, 7.72M edges
Linux kernel fast index 1m 12s 1.88M nodes
Django full index ~6s 49K nodes, 196K edges
Cypher query <1ms Relationship traversal
Name search (regex) <10ms SQL LIKE pre-filtering
Dead code detection ~150ms Full graph scan with degree filtering
Trace call path (depth=5) <10ms BFS traversal

Multi-Agent Support

The install command auto-detects and configures all installed agents:

Claude Code

Codex CLI

Gemini CLI

Zed

OpenCode

Antigravity

Aider

KiloCode

VS Code

OpenClaw

Kiro

Security & Trust

This tool reads your codebase and writes to your agent configuration files. All processing happens 100% locally; your code never leaves your machine.

VirusTotal
SLSA Level 3
OpenSSF Scorecard
MIT License
CI