MCP.Market

diffctx MCP server

by nikolay-e·io.github.nikolay-e/diffctx·v1.20.0·6 stars

Selects the minimum code an LLM needs to review a git diff

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

not scanned yet

Adoption
Growing

6 stars1.5k downloads/wk

Reviews

Write one

Nobody has reviewed diffctx yet.

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

diffctx tools

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

Not scanned yet. New listings are scanned within a day or two of arriving.

How diffctx compares

Against every graded Developer tools MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
92/100
higher than 90% of 1,119 Developer tools servers
GitHub stars
6
more than 80% of 855 Developer tools servers
Downloads a week
1,510
more than 95% of 436 Developer tools servers with a package

Release history: 8 versions in the registry since 2026-09-16, latest 2026-10-22, typically one every 7 days.

Install diffctx in Claude Code, Cursor or VS Code

claude mcp add diffctx -- uvx diffctx
Add to Cursor

What the publisher says

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

diffctx — smart diff context for LLM code review

diffctx selects the minimum code an LLM needs to review a git diff. Instead of pasting whole files, it walks the dependency graph outward from the changed lines and stops once more context stops paying for itself.

Formerly published as treemapper — every command, flag, and API call works unchanged.

How it compares

Whole-repo packers (repomix and friends) seed on the repository and export everything; persistent code-graph servers answer structural queries against a maintained index. diffctx is diff-seeded: the input is a change, the output is the fragments needed to understand it, packed under a hard token budget — local, deterministic, no index, no model calls. Measured results and when the other two families fit better: COMPARISON.md.

Install

uvx diffctx . --diff HEAD~1             # zero-install, run once via uv
pipx install diffctx                    # recommended: isolated CLI, no venv needed
pip install diffctx                     # or: into an active environment
pipx install 'diffctx[mcp]'             # + MCP server for AI assistants

Without Python:

cargo install diffctx                   # native CLI from crates.io
npx diffctx . --diff HEAD~1             # npm wrapper over the native binary
docker run --rm -v "$PWD:/repo" ghcr.io/nikolay-e/diffctx . --diff HEAD~1

On Windows, via Scoop (this repository is the bucket):

scoop bucket add diffctx https://github.com/nikolay-e/diffctx
scoop install diffctx/diffctx

Prebuilt binaries for Linux (x8664/aarch64), macOS (arm64/x8664) and Windows (x64/arm64) are attached to every release. On Windows on ARM, diffctx[mcp] builds cryptography from source, which needs OpenSSL: that project publishes no wheel for the platform. The native binary and Docker image cover diff mode with YAML/JSON output and write to stdout (redirect to capture); tree mode, Markdown output, the graph subcommand and the MCP server live in the Python package.

Quick start

diffctx . --diff HEAD~1       # smart context for last commit → paste into Claude/ChatGPT
diffctx . -f md -c            # full codebase export → clipboard in Markdown

diffctx . --diff HEAD~1 selects only the fragments an LLM needs to review the last commit, instead of dumping every changed file in full.

Diff context mode

Finds the minimal set of fragments needed to understand a change — imports, callers, type definitions, config dependencies — across 50+ file types. It builds a code graph (imports, co-changes, type refs), propagates relevance outward from the changed lines, and stops when relevance drops below --tau or the --budget token cap is hit.

--diff takes a git range (HEAD~1..HEAD, main..feature) or a duration window ending now — 24h, 8d, 90min, 1h30m, 2w (units s, m/min, h, d, w, composable). A window diffs the working tree against the last commit before it, so it covers the commits made inside the window plus the uncommitted and untracked work on top — diffctx . --diff 24h is "everything I touched today". A ref that happens to look like a duration (a branch 24h) keeps its git meaning.

Shortened. The full README is on GitHub.

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

diffctx: common questions

Is diffctx MCP server safe?
Yes, by our scan: it is graded A (92/100). Read the diffctx safety report
How do I install diffctx?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does diffctx need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is diffctx maintained?
The last commit was 33 days ago (2026-10-01). The latest release is v1.20.0.
What can I use instead of diffctx?
Servers from other publishers that do the same job: RepoPilot MCP server, Nexusmem MCP server and Pare Git MCP server. Compare all diffctx alternatives.
How does diffctx compare with other Developer tools MCP servers?
safety score 92/100 (higher than 90% of 1,119 Developer tools servers); github stars 6 (more than 80% of 855 Developer tools servers); downloads a week 1,510 (more than 95% of 436 Developer tools servers with a package). Full comparison.

Alternatives to diffctx

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

All diffctx alternatives →
  • RepoPilot
    Local, deterministic review of Git changes: weakened tests and CI gates, risky flows, blast radius.
    A
  • Nexusmem
    Local-first memory for AI coding agents: shell history with exit codes, git diffs, docs, MCP.
    A
  • Pare Git
    Pare Git ג€” Structured git operations (status, log, diff, branch, commit, push) as typed JSON.
    A
  • Repowise
    Codebase intelligence for AI coding agents — graph, git history, docs, decisions, code health.
    B
  • Git
    Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more.
    A