LocalFree

diffctx MCP server

nikolay-e/diffctx

Selects the minimum code context needed to understand a git diff, using deterministic graph-based fragment selection under a token budget.

6 GitHub stars2 forks

Install diffctx in Claude Code

Claude Code
claude mcp add diffctx -- uvx diffctx
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "diffctx": {
      "command": "uvx",
      "args": [
        "diffctx"
      ]
    }
  }
}

Frequently asked questions

What does the diffctx MCP server do?

Selects the minimum code context needed to understand a git diff, using deterministic graph-based fragment selection under a token budget.

Is the diffctx MCP server free?

Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.

Does diffctx run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add diffctx to Claude Code?

Run: claude mcp add diffctx -- uvx diffctx

More version control MCP servers

View all