Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyProgramming

Codebase Memory

Lets your AI agent explore your code as a local knowledge graph: find code, follow calls and see what a change affects.

48k stars on GitHubby DeusDataLicense MITUpdated 19 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add codebase-memory -- npx -y codebase-memory-mcp

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Index this project.
Where is the payment retry logic and who calls it?

What it is

Codebase Memory indexes your repository, docs, configuration and infrastructure files into a persistent local graph. Your agent can then ask focused questions instead of reading many files. Indexing and queries run on your machine with no hosted service or API key.

What it can do

  • Index a project into a code knowledge graph
  • Find code by symbol, text and semantic search
  • Trace callers and dependencies
  • Check which parts a change could affect
  • Find related tests
  • 17 MCP tools in total, plus an optional visual companion called CBM Lens

When to use

  • β€ΊWhen you are new to a large repository and need to find a feature.
  • β€ΊWhen you want to trace a call across services before changing it.
  • β€ΊWhen you want fewer repeated file reads and lower token use.

What you need

Nothing besides downloading the native binary with the install script. No Docker, language runtime, hosted service or API key is needed.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Does my code leave my machine?

The README says source analysis and graph storage run locally. CBM Lens can optionally download a model for in-browser AI.

Do I need an API key?

No. Indexing and graph queries need no hosted service or API key.

How do I install it?

Run the install.sh script on macOS or Linux, or install.ps1 on Windows, then restart your agent and say Index this project.

Which agents work with it?

The installer supports 45 automatic or conditional client integrations, including Claude Code, Codex and OpenCode.

Why does Defender flag the binary?

The README says Microsoft Defender may flag it as a known false positive and explains how to verify the files.

Can I turn off hooks?

Yes. Run codebase-memory-mcp install --no-hooks.

If it does not work

  • β€ΊOn Windows, run Unblock-File on install.ps1 or use PowerShell -ExecutionPolicy Bypass if a policy error appears.
  • β€ΊRestart your coding agent after installing, then ask it to index the project.
  • β€ΊIf Defender flags the binary, see the antivirus note in SECURITY.md.

5 new skills a week. 1 minute to read.