DeusData/codebase-memory-mcp

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms...

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 48 minutes ago
Added to GitGenius on June 21st, 2026
Created on February 24th, 2026
Open Issues & Pull Requests: 442 (+1)
Number of forks: 3,073
Total Stargazers: 38,589 (+7)
Total Subscribers: 162 (+0)

Issue Activity (beta)

Open issues: 344
New in 7 days: 45
Closed in 7 days: 14
Avg open age: 15 days
Stale 30+ days: 95
Stale 90+ days: 0

Recent activity

Opened in 7 days: 36
Closed in 7 days: 12
Comments in 7 days: 54
Events in 7 days: 189

Top labels

  • bug (459)
  • parsing/quality (244)
  • ux/behavior (231)
  • priority/high (218)
  • stability/performance (167)
  • priority/normal (163)
  • editor/integration (156)
  • enhancement (137)

Repository Insights (GitGenius)

Median issue/PR response: 17.3 hours
Mean response time: 4.8 days
90th percentile: 11.6 days
Tracked items: 699

Most active contributors

Sign in to see contributor activity.

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 95% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Almost all tracked open issues have seen activity in the last three months. Only 5% of issues opened in the past year have been closed. Three people close 97% of everything that gets resolved.

Detailed Description

The codebase-memory-mcp repository is a high-performance code intelligence server built in C that indexes entire codebases into a persistent knowledge graph. It is designed to serve as an MCP (Model Context Protocol) server for AI coding agents, enabling rapid structural code queries and analysis. The project ships as a single static binary with zero dependencies, available for macOS, Linux, and Windows, making deployment straightforward without requiring Docker, runtime dependencies, or API keys.

The core capability is extreme indexing speed. The repository can index an average codebase in milliseconds and processes the Linux kernel with 28 million lines of code across 75,000 files in approximately 3 minutes. Queries against the indexed knowledge graph execute in under 1 millisecond. This performance is achieved through a RAM-first pipeline using LZ4 compression, in-memory SQLite, and fused Aho-Corasick pattern matching, with memory released after indexing completes.

Language support spans 158 programming languages through vendored tree-sitter grammars compiled directly into the binary. Beyond generic AST parsing, the system implements Hybrid LSP semantic type resolution for ten languages including Python, TypeScript, JavaScript, PHP, C#, Go, C, C++, Java, Kotlin, and Rust. This produces a knowledge graph containing functions, classes, call chains, HTTP routes, and cross-service links with type-aware accuracy comparable to major language servers.

The repository provides 14 MCP tools covering search, trace, architecture analysis, impact analysis, Cypher-like queries, dead code detection, cross-service HTTP linking, and ADR (Architecture Decision Records) management. Semantic search uses bundled Nomic nomic-embed-code embeddings with 11-signal combined scoring including TF-IDF, RRI, API signatures, AST profiles, data flow analysis, and graph diffusion. BM25 full-text search operates via SQLite FTS5 with a camelCase-aware tokenizer.

The system detects and links cross-service communication patterns including HTTP routes, gRPC, GraphQL, tRPC, and pub-sub channels across Socket.IO, EventEmitter, and generic patterns in eight languages. Infrastructure-as-code indexing handles Dockerfiles, Kubernetes manifests, and Kustomize overlays as graph nodes with cross-references. A built-in 3D interactive graph visualization UI runs at localhost:9749 for exploring the knowledge graph.

The most active labels are bug (241 items), parsing/quality (98 items), and priority/normal (95 items). The repository overlaps contributors with genmcp/gen-mcp, knative/eventing, and golang/go.

The installation process is automated through a single command that auto-detects and configures 11 coding agents including Claude Code, Cursor, VS Code, Aider, KiloCode, and others. The project includes a preprint research paper on arXiv (2603.27277) documenting design and benchmarks showing 83% answer quality, 10 times fewer tokens, and 2.1 times fewer tool calls compared to file-by-file exploration across 31 real-world repositories.

codebase-memory-mcp
by
DeusDataDeusData/codebase-memory-mcp

Repository Details

Fetching additional details & charts...