---
slug: "code-review-graph"
name: "code-review-graph"
effect: "Builds a local code graph and serves it over MCP so coding agents read only the files a change touches"
category: "mcp-server"
tier: "rising"
url: "https://code-review-graph.com"
github: "tirth8205/code-review-graph"
pricing: "open-source"
license: "MIT"
tags: ["code-graph", "mcp", "tree-sitter", "code-review", "static-analysis", "context"]
platforms: ["claude-code", "cursor", "codex", "gemini-cli", "windsurf", "zed", "any-mcp-client"]
install_kind: "pip"
date_added: "2026-10-16"
rank: 24
rising_score: 45
stars: 32189
star_velocity: 138.9
velocity_basis: "since creation"
created_at: "2026-02-26T17:25:13Z"
pushed_at: "2026-10-16T11:20:26Z"
signals_status: "ok"
signals_fetched_at: "2026-10-16T11:45:34.341Z"
page: "https://agenttooldrop.com/tools/code-review-graph"
---

# code-review-graph

Builds a local code graph and serves it over MCP so coding agents read only the files a change touches

Category: MCP servers. Tier: new and rising, rank 24 by new and rising score (45 of 100). Pricing: Open source. License: MIT.

Platforms: claude-code, cursor, codex, gemini-cli, windsurf, zed, any-mcp-client.

## Why you would want it

code-review-graph parses a repository with Tree-sitter into a graph of functions, classes, imports, calls, inheritance and test coverage, stored in one local SQLite file. It serves that graph over MCP and a CLI, and its install command detects the AI coding tools you have and writes an MCP server entry for each. Blast-radius analysis traces the callers, dependents and tests a changed file could affect, and a detect-changes tool maps diffs to risk-scored functions, flows and test gaps. Hooks, a pre-commit hook and watch mode update the graph incrementally, re-parsing only files whose hash changed. The README reports a median per-question token reduction of about 63x across 6 repositories against a whole-corpus baseline, and itself calls that baseline an upper bound no real agent pays.

## Best for

- Blast-radius context for code review
- A persistent repo map for MCP clients
- Risk-scored PR comments in CI

## Use it when

You use a supported AI coding tool such as Claude Code, Cursor or Codex on a sizeable repository and want it to query a structural map instead of re-reading files.

## Skip it if

The README's FAQ lists small repos, trivial single-file diffs and one-off questions as poor fits, and its limitations section says graph context can exceed a plain file read for trivial edits, search ranking needs work, JavaScript and Go flow detection needs work, and impact analysis flags false positives in large dependency graphs. The install command writes MCP entries, hooks, skills and rules-file instructions into your tools' configs (an uninstall command is provided). Optional cloud embeddings take API keys and send source-derived text to the provider, though the README says the tool has no telemetry.

## Editor note

The token-reduction figures are the README's own benchmark claims (snapshot of 2026-08-02, see docs/REPRODUCING.md); we have not reproduced them. The README does not label the project alpha or beta; its beta and preview wording is advice about embedding model IDs. Requires Python 3.10+.

## Install

Install with pip or pipx, configure detected tools, build the graph:

```sh
pip install code-review-graph          # or: pipx install code-review-graph
code-review-graph install              # detect installed AI coding tools and configure each one
code-review-graph build                # parse the codebase
```

Source: https://github.com/tirth8205/code-review-graph#quick-start

## Live signals

Fetched 2026-10-16T11:45:34.341Z (status: ok).

- Repository: tirth8205/code-review-graph
- Repository created: 2026-02-26
- Stars: 32,189 (GitHub's count; it cannot be authenticated)
- Stars per day, since repo creation: 138.9 (an average over the repo's life, not a growth rate)
- Forks: 2,964
- Open issues and PRs: 173
- License (GitHub): MIT
- Last push: 2026-10-16
- Latest release: v2.3.9 (2026-09-18)

## Links

- Website: https://code-review-graph.com
- GitHub: https://github.com/tirth8205/code-review-graph
- Install instructions verified at: https://github.com/tirth8205/code-review-graph#quick-start
- Source for this entry: https://github.com/tirth8205/code-review-graph#readme
- AgentToolDrop page: https://agenttooldrop.com/tools/code-review-graph
- Full catalog (JSON): https://agenttooldrop.com/tools.json
