LibreAI / AI Agents / codebase-memory-mcp
// agents · DeusData/codebase-memory-mcp

codebase-memory-mcp

High-performance code intelligence MCP server: your codebase as a persistent knowledge graph

★ 46.1k stars⑂ 3.8k forksMITupdated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

codebase-memory-mcp is an open-source ai agents project by DeusData (DeusData/codebase-memory-mcp on GitHub). It has 46,150 GitHub stars and 3,796 forks, is released under the MIT license, and was last updated on GitHub on 7 October 2026.

GitHub stars
46,150
Forks
3,796
License
MIT
Last updated on GitHub
7 October 2026
Category
AI Agents
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Clarify your goal

    Decide what you want from codebase-memory-mcp and check the README and requirements to confirm it fits your setup and C environment.

  2. Get the code

    Clone the repository from GitHub (github.com/DeusData/codebase-memory-mcp) or use the documented install channel if you do not need the source.

  3. Install and configure

    Follow the README quickstart to install dependencies and set any required configuration or credentials.

  4. Run your first task

    Work through the README's first example end to end, then adapt it to your own project or data.

// features

Why people love it

Persistent code graph

Indexes codebases into a persistent knowledge graph stored in SQLite.

158 languages

Supports 158 programming languages through tree-sitter based parsing.

Single static binary

One static binary with zero dependencies — install is a single script.

Sub-millisecond queries

Graph queries answer in sub-millisecond times, per the project description.

Token savings

Designed to answer code questions with far fewer tokens than reading raw files.

Graph visualization UI

Includes a graph visualization UI and an auto-indexing session daemon.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Start by getting the source and entering the project directory.

    git clone https://github.com/DeusData/codebase-memory-mcp.git
    cd codebase-memory-mcp
  2. Run the installer

    The README's quick start installs the binary with one curl command.

    curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash
  3. Index your repo and connect

    Let it auto-index your codebase, then connect it as an MCP server to Claude Code, Cursor or Codex.

    # see README for the exact command — Quick Start
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains codebase-memory-mcp?

It is maintained by DeusData and contributors on GitHub, where the repository github.com/DeusData/codebase-memory-mcp is the canonical home for code, issues and releases.

Is codebase-memory-mcp free to use?

Yes — it is open source under the MIT license. Read the license in the repository for what is permitted, including any conditions on redistribution or commercial use.

Does it need a paid API key?

No. It runs fully locally as a binary; your agent keeps using your own account.

How does codebase-memory-mcp compare to alternatives?

Compared with grep and manual exploration: This server pre-indexes a queryable graph, so agents get structural answers in milliseconds instead of scanning files.

How do I get started?

Clone github.com/DeusData/codebase-memory-mcp, follow the README quickstart to install it, and run the documented first example before adapting it to your own work.

// keep exploring

Similar tools

AI Agents

basic-memory

Basic Memory: local-first MCP memory so you and your AI tools build a shared knowledge graph in Markdown

★ 4.1k starsAGPL-3.0
View guide →
AI Agents

gortex

Gortex, in Go — built for high-performance code-intelligence engine for ai agents.

★ 1.9k starsApache-2.0
View guide →
AI Agents

codedb

Zig code intelligence server and MCP toolset for AI agents.

★ 1.4k starsBSD-3-Clause
View guide →
AI Agents

council-of-high-intelligence

Convene 18 legendary thinkers as an AI council that debates your hardest questions — inside Claude Code

★ 4.6k starsMIT
View guide →
AI Agents

iwe

A markdown knowledge graph with LSP for editors and MCP for agents.

★ 1.7k starsApache-2.0
View guide →
AI Agents

x64dbg-mcp-server

Native MCP plugin for x64dbg — let an AI drive the debugger: breakpoints, stepping, memory, registers

★ 2.4k starsMIT
View guide →
// alternatives

Alternatives in AI Agents

The most-starred other AI Agents projects in the LibreAI catalogue — the realistic shortlist if codebase-memory-mcp is not the right fit.

Get codebase-memory-mcp

Free and open — grab the source, star the repo, and start creating.