Skip to main content
Glama
Firnschnee

Dual Model MCP Server

by Firnschnee

Dual Model MCP Server

An MCP server that queries multiple LLMs (default: Claude Opus 5 and OpenAI GPT-5.6 Sol) in parallel via OpenRouter and returns side-by-side responses, optionally with an automatic synthesis step that compares them.

Runs locally over stdio (Claude Code, Claude Desktop, Cherry Studio) and remotely over Streamable HTTP – so you can use it from claude.ai on the web and in the mobile apps as a custom connector.

The Problem

Sometimes a single AI model gets stuck in a particular perspective or reasoning pattern. You ask a question, get a good answer, but you know there's another angle, another approach that might be equally valuable (or better). Switching between different models, waiting for separate responses, losing context. It's tedious.

Related MCP server: cognition-wheel

The Solution

Dual Model MCP Server sends your prompt to multiple models simultaneously, giving you independent, high-quality responses side-by-side. Compare, contrast, combine, all in one go. Perfect for:

  • Decision-making: See technical/medical/business/research/legal questions from multiple angles

  • Quality assurance: Spot blind spots in reasoning or missed edge cases

  • Creative work: Get diverse perspectives on problems

  • Validation: Cross-check facts and arguments between models

Features

  • Parallel queries – All models respond simultaneously, not sequentially

  • Resilient – If one model fails, you still get the others' answers instead of a total error

  • Synthesis step (optional) – A third, cheap model compares the answers: convergences, contradictions, unique points

  • Token usage reporting – Every response includes per-model and total token counts

  • Configurable without rebuild – Models, max_tokens, temperature, timeout via .env; per-call overrides via tool parameters

  • N models, not just two – Configure any number of OpenRouter models

  • Structured responses – Default system prompt produces 6-8 concise paragraphs (analysis, context, evidence, arguments, alternatives, reflection, conclusion); custom system prompts supported

  • Easy integration – Works with Claude Code, Claude Desktop, Cherry Studio, or any MCP client

  • Remote access – Optional HTTP mode serves the same tool over HTTPS for claude.ai (web/mobile) via custom connector, secured by a secret URL path

Quick Start

Installation

git clone https://github.com/Firnschnee/dual-model-mcp.git
cd dual-model-mcp
npm install

npm install builds the server automatically (via the prepare script).

Setup

  1. Get an OpenRouter API key:

    • Go to openrouter.ai

    • Create an account / sign in

    • Copy your API key from settings

  2. Create .env file (copy the template):

    cp .env.example .env

    Then edit .env and paste your key:

    OPENROUTER_API_KEY=your_actual_api_key_here

    .env is gitignored, so your key never lands in version control. The server loads .env relative to its own location, so it works no matter which working directory your MCP client uses.

  3. Verify:

    npm start

    You should see:

    ✅ Server läuft! Warte auf MCP-Anfragen via STDIO...

    Stop it with Ctrl+C. You do not need to keep it running: MCP clients start the server themselves as a child process whenever they need it.

Usage

With Claude Code

claude mcp add --scope user dual-model -- node C:/path/to/dual-model-mcp/build/index.js

Or add it to a single project via .mcp.json in the project root:

{
  "mcpServers": {
    "dual-model": {
      "command": "node",
      "args": ["C:/path/to/dual-model-mcp/build/index.js"]
    }
  }
}

Then ask Claude Code to use the query_dual_models tool, e.g. "Frag beide Modelle: ... und synthetisiere die Antworten."

With claude.ai (web & mobile)

claude.ai talks to remote MCP servers over Streamable HTTP. The HTTP entry point serves exactly that; you need a server with a public HTTPS domain and a reverse proxy.

  1. On your server: clone, install, and configure:

    git clone https://github.com/Firnschnee/dual-model-mcp.git
    cd dual-model-mcp && npm ci

    In .env (or a systemd EnvironmentFile), set your API key plus:

    MCP_PATH_SECRET=$(openssl rand -hex 24)
  2. Run the HTTP entry point (ideally as a systemd service):

    npm run start:http

    It binds to 127.0.0.1:3777 and serves MCP at /<MCP_PATH_SECRET>/mcp. Requests to any other path get a bare 404.

  3. Route it through your reverse proxy. Caddy example:

    your-domain.example {
        handle /<MCP_PATH_SECRET>/mcp {
            reverse_proxy 127.0.0.1:3777
        }
    }
  4. Add the connector in claude.ai: Settings → Connectors → Add custom connector → https://your-domain.example/<MCP_PATH_SECRET>/mcp. The tool then works in web chats and the mobile apps.

Security model: the secret path is the only authentication – anyone who knows the URL can spend your OpenRouter credit. Keep the URL private, set a spending limit in the OpenRouter dashboard as a backstop, and rotate the secret (env file + proxy + connector URL) if it ever leaks. For anything beyond personal use, put proper OAuth in front instead.

With Cherry Studio

  1. Open Cherry Studio

  2. Settings → MCP Servers → Add

  3. Fill in:

    • Name: Dual Model MCP

    • Command: node

    • Arguments: C:\path\to\dual-model-mcp\build\index.js

  4. Save & restart Cherry Studio

  5. Choose the MCP server in the chat window, ask a question, and all models respond

Tool parameters

query_dual_models accepts:

Parameter

Type

Default

Description

prompt

string

(required)

The prompt sent to all models

system_prompt

string

structured 6-8 paragraph prompt

