Skip to content

codebase-memory-mcp

Local MCP server that indexes your codebase into a knowledge graph for AI coding agents

Permissive (OSI) · MIT AI-native

Listed by , founder & editor

80

Health

Thriving

Overview

Stars

49,108

Last commit

today

Nov 2026

Repository age

9 months

since Feb 2026

Latest version

v0.12.1

Oct 2026

Contributors

–

4 active in 90 days

Releases

23

last 12 months

Language

C

codebase-memory-mcp is an MCP server written in C. It indexes source code, docs, configuration and infrastructure files into a persistent knowledge graph stored on your machine. AI coding agents query it for structure, such as callers, dependencies and the impact of a change. You can also query the graph from the CLI.

The backend exposes 17 MCP tools. It parses languages with vendored grammars and adds Hybrid LSP type resolution for supported languages. The installer can set up 46 client integrations, including client configuration, skills and hooks. Indexing and queries need no hosted service or API key.

An optional companion, CBM Lens, is in open beta at v0.0.1. It offers a source reader, architecture maps, a 3D graph view and local code chat. The project is MIT licensed, started in 2026 and ships frequent releases. It suits teams who want local code intelligence for agents such as Claude Code, Codex or Cursor instead of a hosted code-search service.

Who it's for

Developers using AI coding agents on large repositories

Graph queries give the agent structure without repeated file reads.

Skip if: Your repositories are small enough for the agent to read directly.

Teams that cannot send code to a hosted service

Indexing and graph storage run locally with no API key.

Skip if: You want a managed service with shared cloud indexes.

Engineers onboarding to unfamiliar multi-service codebases

You can trace calls across services and link docs to code.

Skip if: You need a mature visual tool, since CBM Lens is a v0.0.1 beta.

The problem it solves

AI coding agents often lack a view of how a large codebase fits together, so they read many files to answer simple questions. Hosted code-intelligence tools need you to upload your source. This server builds the map locally and serves it over MCP.

Strengths

  • 17 MCP tools over a persistent local knowledge graph
  • Installer covers 46 client integrations
  • No hosted service or API key needed for indexing
  • Native C backend with vendored grammars
  • 23 releases in the past year

Trade-offs

  • Project started in 2026, so it has a short track record
  • CBM Lens visual companion is an open beta at v0.0.1
  • Installer writes agent configuration for the clients you pick
  • Value depends on how well your agent uses the tools

Self-host codebase-memory-mcp

Self-hostable
Yes

Frequently asked questions

Is it free?

Yes. It is open source under the MIT license.

Does my code leave my machine?

No. Source analysis and graph storage run locally. CBM Lens can optionally download a model for in-browser AI once you enable it.

Which agents does it work with?

It works through MCP, and the installer supports 46 client integrations, including Claude Code, Codex and Cursor.

Can I use it without an agent?

Yes. You can query the graph directly from the CLI.

Similar tools in MCP servers and tooling

MCPJungle

MCP servers and tooling

Self-hosted gateway that puts all your MCP servers behind one endpoint

1.6k 205 4 days ago Active MPL-2.0

mobile-mcp

MCP servers and tooling

MCP server that lets AI agents drive iOS and Android apps on devices and emulators

11k 967 today Thriving Apache-2.0

DesktopCommanderMCP

MCP servers and tooling

MCP server that lets AI chat clients run terminal commands and edit files on your computer

10k 1.3k 5 days ago Thriving MIT

OpenConnector

MCP servers and tooling

6.3k 622 today Thriving Unknown

pullmd

MCP servers and tooling

Self-hosted converter from web pages and documents to Markdown for AI agents

529 44 today Thriving AGPL-3.0

wigolo

MCP servers and tooling

Local-first search, crawl and extract server that gives AI agents web access over MCP

5.6k 462 today Thriving AGPL-3.0

Replaces TavilyFirecrawl