Mmcp.market

repo2graph MCP server

by Srinivasan-78·io.github.Srinivasan-78/repo2graph·v1.6.0

Ask a codebase questions and get cited code back, from a tree-sitter graph of the repo.

A92/100grade A
What users say
No reviews yet
Be the first
Safety scan
A92/100

not scanned yet

Adoption
Growing

3 stars637 downloads/wk

Reviews

Write one

Nobody has reviewed repo2graph yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

repo2graph tools

No tool declarations could be read from the package source. They show once the server is installed.

Not scanned yet. New registry listings are scanned within a day of import.

What the publisher says

From the repo2graph repository's README, as published. We do not edit it. Read it on GitHub

repo2graph

AST-driven code graphs & zero-dependency GraphRAG for AI coding agents and humans

English · 简体中文 · 日本語 · Français · Español · Deutsch

What is it · Quickstart · MCP setup · Benchmarks · Architecture · Docs · Contributing

<!-- mcp-name: io.github.Srinivasan-78/repo2graph -->

⚡ What is repo2graph?

When an AI coding agent searches a codebase with grep or plain keyword matching, it either dumps whole matching files into context — burning the token budget and losing structure — or misses the implementation entirely because it used different words than the search query.

repo2graph parses source with tree-sitter into a graph of real code relationships — CALLS, IMPORTS, INHERITS, DEFINES, COCHANGE — and serves that graph to agents over the Model Context Protocol**, or packs it into a budget-bounded markdown context for any LLM. Every returned block carries an exact [cite: path:start-end] anchor, so answers are traceable back to source instead of paraphrased from a guess.

flowchart LR
    A[your code] --> B[tree-sitter<br/>reads the code]
    B --> C[graph<br/>dots + arrows]
    C --> D[graph.html<br/>the picture]
    C --> E[chunks.jsonl<br/>pieces for an AI]
    C -->|MCP stdio| F[Claude / Cursor /<br/>any MCP client]

No project setup, no language server, no build step — point it at a folder and it works.

graph.html is one self-contained file — no server, no internet, drag to pan, scroll to zoom, click a node to inspect its code and neighbours.

🚀 Quickstart (under 30 seconds)

Requires Python 3.10+. Run via uv, no install step:

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Grade history

  • 2026-09-19restoreBAscore 92

Install directly

claude mcp add repo2graph -- uvx repo2graph
Add to Cursor

repo2graph: common questions

Is repo2graph MCP server safe?
Yes, by our scan: it is graded A (92/100). Read the repo2graph safety report
How do I install repo2graph?
It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
Does repo2graph need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is repo2graph maintained?
The last commit was in the last day (2026-09-19). The latest release is v1.6.0.
What can I use instead of repo2graph?
Servers from other publishers that do the same job: Codebase Memory MCP server and jCodemunch MCP server.

Alternatives to repo2graph

Same job from other publishers: the closest match first, then the best rated.

  • Codebase Memory
    Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
    C
  • jCodemunch MCP
    Token-efficient code exploration via tree-sitter AST parsing. 70+ languages, 86-99% token savings.
    A

More from Srinivasan-78