Repo2graph
Builds a tree-sitter repository graph and returns cited, token-bounded code context for agent and CI queries.
Install Repo2graph
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"repo2graph": {
"command": "uvx",
"args": [
"repo2graph"
]
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.
Overview
Use cases
- Answer cross-file questions about a repository
- Trace callers, callees, and reverse dependencies
- Build cited context packs for coding agents
- Inspect a symbol's structural relationships in VS Code
- Run bounded code retrieval in CI
Key features
- Tree-sitter repository graph
- Cited source excerpts with file and line ranges
- BM25 retrieval with graph expansion
- Token-bounded MCP responses
- Caller, callee, base-class, and blast-radius queries
- Optional dense-vector retrieval
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 16d ago via OSV.dev · repo2graph (PyPI)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Repo2graph works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Repo2graph
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/repo2graph)<a href="https://allmcps.com/mcp/repo2graph"><img src="https://allmcps.com/api/badge/repo2graph?style=directory" alt="Repo2graph on AllMCPs" /></a>