Local code knowledge graph served over MCP: Tree-sitter maps functions, calls, imports and tests so an assistant reviews a change by its blast radius instead of re-reading the codebase.
jCodeMunchMCP Server
Summary
MCP server that indexes a codebase with tree-sitter and lets agents fetch code by symbol rather than by file, plus structural queries like blast radius, importers and dead code.
Features
- Fetch a function or class by symbol, not the whole file
- File outlines and task-scoped context bundles
- Blast radius, importers, call hierarchy and dead-code queries
- Edit and delete safety checks before refactors
- Local index under ~/.code-index with automatic refresh
- init command configures detected MCP clients
Installation
Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.
Description
jCodeMunch indexes a repository once with tree-sitter — symbol signatures, kinds, qualified names, summaries and byte offsets stored alongside the file content in a local index under ~/.code-index/ — and lets an agent retrieve the exact function, class or outline it needs instead of opening whole files. Its own published benchmark (15 lookups across express, fastapi and gin at pinned commits) reports 96.3% fewer tokens per lookup than a grep-and-read baseline, with reproduction scripts in the repository.
Tools
A new install advertises a six-tool front door (menu, order, route and helpers); the full set of 90+ tools sits behind it. Core retrieval: search_symbols, get_symbol_source, get_file_outline, assemble_task_context. Structural questions: find_importers, check_references, get_blast_radius, get_call_hierarchy, find_dead_code, get_changed_symbols, get_hotspots, search_ast. Preflight checks: check_edit_safe, check_delete_safe, get_pr_risk_profile, plan_refactoring. Free starter packs pre-index popular frameworks.
Setup
uv tool install jcodemunch-mcp then jcodemunch-mcp init, which detects Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, Codex, Gemini CLI and others and writes their config; or add uvx jcodemunch-mcp by hand. Optional hooks re-index after edits. An anonymous savings counter is on by default (share_savings: false turns it off).
Licence
Not open source: the jCodeMunch-MCP Dual-Use License makes it free for personal and other non-commercial use, while commercial use needs a one-time paid licence from jMunch LLC (from $79 for one developer).
Related MCP Servers
See all jCodeMunch alternativesMCP server that parses a multi-language codebase with Tree-sitter into a knowledge graph, so agents can resolve definitions, trace callers, query structure in plain English and patch code.
MCP: Codebase Memory MCP
by DeusData
Local code-intelligence MCP server that indexes a repository into a persistent knowledge graph, so structural questions cost one query instead of a file-reading spree.
Builds a searchable markdown graph of your repo so coding agents stop re-exploring it on every task — reported 42% fewer tokens and 46% fewer tool calls.