Codebase Memory

v0.1.3Developer Toolsstable

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 155 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

aiderastclaude-codecode-analysiscode-intelligence
Share:
2,496
Stars
0
Downloads
0
Weekly
0/5

What is Codebase Memory?

Codebase Memory is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to high-performance code intelligence mcp server. indexes codebases into a persistent knowledge graph — average repo in milliseconds. 155 languages, sub-ms queries, 99% fewer tokens. single static binary...

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 155 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • High-performance code intelligence MCP server. Indexes codeb

Use Cases

High-performance code intelligence indexing
155 languages with sub-millisecond queries
DeusData

Maintainer

LicenseMIT
Languagec
Versionv0.1.3
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx codebase-memory

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Codebase Memory

Codebase Memory MCP is a high-performance code intelligence server that indexes an entire repository into a persistent knowledge graph in milliseconds and then answers structural queries in under one millisecond, reducing token usage by roughly 99% compared to sending raw files to an LLM. It supports 158 programming languages via tree-sitter, exposes 14 MCP tools for searching symbols, tracing call paths, running Cypher-like graph queries, detecting changes, and managing architecture decision records, and integrates automatically with 11 coding agents including Claude Code, Cursor, and Gemini CLI. Teams use it to give AI assistants deep, accurate context about large codebases without blowing token budgets.

Prerequisites

  • macOS, Linux, or Windows (the installer downloads a pre-built static binary — no runtime required)
  • curl and bash (macOS/Linux) or PowerShell (Windows) for the one-line installer
  • At least one supported MCP client: Claude Code, Cursor, Zed, Aider, Gemini CLI, or VS Code with MCP extension
  • Git installed if you want change detection via git diff integration
1

Install codebase-memory-mcp

Run the one-line installer. It downloads the correct binary for your platform, auto-detects installed coding agents, and configures MCP entries for each.

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

Verify the installation

Confirm the binary is on your PATH and check the current configuration.

codebase-memory-mcp --version
codebase-memory-mcp config list
3

Enable automatic indexing on session start

Turn on auto-indexing so the knowledge graph is always up to date when an agent session begins.

codebase-memory-mcp config set auto_index true
codebase-memory-mcp config set auto_index_limit 50000
4

Index your first repository

Index a codebase manually. The server stores the graph in the cache directory and keeps it in sync on subsequent runs.

codebase-memory-mcp cli index_repository '{"repo_path": "/path/to/your/repo"}'
5

Add to Claude Desktop configuration

If the auto-installer did not configure Claude Desktop, add the server entry manually.

{
  "mcpServers": {
    "codebase-memory": {
      "command": "codebase-memory-mcp",
      "args": [],
      "env": {
        "CBM_CACHE_DIR": "~/.cache/codebase-memory-mcp",
        "CBM_LOG_LEVEL": "info"
      }
    }
  }
}
6

Launch the optional graph UI

Start the 3D interactive graph browser to visually explore the code knowledge graph.

codebase-memory-mcp --ui=true --port=9749
# Then open: http://localhost:9749

Codebase Memory Examples

Client configuration

Claude Desktop configuration to run codebase-memory-mcp as an MCP server subprocess.

{
  "mcpServers": {
    "codebase-memory": {
      "command": "codebase-memory-mcp",
      "args": [],
      "env": {
        "CBM_CACHE_DIR": "/Users/you/.cache/codebase-memory-mcp",
        "CBM_LOG_LEVEL": "info",
        "CBM_WORKERS": "4"
      }
    }
  }
}

Prompts to try

Example prompts to use with Claude once codebase-memory is connected and a repository is indexed.

- "Index the repository at /Users/me/projects/myapp and give me an architectural overview."
- "Search for all functions whose names contain 'Handler' and show me where they are defined."
- "Trace the call path from the 'processPayment' function — what does it call and what calls it?"
- "Run a Cypher query to find all Functions that CALL more than 10 other Functions."
- "Which files changed in the last git diff and which symbols are at risk of being broken?"

Troubleshooting Codebase Memory

Indexing completes but queries return no results

Confirm the repo_path passed to index_repository is the absolute path to the repository root (not a subdirectory). Run 'codebase-memory-mcp cli list_projects' to verify the project appears in the index.

Auto-indexing is skipped because the codebase exceeds the limit

Increase the threshold: 'codebase-memory-mcp config set auto_index_limit 200000'. For very large monorepos, index specific subdirectories instead of the full root.

The binary is not found after installation

The installer places the binary in ~/.local/bin (Linux) or /usr/local/bin (macOS). Ensure that directory is on your PATH: 'export PATH="$HOME/.local/bin:$PATH"' and add it to your shell profile.

Frequently Asked Questions about Codebase Memory

What is Codebase Memory?

Codebase Memory is a Model Context Protocol (MCP) server that high-performance code intelligence mcp server. indexes codebases into a persistent knowledge graph — average repo in milliseconds. 155 languages, sub-ms queries, 99% fewer tokens. single static binary, zero dependencies. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Codebase Memory?

Follow the installation instructions on the Codebase Memory GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Codebase Memory?

Codebase Memory works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Codebase Memory free to use?

Yes, Codebase Memory is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "codebase-memory": { "command": "npx", "args": ["-y", "codebase-memory"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Codebase Memory?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides