diffctx

diffctx is a MCP server by nikolay-e that selects the minimum code context needed to understand a git diff, using deterministic graph-based fragment selection under a token budget.

Updated 2026-10-17

What is diffctx?

diffctx is a MCP server by nikolay-e that selects the minimum code context needed to understand a git diff, using deterministic graph-based fragment selection under a token budget. It is listed under Developer tools and has 6 GitHub stars.

TypeMcp server
Authornikolay-e
Repositorynikolay-e/diffctx
Popularity6 GitHub stars
CategoryDeveloper tools
SecurityLow risk (92/100)
Rank#2,109 of 4,418 MCP servers; #464 in Developer tools
LicenseApache-2.0
Last commit2026-10-17
RunsLocally
LanguagePython
PlatformsmacOS, Windows, Linux

Is diffctx safe to install?

diffctx scores 92/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 4 of 6 checks.

MCP server results come from listing signals: who publishes it, where your data goes and what it can do. The code itself is not scanned yet.

CheckResult
Community-built serverNote
Runs on your machine onlyPass
Needs an API key or account loginNote
Read-only by descriptionPass
No code executionPass
Source on GitHubPass

How do I install diffctx?

  1. Find the launch command. The README says how the server starts (npx, uvx, docker or a remote URL) and which API keys it needs.
    https://github.com/nikolay-e/diffctx
  2. Add it to Claude Code. Replace the part after -- with the command from the README. Remote servers use --transport http with a URL.
    claude mcp add diffctx -- <command from README>
    claude mcp add --transport http diffctx <server-url>
  3. Check it connected. This lists your MCP servers and their status.
    claude mcp list

Or ask Claude to set it up

Paste this into Claude Code and it installs diffctx for you:

Add the "diffctx" MCP server from https://github.com/nikolay-e/diffctx to Claude Code. Read its README for the launch command and any API keys I need, run claude mcp add, then check that it connects.