MCP Server Indexes Codebases into Knowledge Graph for 10x Token Reduction

codebase-memory-mcp is an MCP server that replaces file-by-file code exploration with graph queries for AI coding assistants. It parses codebases with tree-sitter into a persistent knowledge graph stored in SQLite, containing functions, classes, call relationships, HTTP routes, and cross-service links as nodes and edges.
Key Features and Specifications
- Single Go binary with zero infrastructure requirements (no Docker, no databases, no API keys)
- Supports 35 programming languages
- Sub-millisecond query performance
- Auto-syncs on file changes via background polling
- Cypher-like query language for complex graph patterns
- MIT licensed
Performance Benchmarks
The server was benchmarked across 35 real-world repositories, showing at least 10x fewer tokens for structural questions compared to traditional file-by-file exploration. Example: A query like "what calls ProcessOrder?" returns a precise call chain in one graph query (~500 tokens) instead of reading dozens of files (~80K tokens).
Tested repositories ranged from 78 to 49,000 nodes. The Linux kernel stress test handled 20,000 nodes and 67,000 edges with zero timeouts.
Use Case for Local LLM Setups
This is particularly valuable for local LLM setups with smaller context windows (8K-32K), where every token counts. The graph returns exactly the structural information needed without dumping entire file contents into context.
The server works with any MCP-compatible client or via CLI mode for direct terminal use.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Multi-LLM Paper-Trading Bot with Claude Opus as Lead Engineer and Gemini as Strategist: Architecture Breakdown
A solo builder shares a 4,900-LOC paper-trading bot on Alpaca where Claude Opus 4 (Engineer) has veto power over Gemini Pro (Strategist), with a 270+ entry disagreement log called the Strategist Codex.

Alternative AI Coding Agents After Claude's Plan Removal
A Reddit user tested several AI coding agent alternatives after Claude discontinued its coding plan, including Kimi ($20/month), Minimax ($10/month), Z.AI GLM ($10/month), Stepfun ($6-10/month), Mistral ($15/month), and Arcee Trinity (API-based).

ExposureGuard MCP Server Adds Domain Security Scanning to Claude Desktop
A developer built an MCP server for domain security scanning using Claude Code, exposing four tools that check SPF, DMARC, SSL, security headers, DNSSEC, open ports, MX, and HTTPS. The server is available via pip install exposureguard-mcp with a free tier of 100 API calls per day.

Pixel Agents: 24 Specialized Claude Agents for Code, Site, and Resume Reviews
Pixel Agents is a collection of 24 task-specific AI agents built on Claude Sonnet 4.6 API, each with tuned personalities and structured JSON output. The system includes code review, site analysis, resume critique, and startup evaluation agents that provide direct feedback.