Custom system prompt

models

string[]

from .env / built-in

OpenRouter model IDs for this call only

max_tokens

number

6000

Max output tokens per model

temperature

number

0.7

Sampling temperature (0-2)

synthesize

boolean

false

Adds a comparison step: convergences, contradictions, unique points

Configuration

All settings live in .env (see .env.example):

Variable

Default

Description

OPENROUTER_API_KEY

(required)

Your OpenRouter API key

MODELS

anthropic/claude-opus-5,openai/gpt-5.6-sol

Comma-separated model IDs to query in parallel

SYNTHESIS_MODEL

anthropic/claude-haiku-4.5

Model for the synthesis step

MAX_TOKENS

6000

Max output tokens per model

TEMPERATURE

0.7

Sampling temperature

REQUEST_TIMEOUT_MS

120000

Per-request timeout

MCP_PATH_SECRET

(required in HTTP mode)

Secret URL path segment, min. 16 chars

MCP_HTTP_HOST

127.0.0.1

HTTP bind address (keep local behind a reverse proxy)

MCP_HTTP_PORT

3777

HTTP port

No rebuild needed after changing .env; the MCP client restarts the server on demand.

Stack & Dependencies

Aspect

Technology

Language

TypeScript

Protocol

Model Context Protocol (MCP)

API

OpenRouter (supports 200+ models)

Runtime

Node.js 18+ (native fetch, no HTTP client dependency)

Build

tsc + npm

Cost & Token Usage

Be aware that this might cost a lot of tokens! max_tokens defaults to 6000 per model to allow deep-dive analyses. Every response reports actual token usage per model and in total, so you can see what a query cost. For quick factual questions, pass a smaller max_tokens per call.

Testing

npm test

Runs a minimal smoke test: starts the built server, sends one short prompt with a one-sentence system prompt, prints the response. Costs a few hundred tokens.

Contributing

Found a bug? Have an idea? Fork & submit a PR!

License

MIT License – See LICENSE file

Available Tools

1 tool
query_dual_modelsMulti-Modell-AnfrageA

Schickt eine Prompt parallel an mehrere Modelle via OpenRouter (Standard: anthropic/claude-opus-4.8, openai/gpt-5.5). Liefert alle Antworten nebeneinander, optional mit Synthese (Konvergenzen, Widersprüche, Unikate). Standard-System-Prompt: strukturierte Antwort in 6-8 Absätzen.

ParametersJSON Schema
NameRequiredDescriptionDefault
modelsNoOptional: OpenRouter-Modell-IDs für diesen Aufruf. Standard: anthropic/claude-opus-4.8, openai/gpt-5.5
promptYesDie Prompt für alle Modelle
max_tokensNoOptional: max_tokens pro Modell. Standard: 6000
synthesizeNoOptional: Zusätzlicher Vergleichsschritt über alle Antworten (Konvergenzen, Widersprüche, Unikate).
temperatureNoOptional: Temperature. Standard: 0.7
system_promptNoOptional: Custom System-Prompt. Falls leer: Standard-Prompt (strukturiert, 6-8 Absätze).

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Describes parallel query behavior, return of multiple responses, optional synthesis, and default system prompt. No annotations provided, so description carries full burden. It is transparent about the main actions and does not contradict annotations (none exist). Could mention auth or rate limits, but overall sufficient for a read-like operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no fluff. Each sentence adds critical information: first on core functionality, second on options and defaults. Highly efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 6 parameters, no output schema, and no annotations, the description covers the main flow (parallel, multiple models, synthesis, defaults). It could detail the return format (e.g., array of responses), but for a multi-model query tool, it is sufficiently complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, baseline 3. Description adds value by specifying default models (anthropic/claude-opus-4.8, openai/gpt-5.5), mentioning 'parallel' execution, and describing the standard system prompt behavior (6-8 paragraphs), which is absent in the schema parameter descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states it sends a prompt in parallel to multiple models via OpenRouter and returns responses side by side with optional synthesis. Verb 'schickt' and resource 'Modelle via OpenRouter' are specific and distinct. No sibling tools exist, so no differentiation needed.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implies usage for comparing multiple model responses or obtaining a synthesized output. Mentions default models, default system prompt, and optional synthesis. Lacks explicit when-not or alternatives, but given no siblings, the context is clear enough.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A4.6/5.0
Disambiguation5/5

With only one tool, there is no possibility of confusion or ambiguity between tools.

Naming Consistency5/5

The single tool name 'query_dual_models' is descriptive and follows a clear verb_noun pattern; consistency is trivially maintained.

Tool Count5/5

The server has a narrow, focused purpose of querying dual models, and one tool fully covers that functionality without excess or deficiency.

Completeness5/5

The tool provides complete coverage for the server's domain: sending queries to multiple models and optionally synthesizing results. No obvious gaps exist.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Query multiple AI models (GPT-4, Claude, Gemini, Grok) in parallel for diverse perspectives. Get different expert viewpoints when stuck or need enhanced reasoning.
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Enables querying multiple AI models in parallel (Claude, Gemini, O3) and synthesizing their responses using anonymous analysis to reduce bias, providing a comprehensive answer.
    1
    49
    193
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Queries multiple AI models simultaneously (GPT 5.2, Claude Opus 4.5, Gemini 3, Grok 4.1) via a single API call to provide diverse expert perspectives and consensus recommendations.
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Firnschnee/dual-model-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server