Codebase Memory MCP logo

Codebase Memory MCP

by DeusData

Indexes local repositories into a persistent code graph for symbol search, call tracing, architecture analysis, and change impact queries.

Install Codebase Memory MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "deusdata-codebase-memory-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "codebase-memory-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

DeusData/codebase-memory-mcp indexes source code, documentation, configuration, and infrastructure into a persistent local knowledge graph. Its MCP tools support symbol and text search, Cypher graph queries, caller and callee tracing, architecture inspection, code snippets, file outlines, snapshot comparison, and Git change impact analysis. Parsing covers more than 150 languages and uses vendored grammars with Hybrid LSP type resolution for supported languages. Reach for it when an agent needs repository-scale context, cross-service relationships, or bounded structural results instead of repeatedly reading files.

Use cases

  • Index a repository for agent-assisted code navigation
  • Trace callers, callees, and cross-service paths
  • Inspect architecture, dependencies, routes, and hotspots
  • Map Git changes to potentially affected code
  • Compare two indexed repository snapshots

Key features

  • Persistent local knowledge graph
  • Symbol, text, regex, and semantic search
  • Read-only Cypher graph queries
  • Caller, callee, data-flow, and cross-service tracing
  • Architecture and coverage diagnostics
  • Multi-language parsing with Hybrid LSP resolution

Tools17

What Codebase Memory MCP lets your agent do. Expand a tool for its parameters.

Verified live~3.7k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

96/96 checks healthy over the last 86d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 1d ago via OSV.dev · codebase-memory-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars48kStargazers on the source repository.
npm downloads43kPackage downloads in the last 30 days.
Last commit2d agoMost recent push to the default branch.
Tools exposed17Callable tools this server registers over MCP.
Directory activity1 installs · 1 upvotesConfig copies, upvotes, and views on AllMCPs.

How Codebase Memory MCP works

What DeusData/codebase-memory-mcp does

DeusData/codebase-memory-mcp gives coding agents a local, persistent representation of a repository and the systems around it. It can index source files, documentation, configuration, infrastructure definitions, and architecture decision records, then expose their relationships through MCP. The graph represents items such as functions, classes, symbols, call relationships, inheritance, implementations, usage, HTTP routes, and links between services.

The native implementation processes data on the local machine and does not require a hosted service or API key for indexing and graph queries. It is distributed as a static binary with bundled parser grammars and supports macOS, Linux, and Windows. The command-line entry point can also be invoked with npx codebase-memory-mcp.

How it works

Indexing builds a project graph that persists between sessions. index_repository supports full, moderate, and fast modes; the faster mode omits some semantic information, while cross-repo intelligence can connect services. Indexing reports coverage gaps, which can be inspected with the coverage tools.

Search combines graph-ranked text matching with symbol-oriented lookup. Results retain qualified names, file locations, line ranges, and relationship information. Graph queries use read-only Cypher and return bounded, paginated results with totals and truncation details. Cursor-based continuation is available for large result sets.

The parser supports more than 150 languages and file formats through vendored grammars. Hybrid LSP adds type resolution for supported languages. Results should be interpreted with coverage information: a clean coverage result is not proof that every relevant file or relationship was indexed.

Setup and configuration

The native release can be installed on macOS or Linux with the project’s installation script:

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

The MCP process can also be started through the package command:

Terminal
npx codebase-memory-mcp

After installation, the included daemon can be started with codebase-memory-mcp daemon start --open --port=9749. The server is designed for local processing and does not need Docker, a language runtime, or an external API key for its core indexing and query functions.

Tools and capabilities

  • index_repository creates or updates an indexed project and reports coverage gaps.
  • search_graph finds symbols using BM25, regular expressions, or semantic queries.
  • query_graph runs read-only Cypher for multi-hop relationships, aggregations, complexity checks, and cross-service analysis.
  • trace_path follows callers, callees, data flow, and cross-service paths, with paged results.
  • get_code_snippet returns bounded source or larger excerpts for indexed symbols.
  • get_file_outline lists declarations in source order with exact paging controls.
  • get_architecture reports languages, packages, entry points, dependencies, routes, hotspots, boundaries, layers, clusters, cycles, or file trees.
  • compare_graphs compares two indexed snapshots using stable node and edge identities.
  • detect_changes maps a Git diff to files and potential impact.
  • list_projects, delete_project, and index_status manage and inspect indexed projects.
  • get_graph_schema exposes graph counts and, with full diagnostics, queryable properties.
  • check_index_coverage checks path coverage and freshness.
  • manage_adr outlines, reads, or replaces architecture decision records.
  • search_code performs graph-ranked text search for symbols, bounded source, or file paths.
  • ingest_traces validates and counts traces; it does not create graph edges.

Limitations and notes

Large responses are bounded by row, byte, line, or result limits depending on the tool. Use continuation cursors or offsets to retrieve additional pages. Snapshot comparisons also impose caps and report truncation reasons.

Tracing excludes tests and resolver evidence by default. Architecture and relationship results depend on indexed coverage, language support, and the selected indexing mode. ingest_traces currently validates input without adding trace-derived edges to the graph.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Codebase Memory MCP

DeusData/codebase-memory-mcp is an MCP server that connects coding agents to a persistent local knowledge graph of repository source, documentation, configuration, and infrastructure. Its main tools index repositories, search symbols and code, query relationships with Cypher, trace call paths, inspect architecture, compare snapshots, and analyze Git change impact.

Install it with the project’s macOS or Linux shell installer, or run it through `npx codebase-memory-mcp`. The native release supports macOS, Linux, and Windows; the included daemon can be started with `codebase-memory-mcp daemon start --open --port=9749`.

No, its core indexing and graph queries run locally without a hosted service or API key. Source analysis and graph storage execute on the machine running the server.

Use `trace_path` for caller, callee, data-flow, or cross-service paths, or use `query_graph` for custom multi-hop Cypher analysis. Trace results include relationships, hops, totals, and continuation information; tests and resolver evidence are excluded by default.

Use `check_index_coverage` to inspect exact-path or scope coverage and freshness, and use `index_status` for project readiness and coverage gaps. Coverage checks are best-effort, so a clean result does not prove complete indexing.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCodebase Memory MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/deusdata-codebase-memory-mcp?style=directory)](https://allmcps.com/mcp/deusdata-codebase-memory-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/deusdata-codebase-memory-mcp"><img src="https://allmcps.com/api/badge/deusdata-codebase-memory-mcp?style=directory" alt="Codebase Memory MCP on AllMCPs" /></a>