DeusData's codebase-memory-mcp is a high-performance C-based MCP server that indexes codebases into persistent SQLite knowledge graphs to slash AI agent token consumption by up to 99%.
codebase-memory-mcp is an open-source Model Context Protocol server developed in C by DeusData that indexes repositories into persistent SQLite knowledge graphs for AI coding agents such as Claude Code, Cursor, and Zed. By using Tree-sitter to parse 158 languages and indexing entire codebases in milliseconds, the tool enables agents to query structural relationships—including call hierarchies, symbol definitions, and dependencies—in under 1ms instead of relying on token-heavy file greps. Distributed as a self-contained static binary with zero external dependencies and no cloud processing requirements, it dramatically speeds up repository navigation while reducing LLM context window consumption by up to 99%.
Brute-force file reading and grepping are reaching their limits; deterministic AST-based knowledge graphs represent the true future of scalable AI code assistance.
- –Drastic Token Reduction: Transitioning from raw file dumps to indexed graph queries cuts context overhead by up to 99%, keeping LLM prompts focused and cost-effective.
- –High-Performance C Native: Packaging Tree-sitter and SQLite into a single static binary delivers sub-millisecond queries with zero runtime dependency headaches.
- –Privacy & Local Execution: Running fully on-device without cloud calls or API keys makes it safe and compliant for enterprise and proprietary codebases.
- –Rapid Indexing: Sub-second to minute-level full repository indexing allows large-scale projects and mono-repos to be queried seamlessly without lagging the agent loop.
DISCOVERED
1h ago
2026-09-23
PUBLISHED
1h ago
2026-09-23
RELEVANCE