DeusData/codebase-memory-mcp is a code intelligence MCP server. It indexes a codebase into a persistent knowledge graph, helping agents such as Claude Code, Codex, Gemini CLI, Aider, and OpenCode query project structure faster.
Project repository:
https://github.com/DeusData/codebase-memory-mcp
Documentation site:
https://deusdata.github.io/codebase-memory-mcp/
Quick Answer
Codebase Memory MCP builds a persistent knowledge graph for a repository and exposes it to MCP-compatible coding agents. Install the binary, index one test repository, start the UI on port 9749, and verify that your agent can locate an entry point or trace a call chain before relying on it for code changes.
One-line Installation
macOS / Linux:
|
|
If you also want to install the graphical interface:
|
|
Windows:
|
|
Manual Installation
After extracting on macOS / Linux:
|
|
Windows:
|
|
Open the UI
|
|
Auto Indexing and Updates
Enable auto indexing:
|
|
Update:
|
|
Uninstall:
|
|
How to Use It
It fits large codebases where agents repeatedly read the same files. For example:
- A legacy project has a complex structure and AI often picks the wrong entry point.
- A multi-language repository needs fast dependency lookup.
- You want to reduce the number of files an agent pushes into context.
- You want to share one code memory through MCP across multiple coding tools.
After installation, ask the agent to start with a small task: explain the project structure, find the call chain of an API, or locate a configuration entry. Once you confirm it can query correctly, use it for real code changes.
Troubleshooting and Verification
If the agent cannot see the server, first run codebase-memory-mcp --ui=true --port=9749 directly and confirm that the local UI opens. Then check the MCP client configuration, restart the client so it reloads the server definition, and index a small repository before testing a monorepo. If answers look stale, confirm that auto_index is enabled or trigger a fresh index after large branch changes.
For alternative approaches, compare CodeGraph for local code knowledge graphs and Graphify for repository mapping and call-flow export. These tools overlap, but their installation model, output artifacts, and agent integrations differ.