codebase-memory-mcp: High-Performance Knowledge-Graph Code Intelligence via MCP

RepositoryDeusData/codebase-memory-mcpTool

codebase-memory-mcp is a pure C Model Context Protocol (MCP) server that indexes codebases into persistent knowledge graphs, providing AI coding agents with sub-millisecond structural search while dramatically reducing token consumption.

Key points

  1. Indexes average repositories in milliseconds and the entire Linux kernel (28M LOC) in 3 minutes.
  2. Sub-millisecond structural queries exposed via 15 MCP tools covering call chains, classes, and service routes.
  3. Written in pure C as a single native executable with zero language runtimes, API keys, or cloud dependencies.
  4. Employs tree-sitter AST parsing across 162 languages, paired with Hybrid LSP semantic type resolution for major stacks.
  5. Reduces LLM exploration overhead significantly: benchmarks report 10× fewer tokens and 2.1× fewer tool calls versus file-by-file exploration.

Why it matters

AI coding assistants frequently waste large context windows and multiple roundtrips inspecting raw files. Providing a fast, deterministic knowledge graph allows agents to pinpoint relationships instantly, cutting operational costs and response latency.

Analysis

By tackling the context-retrieval bottleneck with a zero-runtime C architecture, the project combines high execution speed with deep code intelligence (tree-sitter and LSP). Backed by more than 42,000 GitHub stars, 6,700 passing tests, SLSA 3 security compliance, and an arXiv research paper, codebase-memory-mcp demonstrates exceptional engineering quality and production maturity.

Found in

Summary generated by AI (Gemini 3.8 Flash, 27 September 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

  • Article:Ravi Saive

    Accelerating AI Coding with codebase-memory-mcp on Linux

    codebase-memory-mcp is a standalone C-based MCP backend that indexes codebases into a local SQLite knowledge graph using tree-sitter, drastically cutting token consumption and latency for AI coding agents.

    AI & LLMs· Tutorial

  • Repository:Graphify-Labs/graphify

    Graphify: Turning Codebases and Documentation into Knowledge Graphs for AI Assistants

    Graphify converts codebases, documentation, SQL schemas, configurations, and PDFs into queryable knowledge graphs. The Python-based open-source tool integrates as a skill into assistants like Claude Code, Cursor, Codex, and Gemini CLI, relying on deterministic local AST parsing without vector databases.

    114.9kstarsPython

    AI & LLMs· Tool

  • Repository:alexeyban/EKOS

    EKOS: Enterprise Knowledge Compiler for AI Agents

    EKOS (Enterprise Knowledge Operating System) is an open-source Rust-based platform designed to observe, compile, and serve enterprise knowledge from disparate sources via the Model Context Protocol (MCP) for AI agents.

    10starsRust

    AI & LLMs· Tool

  • Link:graphify.net

    Graphify: Knowledge Graphs for AI Coding Assistants

    Graphify is an open-source skill and MCP server that creates queryable knowledge graphs from source code, documentation, papers, and diagrams to help AI coding assistants understand multi-modal codebases.

    AI & LLMs· Tool

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.