New advertisers: 50% off your first month with code FIRSTMONTHSee slots
james-chahwan avatar

Repo Graph

james-chahwan/repo-graph

Structural graph map of a codebase for LLMs, with orient, find, impact, trace, read, and refresh tools.

GitHub stars
46
tools
6
transport
STDIO
env var
1
last updated
Nov 3, 2026
View on GitHub

What it does

  • Reads structure with orient, find, and read, returning node counts, entry points, ranked matches, and exact source slices
  • Analyzes changes with impact for blast radius and trace for feature paths across languages, services, and stacks
  • Runs locally via uvx with the refresh tool rebuilding the graph incrementally, and needs no API key or external service
  • Designed for large, multi-language, and multi-service repos where tracing a feature by hand is slow

Tools

6 tools

Public tool metadata for what this MCP can expose to an agent.

orientThe first call on a repo: node/edge counts, detected kinds, entry points, and a blind-spots note flagging which languages/edges are under-linked.

The first call on a repo: node/edge counts, detected kinds, entry points, and a blind-spots note flagging which languages/edges are under-linked.

No parameter schema in public metadata yet.

findTurn any text into the ranked nodes that matter — a symbol/keyword, or a pasted stacktrace / failing-test id / diff (resolved to the code it implicates).

Turn any text into the ranked nodes that matter — a symbol/keyword, or a pasted stacktrace / failing-test id / diff (resolved to the code it implicates).

No parameter schema in public metadata yet.

impactBlast radius: what a change affects (forward) or depends on / is used by (backward), as a ranked, located closure.

Blast radius: what a change affects (forward) or depends on / is used by (backward), as a ranked, located closure.

No parameter schema in public metadata yet.

traceOne arg: a feature end-to-end across the stack, each hop labelled with its mechanism; two args: the shortest path between two nodes.

One arg: a feature end-to-end across the stack, each hop labelled with its mechanism; two args: the shortest path between two nodes.

No parameter schema in public metadata yet.

readA node's exact source, sliced from its file by the graph's line span, plus a context footer.

A node's exact source, sliced from its file by the graph's line span, plus a context footer.

No parameter schema in public metadata yet.

refreshRebuild the graph (incremental by default — only changed files re-parse). repo_path retargets a different path or git URL; full=true forces a clean reparse.

Rebuild the graph (incremental by default — only changed files re-parse). repo_path retargets a different path or git URL; full=true forces a clean reparse.

No parameter schema in public metadata yet.

Configuration

REPO_GRAPH_REPO

Path to the target repository to map. Alternative to --repo; takes effect when --repo is not passed.

Readme

repo-graph

repo-graph MCP server

Structural graph memory for AI coding assistants. Map your codebase. Navigate by structure. Read only what matters.

repo-graph gives LLMs a map of your codebase — entities, relationships, and flows — so they can navigate to the right files without reading everything first.

Instead of flooding an LLM's context window with your entire codebase (or hoping it guesses right), repo-graph builds a lightweight graph of what exists, how things connect, and where the entry points are. The LLM queries the graph, finds the minimal set of files it needs, and reads only those.

It pays off most where that's hardest to do by hand: large repos, monorepos that span several languages, and multi-service systems where a feature's path crosses files, stacks, and service boundaries. On a small single-language project a model can just read the files — see Where it fits best for the honest sweet spot.

Install in one click:


View the full README on GitHub

Details

Repository
github.com/james-chahwan/repo-graph
Categories
Developer Tools, Memory & Context
Package
mcp-repo-graph
Transport
STDIO
Registry
MCP registry, active

Similar to Repo Graph

More Developer Tools