Skip to content

rashidul-rahul/codebase-memory-mcp

 
 

Repository files navigation

codebase-memory-mcp

A personal fork of DeusData/codebase-memory-mcp — a knowledge graph-based code intelligence engine for AI coding assistants.

All credit for the core project goes to the original authors at DeusData. This fork adds personal improvements on top of their excellent work.

What It Does

Indexes your codebase into a persistent knowledge graph using tree-sitter AST analysis across 66 languages. Exposes 14 MCP tools so AI agents (Claude Code, Codex CLI, Gemini CLI, etc.) can answer structural questions about your code in under 1ms — without reading every file.

Single static binary. Zero dependencies. SQLite-backed.

Install

macOS / Linux:

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

Windows (PowerShell):

Invoke-WebRequest -Uri https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.ps1 -OutFile install.ps1
.\install.ps1

Build from source:

git clone https://github.com/rashidul-rahul/codebase-memory-mcp.git
cd codebase-memory-mcp
make -f Makefile.cbm

The binary lands in build/c/codebase-memory-mcp.

Setup

After installing, add to your MCP config (~/.claude/.mcp.json or project .mcp.json):

{
  "mcpServers": {
    "codebase-memory-mcp": {
      "command": "/path/to/codebase-memory-mcp",
      "args": []
    }
  }
}

Restart your agent. Say "Index this project" — done.

Usage

Once indexed, your AI agent can use the MCP tools directly. Some examples:

"What calls ProcessOrder?"
"Show me the architecture of this project"
"What changed in the last commit and what does it affect?"
"Find dead code in this repo"

The agent translates your questions into graph queries automatically.

Credits

Built on top of codebase-memory-mcp by DeusData. Licensed under MIT.

About

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

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 92.6%
  • C++ 6.0%
  • Shell 0.7%
  • TypeScript 0.4%
  • Python 0.1%
  • JavaScript 0.1%
  • Other 0.1%