AgentIndex icon
AgentIndex
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Submit Tool
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Home/
Memory & Context/
codebase-memory-mcp
codebase-memory-mcp logo

codebase-memory-mcp

Active·★ 47.7k·MIT·Updated 2026-10-27
★ Most Popular

codebase-memory-mcp is a code intelligence engine for AI coding agents. It parses your repository with tree-sitter, enhanced by language-server type resolution for major languages, and stores the result as a persistent knowledge graph. Agents then answer structural questions such as who calls this function, what breaks if I change this, or where the entry points are, with one graph query instead of dozens of grep and file-read cycles.

It suits developers working in medium to very large codebases, where agents waste most of their tokens just finding their way around. The project reports indexing an average repository in milliseconds and the Linux kernel in about three minutes, and in its own benchmark five structural queries used around 3,400 tokens versus roughly 412,000 with file-by-file search. It exposes 17 MCP tools, indexes infrastructure files such as Dockerfiles and Kubernetes manifests, and includes a 3D graph viewer. The design is described in an arXiv preprint.

Getting started: run the one-line installer on macOS or Linux, or the PowerShell installer on Windows. It downloads a single static binary (no Docker, runtime or API key) and configures the coding agents it detects. Restart your agent and ask it to index the project.

This write-up is based on the project's README and public repository data. We have not hand-tested the tool. Data as of 2026-10-24.

License
MIT
Latest release
v0.12.1 · 2026-10-16
Last commit
2026-10-24
Contributors
194
Forks
3,892
Open issues and PRs
645
First published
2026-02-24

Source: GitHub, npm and PyPI public APIs.

#knowledge-graph#codebase-analysis#AI-assistant-tools#static-analysis#token-efficiency#tree-sitter#Go-lang#developer-tools
$ Install
$ curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash
↗ Visit site★ GitHub
01

Features

01Indexes a codebase into a persistent knowledge graph using tree-sitter, with semantic type resolution for several major languages
02Supports 150+ languages with grammars compiled into a single static binary
0317 MCP tools: search, call tracing, architecture overview, impact analysis, dead code detection, Cypher queries and more
04Indexes infrastructure-as-code such as Dockerfiles and Kubernetes manifests
05Built-in 3D graph visualisation served locally
02

Why choose it

+Large token savings on code exploration: one graph query replaces many search and read steps.
+Very fast indexing and sub-millisecond queries, even on huge repositories.
+Single static binary with no runtime dependencies or API keys; data stays local.
+Broad language coverage and support for many coding agents, configured automatically on install.
03

Trade-offs

!The installer modifies your agents' configuration files and adds instructions and hooks; review what it changes, or use `--skip-config` to install only the binary.
!Some antivirus engines have flagged the release binary; the project documents this as a false positive and explains how to verify artifacts.
!Benchmark figures come from the project itself, so measure the savings on your own repositories.
!It runs a shared background daemon across clients, which adds a moving part to debug if something goes wrong.
05

Maintenance check

ActiveChecked: 2026-10-23
Last commit
2026-10-22
Commits, last 90 days
100+
Releases, last 90 days
13
Latest release
v0.12.1 (2026-10-16)
Open issues
640
Recent issues with at least one comment
2/12
Commits per week, last 12 weeks
Commits per week, last 12 weeks: 130, 152, 85, 149, 85, 79, 51, 107, 223, 214, 153, 101

Oldest week on the left; the latest four weeks are orange. Source: GitHub commit activity.

Status rule: archived on GitHub = Archived; last commit within 90 days = Active; 91 to 365 days = Slowing; older = Stale. All figures come from the GitHub API on the date shown.

Most discussed open issues

  • #1654 0.10.4 `index_repository` OOM-crashes on large repo — v0.9.0 indexed the same tree in ~13 min*24 comments · 2026-08-15
  • #221 "install" command does not work for opencode in windows 1123 comments · 2026-04-07
  • #1145 Windows-Indexing worker crashed on a file17 comments · 2026-07-17
  • #45 Very high CPU usage16 comments · 2026-03-11
  • #1582 Claude.ai Desktop App still cannot start mcp15 comments · 2026-08-13

Issue titles are quoted from GitHub. Open the link to check whether a problem still applies to the version you use.

04

Who it fits

