Enables token-efficient exploration and indexing of GitHub repositories, allowing for symbol searching, file structure retrieval, and extraction of specific code definitions like functions and classes.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@github-codemunch-mcpsearch for the 'authenticate' function in the 'pallets/flask' repository"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
github-codemunch-mcp
Token-efficient MCP server for GitHub source code exploration via tree-sitter AST parsing.
Overview
github-codemunch-mcp pre-indexes repository source code using tree-sitter AST parsing, extracting a structured catalog of every symbol (function, class, method, constant, type). Each symbol stores only its signature + one-line summary, with the ability to retrieve full source on demand.
Token Savings
Scenario | Raw dump | codemunch | Savings |
Explore 500-file repo structure | ~200,000 tokens | ~2,000 tokens | 99% |
Find a specific function | ~40,000 tokens | ~200 tokens | 99.5% |
Read one function body | ~40,000 tokens | ~500 tokens | 98.7% |
Quick Start
Installation
Configure MCP
Add to your claude_desktop_config.json:
Usage
Index a repository:
index_repo: { "url": "owner/repo" }Search for symbols:
search_symbols: { "repo": "owner/repo", "query": "authenticate" }Get file outline:
get_file_outline: { "repo": "owner/repo", "file_path": "src/main.py" }Read symbol source:
get_symbol: { "repo": "owner/repo", "symbol_id": "src-main-py::MyClass.login" }
Supported Languages
Python (.py)
JavaScript (.js, .jsx)
TypeScript (.ts, .tsx)
Go (.go)
Rust (.rs)
Java (.java)
Tools
Tool | Purpose |
| Index a repository's source code |
| List indexed repositories |
| Get repository file structure |
| Get symbols in a file |
| Get full source of a symbol |
| Batch retrieve multiple symbols |
| Search across all symbols |
Environment Variables
Variable | Purpose | Required |
| GitHub API authentication | No |
| AI summarization | No |
| Custom storage path | No |
License
MIT