# codebase-memory-mcp

> Local code intelligence for AI agents: a persistent knowledge graph of your code over MCP

Source: https://talira.ai/catalog/codebase-memory-mcp-bmyghda5
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: MCP server, Command-line tool, Desktop app
- Categories: [developer tools / ai coding / context](https://talira.ai/categories/developer-tools/ai-coding/context), [ai / mcp / servers](https://talira.ai/categories/ai/mcp/servers), [ai / knowledge graphs](https://talira.ai/categories/ai/knowledge-graphs)
- Platforms: macos, linux, windows[^1][^2]
- Licence: MIT[^3]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Self-hostable: yes[^1]
- MCP server: yes[^1][^2]
- Supports: [MCP](https://talira.ai/standards/mcp.md)[^1][^2]
- Backed by: [Martin Vogel](https://talira.ai/orgs/martin-vogel.md)

codebase-memory-mcp is a local MCP server, written in C, that indexes a repository into a persistent knowledge graph of functions, classes, call chains, HTTP routes, cross-service links, documentation and infrastructure (Dockerfiles, Kubernetes, Helm, Terraform, CI). Coding agents query it through 17 MCP tools (structural, full-text and semantic search, call path tracing, git diff impact analysis, Cypher-like queries, code snippets) instead of reading file after file, and the same queries run from its CLI. It uses tree-sitter grammars plus LSP type resolution for supported languages, bundles its embedding model, and needs no API key or hosted service. The installer configures dozens of coding agents with skills and hooks, and CBM Lens (open beta) is an optional visual explorer. Collects no telemetry. MIT.

## Links

- Website: https://deusdata.github.io/codebase-memory-mcp/
- GitHub: https://github.com/DeusData/codebase-memory-mcp
- Docs: https://github.com/DeusData/codebase-memory-mcp/tree/main/docs

## Problems it solves

- my coding agent wastes tokens reading file after file to understand a large codebase
- give Claude Code or Cursor a map of my repository's functions, callers and dependencies
- find what calls a function and what a change could break before editing it
- trace a Kubernetes service back to the Dockerfile and code it runs
- keep a code index between agent sessions without sending code to a hosted service
- semantic code search for an AI agent that runs locally without an API key

## Features

- 17 MCP tools: index, search_graph, trace_path, detect_changes, query_graph, get_code_snippet and more
- structural, BM25 and local semantic search with bundled embeddings
- call path, data flow and cross-service tracing
- maps a git diff to affected symbols and their blast radius
- indexes documentation, ADRs, Dockerfiles, Kubernetes, Helm, Terraform and CI configuration
- hybrid LSP type resolution for supported languages
- persistent indexes kept in sync while agent sessions run
- installer sets up MCP config, skills, agent profiles and hooks for many coding agents
- CBM Lens visual explorer (open beta)
- native C binary with no language runtime; no telemetry

## Limitations

- Smart CI test selection is experimental and uses per-test coverage only for supported C/C++ test harnesses[^1]

## Capabilities

- Has a command line tool: plan not known
- Has an MCP server: plan not known

## Trust

Overall: 0.38 out of 1.
Signals: backing 0.30, extensibility 0.40.

- backed by Martin Vogel
- has an MCP server for agents

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [CodeGraphContext](https://talira.ai/catalog/codegraphcontext-35d3ccb4.md): Index local code into a graph database to give AI assistants and developers repository-wide context
- [AOCI-CODE](https://talira.ai/catalog/aoci-code-cm2mxqe7.md): Git-versioned codebase index that coding agents read first

## Sources

[^1]: https://github.com/DeusData/codebase-memory-mcp#readme (checked 22 Nov 2026)
[^2]: https://deusdata.github.io/codebase-memory-mcp/ (checked 22 Nov 2026)
[^3]: https://github.com/DeusData/codebase-memory-mcp/blob/main/LICENSE (checked 22 Nov 2026)
