AIAny
Icon for item

codebase-memory-mcp

Indexes codebases into a persistent, queryable knowledge graph for AI coding agents, enabling full-repo indexing in minutes and sub-millisecond structural queries. Bundles 158 vendored tree-sitter grammars, a Hybrid LSP resolver, built-in embeddings, and 14 MCP tools for search, trace, and architecture analysis.

Introduction

Most code exploration workflows ask an LLM to read many files; codebase-memory-mcp replaces that with a structural knowledge graph so agents ask a single graph query instead of scanning hundreds of files. That design reduces token usage and tool calls dramatically while giving precise, import-aware call resolution across large repositories.

What Sets It Apart
  • Graph-first indexing with vendored tree-sitter grammars (158 languages). This eliminates per-project language setup and lets the binary index diverse repos quickly (Linux kernel: full index in ~3 minutes).
  • Hybrid LSP semantic resolver layered over tree-sitter. Type- and import-aware resolution for many languages (Python, TypeScript/JSX, Java, Rust, Go, C/C++, C#, PHP, Kotlin) means CALLS/IMPORTS edges are accurate across files and packages, so trace queries follow real runtime call chains.
  • Local, single static binary with secured releases. No external APIs or language servers required; binaries are signed, SLSA-attested, and VirusTotal-scanned for reproducible local operation.
  • Multi-signal search (bundled embeddings + BM25 + structural signals). Semantic search and structural queries let agents find symbols and code patterns without sending code to a remote LLM or embedding service.
Who It's For & Trade-offs

Great fit if you run LLM-driven coding agents or automated tooling that need precise, low-latency code discovery across medium-to-large repos, especially in polyglot environments. It's also useful for teams that want a committable graph artifact (.codebase-memory/graph.db.zst) to avoid repeated reindexes.

Look elsewhere if you need a full natural-language UI or built-in LLM — codebase-memory-mcp is a structural backend (an MCP server) and expects your agent to translate natural language into graph queries. Also, projects that demand per-project language servers for deep semantic analysis beyond the Hybrid LSP coverage may still prefer an IDE language server.

Where It Fits

Use this as the local code-intelligence backend for MCP-compatible agents (Claude Code, Gemini CLI, Codex CLI, VS Code, etc.). It complements—not replaces—LLMs: let the agent handle NL→query translation and use codebase-memory-mcp to return compact, high-fidelity structural context that dramatically reduces token and tool-call overhead.

Information

  • Websitegithub.com
  • OrganizationsDeusData
  • Published date2026/02/24

Categories

More Items

GitHub

Implements the Model Context Protocol in TypeScript, providing server and client libraries to expose tools, resources, and prompts to LLM hosts. Ships Streamable HTTP and stdio transports, optional middleware for Express/Fastify/Hono, and runnable examples for Node/Bun/Deno.

GitHub

An open protocol that standardizes how LLM applications connect to external data sources, tools, and services via JSON-RPC — TypeScript-first schema with JSON Schema exports, SDKs, and centralized documentation to enable interoperable integrations.

GitHub

Helps developers connect IDEs and AI agents to the Figma MCP server to extract design context, generate code from frames, and write updates back to Figma. Includes client setup (VS Code, Cursor, Claude Code, Gemini CLI), tools and skills, best practices, and beta rate-limit notes.