Pick it if
  • Your agent burns tokens searching a medium or large codebase: one graph query replaces many grep and read steps, according to the README.
  • You want everything local: a single static binary with no runtime dependencies or API keys.
  • You work in many languages and with several coding agents, which the installer configures automatically.
Look elsewhere if
  • You do not want an installer to edit your agents' config files and add hooks; the README offers --skip-config to install only the binary.
  • You need project decisions and conventions rather than code structure; a scaffold such as mex is closer.
  • You are cautious about unsigned binaries: some antivirus engines have flagged the release, which the project documents as a false positive.
06

How it differs

gortex logovs gortex★ 1.9k

Both build a code knowledge graph for coding agents. Codebase Memory is MIT with a single binary and a stated focus on token savings. Gortex lists more MCP tools (49) and multi-repo workspaces, but GitHub does not detect its licence, so confirm the terms first.

Full comparison →
07

Compatibility

macOS
OS
Verified via docs
Linux
OS
Verified via docs
Windows
OS
Verified via docs
Python
Language
Verified via docs
Go
Language
Verified via docs
JavaScript
Language
Verified via docs
08

Quick start

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

Use cases

↳Code exploration and understanding: Quickly understand codebase architecture, find functions, and trace call paths without high token costs.
↳Impact analysis and refactoring: Map git diffs to affected symbols, detect dead code, and analyze function fan-out to aid refactoring efforts.
↳AI assistant integration: Enhance AI assistants like Claude Code with precise structural queries for more effective code-related questions.
↳Architecture Decision Records management: Store, update, and retrieve architectural decisions directly within the codebase context.
↳Automated scripting and CI/CD: Utilize CLI mode for single-shot graph operations in scripts or CI/CD pipelines.
10

Alternatives

⚡Top VS:
VSgortex★1.9k→VSmemtrace-public★505→VSlean-ctx★3.9k→VSOri-Mnemos★333→
gortex logo
gortex★ 1.9k
High-performance code intelligence engine that indexes repositories into an in-memory knowledge graph and exposes it via CLI, MCP Server, and web UI. Built for AI coding agents - expose only needed information - one get_editing_context call replaces 5-10 file reads, cutting token usage by ~94%.
VSCompare→
memtrace-public logo
memtrace-public★ 505
The missing memory layer for coding agents
VSCompare→
lean-ctx logo
lean-ctx★ 3.9k
Reduce AI coding costs by 99% — MCP Server + Shell Hook for Cursor, Claude Code, Copilot, Windsurf, Gemini CLI & 24 tools. Single Rust binary, zero telemetry.
VSCompare→
Ori-Mnemos logo
Ori-Mnemos★ 333
Local-first persistent agentic memory powered by Recursive Memory Harness (RMH). Open source must win.
VSCompare→
matryca-plumber logo
matryca-plumber★ 100
Bringing Andrej Karpathy's LLM Wiki to the Outliner Paradigm. Turn any AI Agent into a spatial Knowledge Architect using Logseq's atomic nodes.
VSCompare→
sverklo logo
sverklo★ 81
The local-first MCP server for code intelligence — symbol graph, blast-radius, git-pinned memory. Open-source alternative to Greptile/Sourcegraph for Claude Code & Cursor.
VSCompare→
Hoofy logo
Hoofy★ 16
Hoofy — AI development companion MCP server. Persistent memory, spec-driven development, adaptive change pipeline, Clarity Gate. 32 tools, single Go binary, zero deps.
VSCompare→
OpenLore logo
OpenLore★ 355
openlore provides persistent architectural memory for AI coding agents by turning codebases into queryable knowledge graphs featuring static analysis, living specs, automated drift detection, and graph-native MCP tools to eliminate context decay and drastically slash orientation token costs.
VSCompare→
See all alternatives →

Featured in these lists

  • Best Memory Tools for AI Agents and Coding Assistants
  • Best MCP Servers for Up-to-Date Docs and Code Context

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Why choose it03Trade-offs05Maintenance check04Who it fits06How it differs07Compatibility08Quick start09Use cases10Alternatives
DeusData /
codebase-memory-mcp
↗

Code knowledge graph that cuts agent token use on codebases

47.7k3.9kMIT
Last commit1d ago
StatusActive
CategoryMemory & Context
Contributors194
Latest releasev0.12.1
Links
Documentation↗Discussion↗Issues↗Releases↗
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
Best by use caseAboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

MCP ServersCode AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.