Codebase Memory
MCP server by DeusData Community
Gives AI coding agents a persistent local knowledge graph of a repository, linking source code, docs, configuration and infrastructure. Built for developers who want structural context through MCP.
Install Codebase Memory
Built from the published package, never by AI.
claude mcp add codebase-memory -- npx -y codebase-memory-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"codebase-memory": {
"args": [
"-y",
"codebase-memory-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"codebase-memory": {
"args": [
"-y",
"codebase-memory-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"codebase-memory": {
"args": [
"-y",
"codebase-memory-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add codebase-memory -- npx -y codebase-memory-mcp{
"mcpServers": {
"codebase-memory": {
"args": [
"-y",
"codebase-memory-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add codebase-memory npx -y codebase-memory-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the codebase-memory block.
About
Codebase Memory is an MCP server that builds a persistent local knowledge graph of a repository. It connects source code, documentation, configuration and infrastructure files, so an AI assistant can find features, follow calls across services and trace deployments back to their source. Indexing and graph queries run on the user's machine without a hosted service or API key.
The native C backend exposes 17 MCP tools and adds Hybrid LSP type resolution for supported languages. The installer configures 46 automatic or conditional clients, including skills and hooks. An optional beta visual companion, CBM Lens, adds architecture maps and source navigation. It suits developers who work with unfamiliar or large codebases and want their agents to rely on structural context.
Written from the project's README and checked against it.
Tools it gives your assistant
Code knowledge graphPersistent local graph linking code, docs, configuration and infrastructure.Search and contextSymbol, text and semantic search with callers, dependencies and source snippets.Infrastructure tracingFollows supported relationships through Docker, Kubernetes, Terraform, Ansible and CI configs.Change impactInspects affected symbols and related tests before a change is run.Smart CI (experimental)Combines static relationships and per-test coverage for supported C/C++ test harnesses.CBM Lens (beta)Visual source reader, architecture maps, call paths and local code chat.Agent setupInstalls MCP configuration, skills, agent profiles and hooks for supported clients.
What you need
- macOS, Linux or Windows
Try asking
- Index this project and summarize its main modules.
- Trace the call path from this endpoint to the database layer.
- Which files and tests could my change to this function affect?
Good to know
- CBM Lens is in open beta (v0.0.1).
- Smart CI is experimental and covers supported C/C++ test harnesses only.
- Support for skills, profiles and hooks varies by client.
Security check
C- Downloads a script from the internet and runs itIn
README.md:curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Codebase Memory
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Codebase Memory: common questions
Does Codebase Memory need an API key?
The source says indexing and graph queries need no hosted service or API key. Source analysis and graph storage run on the local machine.
Which AI clients does it work with?
The installer supports 46 automatic or conditional client integrations. The source notes that support varies by client and platform.
Is CBM Lens production ready?
The source says CBM Lens is in open beta at version 0.0.1. It is an optional visual companion, while the MCP server is described as the core of the project.
How do I install Codebase Memory?
In Claude Code run claude mcp add codebase-memory -- npx -y codebase-memory-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Codebase Memory the official server?
Codebase Memory is a community project by DeusData, not verified by a company domain.
Is Codebase Memory free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Codebase Memory safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to Codebase Memory?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Codebase Memory work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
