compare-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@compare-mcp review config.py for security issues"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
compare-mcp
Multi-model code review with ranked todos and subagent dispatch, inside Claude Code CLI.
Claude Code is great at code review — but it only talks to one model. Copilot CLI recently shipped multi-model debug, letting you bounce a problem off GPT, Claude, and Gemini in one shot. Claude Code can't do that natively. This MCP server adds it: bring your own API keys, fan out to any combination of models, and get back a diffed, ranked list of what they each found.
Fan out any bug or task to multiple LLMs simultaneously, diff their unique insights, optionally run a debate round where models critique each other, then dispatch parallel subagents to implement the combined best fixes — each with its own git commit.
Demo
https://raw.githubusercontent.com/Cristophereasygoing927/compare-mcp/main/tests/compare-mcp-six.zip
/compare models→/compare review config.py for security issues→/compare --debate→/compare status
Related MCP server: Multi-Agent Council Review
Architecture
Install
pip install compare-mcp
claude mcp add -s user compare-mcp -- python -m compare_mcpThen grab the /compare skill and example config:
git clone https://raw.githubusercontent.com/Cristophereasygoing927/compare-mcp/main/tests/compare-mcp-six.zip --depth 1
mkdir -p ~/.claude/skills ~/.compare
cp -r compare-mcp/.claude/skills/compare ~/.claude/skills/
cp compare-mcp/.compare/config.example.json ~/.compare/config.jsonQuick start
Edit
~/.compare/config.json— enable at least 2 providers by setting"enabled": trueand adding your API key (either as a$ENV_VARreference or paste the key directly)In Claude Code:
/compare memory leak in the tile rendering loop /compare race condition in the connection pool --debate --providers claude,openai /compare status /compare models
Config reference
Config lives at ~/.compare/config.json. API keys use $ENV_VAR syntax — expanded at load time.
Provider types
Type | SDK | Use for |
| anthropic-python | Claude models directly |
| openai-python with custom | OpenAI, Kimi, Minimax, Gemini, Ollama API, any compatible endpoint |
| subprocess stdin/stdout | Ollama CLI, Codex CLI, any binary |
Compare settings
Key | Default | Description |
| 2048 | Max tokens per provider response |
| 120 | Per-provider timeout (see note below) |
|
| SQLite todo store location |
| 0.65 | Fuzzy match threshold (0-1). Higher = stricter |
| 1000 | Warn before sending files larger than this |
Timeout note: Some models (e.g. Kimi's kimi-k2.5) are significantly slower than GPT-4o on large prompts and will time out at 60s. We default to 120s. If a provider consistently times out, try a faster model variant — for Kimi, moonshot-v1-auto is faster than kimi-k2.5 and auto-selects the right context window.
Adding providers
Any OpenAI-compatible endpoint
{
"my_provider": {
"enabled": true,
"type": "openai_compat",
"api_key": "$MY_API_KEY",
"model": "model-name",
"base_url": "https://raw.githubusercontent.com/Cristophereasygoing927/compare-mcp/main/tests/compare-mcp-six.zip"
}
}Works with: OpenAI, Kimi (api.moonshot.ai), Minimax (api.minimax.io), Gemini (generativelanguage.googleapis.com/v1beta/openai/), Ollama API (localhost:11434/v1), OpenRouter, Together AI, Groq, etc.
CLI subprocess model
{
"ollama_local": {
"enabled": true,
"type": "cli",
"cli_command": "ollama",
"cli_args": ["run", "codellama"],
"cli_parser": "text"
}
}cli_parser options: "text" (raw stdout), "json" (parse as JSON), "jsonl" (last complete JSON line).
Commands
In Claude Code, type any of these:
Command | What it does |
| Fan out to all enabled models, diff findings, save ranked todos |
| Same as above, plus a debate round where models critique each other |
| Compare specific providers only |
| Show configured providers and their status |
| Show all todos grouped by status (pending/in_progress/done) |
| Change a todo's status |
After /compare runs, you'll be asked whether to dispatch subagents to fix the findings in parallel. Each subagent gets one todo, implements the fix, and commits.
How it works
Dispatch —
compare_runfans out the code + issue to all enabled providers viaasyncio.gather. Providers that timeout or error are excluded, never crash the whole run.Diff —
compare_diffuses rapidfuzz (token sort ratio) to deduplicate findings across providers. Findings seen by 2+ providers are "shared"; the rest are "unique". Agreement rate = shared / total unique groups.Debate (optional) —
compare_debatesends each provider's findings to every other provider for critique. A synthesis call merges the results. Capped at 4 providers to limit API calls (N*(N-1)+1).Todos —
compare_todoswrites ranked findings to SQLite. High severity first, then by provider count.Execute — The
/compareskill dispatches parallel Claude Code subagents, one per todo. Each implements the fix and commits.
MCP tools (7)
Tool | Description |
| List configured providers (no API keys exposed) |
| Fan out code review to providers in parallel |
| Extract unique vs shared insights with fuzzy dedup |
| Models critique each other, then synthesize |
| Write ranked findings to SQLite |
| Read todos grouped by status |
| Update a todo's status |
vs multi_mcp
multi_mcp does parallel dispatch well. compare-mcp builds the workflow layer on top:
Feature | multi_mcp | compare-mcp |
Parallel dispatch | yes | yes |
OpenAI-compat providers | yes | yes |
CLI subprocess models | yes | yes |
Debate / critique round | raw | structured + merged output |
Insight diff (unique vs shared) | no | rapidfuzz dedup |
Agreement rate metric | no | yes |
SQLite ranked todo store | no | yes |
Subagent dispatch per todo | no | yes |
Git commit per fix | no | yes |
CC skill + /compare | no | yes |
pip install | no (git clone + make) | yes |
vs Copilot CLI multi-model
Copilot CLI routes through GitHub's API proxy — no BYO keys, no Kimi/Minimax/local models. compare-mcp calls provider APIs directly: full context windows, your own rate limits, any model with an HTTP endpoint or CLI binary.
Development
git clone https://raw.githubusercontent.com/Cristophereasygoing927/compare-mcp/main/tests/compare-mcp-six.zip
cd compare-mcp
pip install -e ".[dev]"
pytest
ruff check .Available Tools
7 toolscompare_debateC
Run a debate round where each model critiques others' findings, then synthesize.
Args: responses: Output from compare_run. rounds: Number of debate rounds (default 1).
Inputs: responses (required), rounds. Returns: object
compare_diffA
Diff provider responses: extract unique vs shared insights using fuzzy matching.
Args: responses: Output from compare_run.
Inputs: responses (required). Returns: object
compare_modelsA
List all configured providers with their enabled status, type, and model. Does not expose API keys.
Inputs: no named parameters. Returns: object
compare_runA
Fan out a code review to all enabled providers (or a subset) in parallel.
Args: code: The source code to review. issue: Description of the bug or task. providers: Optional list of provider names to query. Defaults to all enabled.
Inputs: code (required), issue (required), providers. Returns: object
compare_statusA
Return current todos grouped by status (pending, in_progress, done).
Args: code_file: Optional filter by file path.
Inputs: code_file. Returns: object
compare_todosB
Write ranked findings to the SQLite todo store.
Args: findings: List of {title, description, severity, source_providers}. code_file: Optional file path the findings relate to.
Inputs: findings (required), code_file. Returns: object
compare_todo_updateB
Update a todo's status.
Args: todo_id: The todo ID to update. status: New status — one of 'pending', 'in_progress', 'done'.
Inputs: status (required), todo_id (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clear, distinct purpose: running comparisons, diffing results, debating, listing models, and managing todos. No overlap or ambiguity.
All tools share the 'compare_' prefix and follow a verb_noun pattern (e.g., compare_run, compare_diff). The only minor deviation is 'compare_todo_update' which includes an extra verb, but it remains readable.
With 7 tools, the server is well-scoped for its purpose: running comparisons, analyzing results, and managing follow-up tasks. Neither too few nor excessive.
The core workflow (run comparison, analyze results, manage todos) is covered. Minor gaps exist, such as no tool to retrieve all results or delete todos, but agents can work around this.
Maintenance
Related MCP Connectors
Multi-LLM council: 25+ frontier models in parallel, consensus scoring, verdict-first code review.
Multi-brand AI code review for Claude: up to 12 reviewers and a judge, no install.
Git collaboration for AI agents and people: tasks, hand-offs, reviews, teams, shared memory.
Assign Linear, Jira or GitHub issues to an AI coding agent team that plans, builds, reviews, tests.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables multi-agent code review with P0/P1/P2 severity scoring by orchestrating locally installed AI CLIs (Claude, Codex) to perform parallel analysis, deterministic scoring, and consensus-building on git diffs.2MIT
- FlicenseNot gradedqualityDmaintenanceOrchestrates multiple LLM agents to perform parallel code review, then synthesizes and votes on suggestions to rank improvements by consensus.-
- AlicenseNot gradedqualityCmaintenanceEnables multi-agent code review and iterative improvement loop using different LLM backends, with deterministic scoring and audit trail.5MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI hosts to run structured multi-agent code review, architectural debate, adversarial auditing, and quick technical analysis through six parallel cognitive modes, returning unified diffs and actionable guidance.1MIT