Codebase Memory Mcp

productivity MCP Server

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

Install Ready
productivityproductivity
12 views43,148 stars3,510 forksMIT

Why This Matters

Discovered via unknown and last synced 1w ago.

Install Ready
Source
unknown
Stars
43,148
Last synced
1w ago
Install
Instructions detected

Install

1. Install the package

npm install -g codebase-memory-mcp@latest
72
Tools
0
Resources
0
Prompts
Standard I/O
Transport

Available Tools (72)

Platform

Archive

any

`git --version`

authenticate

authorization") # Opt in to exact case matching when needed: search_graph(name_pattern=".*Handler", case_sensitive=true) ``` ### Search code (text search) ``` search_code(pattern="TODO") # → case-insensitive by default, matches "TODO", "Todo", "todo" search_code(pattern="TODO

Language

What it handles

Go

`cmd/server/main.go` → `HandleRequest`

Python

`services/__init__.py` → `setup`

TypeScript

`src/components/App.tsx` → `App`

Method

`UserService.GetUser`

Operation

Time

Aider

Detected

linux-amd64

`8e12bb2d6ead7f20a6d3...`

Antigravity

Detected

index_status

Check indexing status of a project.

search_code

Grep-like text search within indexed project files.

Binary

SHA-256

KiloCode

Detected

search_graph

Structural, BM25, and semantic search. Page structural rows with `offset`/`limit` and ranked semantic rows independently with `semantic_offset`/`semantic_limit`.

Agent

Activation

index_repository

Index a repository into the graph. Auto-sync keeps it fresh after that.

get_graph_schema

Node/edge counts, relationship patterns, property definitions per label. Run this first.

CBM_DOWNLOAD_URL

*(GitHub releases)*

OpenClaw

Detected

trace_call_path

BFS traversal — who calls a function and what it calls. Depth 1-5.

Variable

Default

darwin-arm64

`7062a7408906344bf4f8...`

Kiro

Detected

detect_changes

Map git diff to affected symbols + blast radius with risk classification.

CBM_CACHE_DIR

`~/.cache/codebase-memory-mcp`

darwin-amd64

`28c6d640e1a0ac7bfcab...`

Requirement

Check

Tool

Description

query_graph

Execute Cypher-like graph queries (read-only).

CBM_DIAGNOSTICS

`false`

windows-amd64

`9c3ddcf78368fd4fa891...`

Zed

Detected

list_projects

List all indexed projects with node/edge counts.

get_code_snippet

Read source code for a function by qualified name.

Problem

Fix

OpenCode

Detected

delete_project

Remove a project and all its graph data.

get_architecture

Codebase overview: languages, packages, routes, hotspots, clusters, ADR.

Tier

Score

ingest_traces

Ingest runtime traces to validate HTTP_CALLS edges.

linux-arm64

`10f7136bfbf3950c6b2a...`

File

What it is

Detected

Effective agent directory (`OMP_PROFILE` / `PI_CODING_AGENT_DIR`; default `~/.omp/agent/mcp.json`)

Cursor

Detected

Windsurf

Detected

Junie

Detected

Hermes

Detected

OpenHands

Detected

Cline

Detected

Warp

Detected, skill only

Crush

Detected

Goose

Detected

Amp

Detected

Tabnine

Detected

Conditional

Existing `~/.bob/mcp.json`

TRAE

Conditional

Pochi

Detected

Pi

Detected

trace_path

BFS traversal — who calls a function and what it calls (alias: `trace_call_path`). Depth 1-5.

CBM_ALLOWED_ROOT

*(unset)*

CBM_LOG_LEVEL

role-aware

CBM_WORKERS

*(detected)*

CBM_MEM_BUDGET_MB

*(detected)*

CBM_DUMP_VERIFY_MIN_RATIO

`0.5`

darwin

windows> <amd64

manage_adr

CRUD for Architecture Decision Records (`get` reads, `update` replaces the whole document, `set_sections` rewrites only the named sections and leaves every other byte untouched, `sections` lists headings). Query modes do not wait behind a same-project reindex; writes remain serialized.

Package

Contents

codebase-memory-mcp-ui

Server with the graph UI embedded (`--ui=true` works)

graph-ui

Just the built frontend assets (`dist/`)