HydraMCP
An MCP server that enables users to query, compare, and synthesize responses from multiple local and cloud LLMs simultaneously using existing subscriptions. It provides tools for parallel model evaluation, consensus polling with an LLM-as-judge, and response synthesis across different model providers.
README
<p align="center"> <img src="assets/HydraMCP.png" width="200" /> </p>
<h1 align="center">HydraMCP</h1> <p align="center">Connect agents to agents.</p>
An MCP server that lets Claude Code query any LLM through your existing subscriptions. No extra API keys, no per-token billing. Just your monthly subscriptions working together from one terminal.
What It Looks Like
Four models, four ecosystems, one prompt. This is real output from a live session:
> compare gpt-5-codex, gemini-3, claude-sonnet, and local qwen on this function review
## Model Comparison (4 models, 11637ms total)
| Model | Latency | Tokens |
|----------------------------|-----------------|--------|
| gpt-5-codex | 1630ms fastest | 194 |
| gemini-3-pro-preview | 11636ms | 1235 |
| claude-sonnet-4-5-20250929 | 3010ms | 202 |
| ollama/qwen2.5-coder:14b | 8407ms | 187 |
All four independently found the same async bug. Then each one caught something different the others missed. GPT-5 was fastest, Gemini was most thorough, Claude gave the fix direction, Qwen explained the why. Different training, different strengths, one comparison.
And this is consensus with a local judge:
> get consensus from gpt-5, gemini-3, and claude-sonnet. use local qwen as judge.
## Consensus: REACHED
Strategy: majority (needed 2/3)
Agreement: 3/3 models (100%)
Judge: ollama/qwen2.5-coder:14b (686ms)
Three cloud models polled, local model judging them. 686ms to evaluate agreement, no quota used.
Five Tools
- list_models - See what's available across all your providers
- ask_model - Query any model and get a response back
- compare_models - Same prompt to 2-5 models in parallel, side by side with brief/detailed format
- consensus - Poll 3-7 models, a judge model evaluates agreement, returns one answer with a confidence score
- synthesize - Fan out to multiple models, then combine their best ideas into one answer that's better than any individual response
From inside Claude Code you just say things like:
- "ask gpt-5 to review this function"
- "compare gemini and claude on this approach"
- "get consensus from 3 models on whether this is thread safe"
- "synthesize responses from gpt-5, gemini, claude, and qwen on how to design this API"
It just works. No browser tabs, no copy pasting between apps.
How It Works
You in Claude Code
|
HydraMCP (MCP Server)
|
Provider Interface
|-- CLIProxyAPI -> cloud models (OpenAI, Google, Anthropic, etc.)
|-- Ollama -> local models (your hardware)
HydraMCP sits between Claude Code and your model providers. It routes requests to the right backend, runs comparisons in parallel, and formats results to keep your context window small.
The consensus tool uses an LLM-as-judge approach. Instead of naive keyword matching, it picks a model not in the poll and has it evaluate whether the responses actually agree. It understands that "start with a monolith" and "monolith because it's simpler" are the same answer.
The synthesize tool goes further. It collects responses from multiple models, then a synthesizer model reads all of them and builds one combined answer. Best structure from one, best insights from another, best examples from a third. The result is better than any single model could produce alone.
Setup
You need Node.js 18+, Claude Code, and at least one backend. The whole process takes about 5 minutes.
Step 1: Set Up a Backend
You need at least one of these. Both is ideal.
CLIProxyAPI (Cloud Models)
CLIProxyAPI turns your existing subscriptions (ChatGPT Plus, Claude Pro, Gemini, etc.) into a local API. You authenticate once per provider, and it handles the rest.
Get the binary:
| Platform | Install |
|---|---|
| Windows | Download from releases (windows_amd64.zip) |
| macOS | brew install cliproxyapi |
| Linux | curl -fsSL https://raw.githubusercontent.com/brokechubb/cliproxyapi-installer/refs/heads/master/cliproxyapi-installer | bash |
Create config.yaml next to the binary:
port: 8317
auth-dir: "~/.cli-proxy-api"
api-keys:
- "sk-my-local-key"
The API key is a local passphrase you make up. It sits between HydraMCP and CLIProxyAPI on your machine. Not a provider key.
Authenticate your subscriptions:
Each subscription is one login command. A browser opens, you sign in with your existing account, done.
# Pick whichever subscriptions you have:
./cli-proxy-api --codex-login # ChatGPT Plus / Codex
./cli-proxy-api --claude-login # Claude Pro
./cli-proxy-api --login # Google Gemini
./cli-proxy-api --antigravity-login # Antigravity (free, gives Gemini 3)
You can authenticate as many as you want. Each one adds models to your pool. Run the same command again with a different account to add multiple credentials per provider.
Start it:
./cli-proxy-api
Runs on localhost:8317. Leave it running.
Ollama (Local Models)
Install Ollama, then pull a model:
ollama pull qwen2.5-coder:14b
Runs on localhost:11434 by default. Good for fast operations like judging consensus without using cloud quota.
Step 2: Install HydraMCP
git clone https://github.com/Pickle-Pixel/HydraMCP.git
cd HydraMCP
npm install
npm run build
Step 3: Configure
cp .env.example .env
Edit .env to match your backends:
# CLIProxyAPI (skip if not using)
CLIPROXYAPI_URL=http://localhost:8317
CLIPROXYAPI_KEY=sk-my-local-key
# Ollama (skip if not using)
OLLAMA_URL=http://localhost:11434
The CLIPROXYAPI_KEY should match the key you put in config.yaml.
Step 4: Register with Claude Code
claude mcp add hydramcp -s user -- node /path/to/HydraMCP/dist/index.js
Restart Claude Code. Type "list models" and you should see everything you authenticated.
Model Routing
You can target specific backends with prefixes:
cliproxy/gpt-5- explicitly use CLIProxyAPIollama/qwen2.5-coder:14b- explicitly use Ollamagpt-5- auto-detect (tries each provider until one handles it)
Credits
- CLIProxyAPI powers the subscription-based cloud backend
- Ollama powers the local model backend
- Built with the MCP SDK and Zod
I built the MCP tool layer, routing logic, and multi-model orchestration on top of these. Credit where it's due.
Contributing
Want to add a provider? The interface is simple. Check src/providers/provider.ts for the contract and src/providers/ollama.ts for a working example. Implement healthCheck(), listModels(), and query(), register it in src/index.ts, and you're done.
Providers we'd love to see:
- LM Studio
- OpenRouter
- Direct API keys (OpenAI, Anthropic, Google)
- Anything else that speaks HTTP
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.