Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 94
  • 49k stars
  • 15k a week
  • MIT
  • Updated

Install Codebase Memory

Built from the published package, never by AI.

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

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Codebase Memory in Claude Code

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 →

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.

Codebase Memory Install

Add to stack

Loading.