送信

Repo Graph

@James-Chahwan

Structural graph memory for AI coding assistants. repo-graph maps your codebase entities, relationships, and feature flows so the model navigates to the right files instead of reading everything first. Tree-sitter, 20+ languages, frontend to backend and more, any MCP client.
概要

repo-graph

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

repo-graph is an MCP server that builds a structural graph of your codebase — entities, how they connect, and the feature flows that run frontend to backend. Your AI assistant queries the graph to find the right files instead of reading the whole repo first. The engine is Rust + tree-sitter and handles 20+ languages and frameworks, cross-stack.

Why

Instead of flooding the context window (grep, read, grep, read…), the model gets a map. On a Go + Angular monorepo fixing a reversed comparison operator — same bug, same model, same prompt:

Without repo-graphWith repo-graph
Tokens75,30829,838
Time4m 36s~30s
Files read~152

Install

Zero-install:

  uvx mcp-repo-graph --repo .

Claude Code:

  claude mcp add repo-graph -- uvx mcp-repo-graph --repo .

Any MCP client (Cursor, Windsurf, Codex, Gemini CLI, Antigravity, Claude Desktop):

  { "mcpServers": { "repo-graph": { "command": "uvx", "args": ["mcp-repo-graph", "--repo", "."] } } }

Tools (11)

  • generate — scan and build the graph
  • status — repo overview; orient first
  • dense_text — the whole graph as dense text
  • flow — entry → service → data for a feature
  • trace — shortest path between two nodes
  • impact — blast radius of a change, by tier
  • neighbours — direct connections to a node
  • activate — spreading activation (Personalized PageRank) from seeds
  • find — match nodes by name/qname
  • graph_view — ASCII overview or node tree
  • reload — re-generate after changes

MIT licensed.

サーバー設定

{
  "mcpServers": {
    "repo-graph": {
      "command": "uvx",
      "args": [
        "mcp-repo-graph",
        "--repo",
        "."
      ]
    }
  }
}