Codebase Memory
Codebase Memory is an MCP server that adds developer tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens. It has 45,917 GitHub stars, is released under the MIT license and runs locally with npx -y codebase-memory-mcp.
github.com/DeusData/codebase-memory-mcp (opens in a new tab)
- Developer tools
- MIT
- Actively maintained
Install Codebase Memory
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"codebase-memory": {
"command": "npx",
"args": [
"-y",
"codebase-memory-mcp"
]
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --transport stdio codebase-memory -- npx -y codebase-memory-mcpCursor
{
"mcpServers": {
"codebase-memory": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"codebase-memory-mcp"
]
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"servers": {
"codebase-memory": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"codebase-memory-mcp"
]
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Tools (17)
Parsed from the Tools section of the README; check the repository for the current list.
index_repositoryIndex a repository into the graph. Auto-sync keeps it fresh after that.
list_projectsList all indexed projects with node/edge counts.
delete_projectRemove a project and all its graph data.
index_statusCheck indexing status of a project.
check_index_coverageCheck whether exact paths or a scope are indexed and fresh. A clean result means no recorded gap, not proof of…
search_graphStructural, BM25, and semantic search. Page structural rows with offset/limit and ranked semantic rows independently…
trace_pathBFS traversal — who calls a function and what it calls (alias: tracecallpath). Depth 1-5.
detect_changesMap git diff to affected symbols + blast radius with risk classification.
query_graphExecute Cypher-like graph queries (read-only).
get_graph_schemaNode/edge counts, relationship patterns, property definitions per label. Run this first.
compare_graphsCompare two indexed snapshots: node/edge additions and removals between a base and a target.
get_code_snippetRead source code for a function by qualified name.
get_file_outlineDeclaration outline of one repository-relative file in source order, with optional label filter and paging.
get_architectureCodebase overview: languages, packages, routes, hotspots, clusters, ADR.
search_codeGrep-like text search within indexed project files.
manage_adrCRUD for Architecture Decision Records (get reads, update replaces the whole document, setsections rewrites only the…
ingest_tracesIngest runtime traces to validate HTTP_CALLS edges.
About Codebase Memory
The fastest and most efficient code intelligence engine for AI coding agents. Full-indexes an average repository in milliseconds, the Linux kernel (28M LOC, 75K files) in 3 minutes. Answers structural queries in under 1ms. Ships as a native executable with a small verified runtime-asset set for macOS, Linux, and Windows — download, run install, done.
- claude-code
- code-analysis
- code-intelligence
- developer-tools
- knowledge-graph
- mcp
- mcp-server
- model-context-protocol
- sqlite
- tree-sitter
Similar MCP servers
More developer tools MCP servers
Gemini CLI
google-gemini/gemini-cli
An open-source AI agent that brings the power of Gemini directly into your terminal.
Developer toolsTypeScriptFront-End Checklist
thedaviddias/Front-End-Checklist
Review frontend code and live pages against 386 quality-gated web development rules.
Developer toolsMDXClaude Flow
ruvnet/ruflo
AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.
Developer toolsTypeScriptBytedance Filesystem
bytedance/UI-TARS-desktop
MCP server for filesystem access.
Developer toolsTypeScriptGitHub
github/github-mcp-server
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
OfficialDeveloper toolsGoRepomix
yamadashy/repomix
Pack local or remote codebases into AI-friendly files that LLMs and coding agents can read or search.
Developer toolsTypeScript
What is Codebase Memory?
Codebase Memory is an MCP server that adds developer tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens. It has 45,917 GitHub stars, is released under the MIT license and runs locally with npx -y codebase-memory-mcp. The source code is at github.com/DeusData/codebase-memory-mcp.
How do I install the Codebase Memory MCP server?
Add the command npx -y codebase-memory-mcp to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is Codebase Memory free?
The server is open source under the MIT license, so running it is free. It does not declare any required API key.
Is Codebase Memory actively maintained?
The most recent commit was on Oct 6, 2026. The latest release is v0.11.0, published Sep 15, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.