Codebase Memory MCP

Active
GitHub C MIT

Description

High-performance code intelligence MCP server that indexes codebases into a persistent knowledge graph, supporting 66 languages with sub-millisecond queries and 99% fewer tokens.

Key Features

  • Extreme indexing speed: Linux kernel (28M LOC) indexed in 3 minutes via RAM-first pipeline
  • 159 languages supported through vendored tree-sitter grammars in a single binary
  • Hybrid LSP semantic type resolution for Python, TypeScript, PHP, C#, Go, C, and C++
  • 120x fewer tokens compared to file-by-file exploration (~3,400 vs ~412,000 tokens)
  • 14 MCP tools: search, trace, architecture analysis, impact analysis, dead code detection
  • Plug and play: single static binary for macOS/Linux/Windows, no Docker or runtime dependencies

Use Cases

πŸ’‘ Accelerating AI coding agents with deep codebase understanding
πŸ’‘ Performing impact analysis before making code changes
πŸ’‘ Detecting dead code and unused dependencies across large repositories
πŸ’‘ Tracing function call chains and cross-service HTTP routes
πŸ’‘ Building persistent knowledge graphs for ongoing project documentation

Quick Start

1. Run the one-line installer: curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash. 2. Restart your coding agent (Claude Code, Codex CLI, Gemini CLI, etc.). 3. Say 'Index this project' β€” the server indexes automatically. 4. For graph visualization, add --ui flag and open localhost:9749. 5. Use 'codebase-memory-mcp update' to keep the binary up to date.

Related Projects

Related Articles