github-codemunch-mcp
A token-efficient MCP server for exploring GitHub repositories using tree-sitter AST parsing to extract symbol signatures and summaries. It enables users to search and retrieve specific code components while significantly reducing token consumption compared to raw file dumps.
README
jCodeMunch MCP
Make AI agents cheaper and faster on real codebases
Stop dumping files into context windows. Start retrieving exactly what the agent needs.
jCodeMunch MCP indexes a local codebase once, then lets MCP-compatible agents (Claude Desktop, OpenClaw, etc.) discover and retrieve code by symbol instead of brute-reading files.
đ Proof first: Token savings in the wild
Repo: geekcomputers/Python
Size: 338 files âą 1422 symbols indexed
Task: Find calculator/math implementations
| Approach | Tokens (this run) | What the agent had to do |
|---|---|---|
| Raw file approach | ~7,500 | Open multiple files blindly and skim |
| jCodeMunch MCP | ~1,449 | search_symbols(...) â get_symbol(...) |
Result: 80.7% fewer tokens (â5.2Ă more efficient)
Cost scales with tokens. Latency often scales with âhow much junk the model must readâ.
jCodeMunch reduces both by turning search into navigation.

Why agents need this (and humans benefit too)
Agents waste money when they:
- open entire files just to find one function
- re-read the same code repeatedly
- drown in imports, boilerplate, and unrelated helpers
jCodeMunch gives agents structured access:
- Search symbols by name/topic
- Outline files without loading full contents
- Retrieve only the exact implementation of a symbol
Agents donât need more context. They need precision context access.
Architecture at a glance

Pipeline
- Parse source structure (polyglot parsers)
- Extract symbols + metadata (names, signatures, byte offsets)
- Persist a lightweight local index
- Serve MCP tools for discovery
- Retrieve exact snippets via byte-offset precision
Quickstart
git clone https://github.com/jgravelle/jcodemunch-mcp
cd jcodemunch-mcp
pip install -r requirements.txt
Configure your MCP client (Claude Desktop / OpenClaw)
Point the server at any local folder containing a codebase. Index once, then query.
Demo
Suggested demo flow:
index_repo(path=...)search_symbols(query="calculate")get_symbol("...")
Tool suite
| Tool | Purpose |
|---|---|
index_repo |
Index any local codebase folder |
search_symbols |
Find symbols by name/topic |
get_file_outline |
View a fileâs structural âAPI skeletonâ |
get_symbol |
Retrieve the exact implementation |
What itâs great for
- Large, messy repos where grepping is painful
- Agentic refactors across many files
- âWhere is X implemented?â or âWho calls Y?â exploration
- Fast onboarding and architecture discovery
- Running cheaper agent swarms (OpenClaw-style)
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.