Skip to content
MCP server

Zerouter

Call Claude, GPT, Gemini, Grok and Kimi through one Zerouter key, and compare their prices

Runs locallyStatus and history
Install
Pricing
Paid
Platforms
API, CLI
Runs
Locally
Version
0.1.0
Listing updated
2 days ago

About Zerouter

Zerouter is a paid MCP server for ai models and llm tooling. It runs locally on your machine and is started by your AI client.

Zerouter is an API gateway that fronts several model vendors behind a single key, and this server brings four of its functions into an editor or desktop assistant. Two work without an account: listing the model IDs you can call, and showing per-million-token pricing next to each vendor's list price. Sending a prompt and comparing models need a Zerouter key.

The compare tool sends one prompt to two to four models in parallel and returns each answer with token usage, latency and an estimated cost. The chat tool routes each request to the right endpoint for you: Claude and Kimi use the Anthropic Messages format, GPT, Codex and Grok use the OpenAI Responses format, and Gemini uses chat completions. An endpoint argument overrides that.

It runs locally over stdio, installed from GitHub with npx or as an .mcpb bundle, and reads ZEROUTER_API_KEY and an optional ZEROUTER_BASE_URL. Billing is per token from a prepaid balance with no subscription.

Install

Run in a terminal

claude mcp add zerouter-mcp --env ZEROUTER_API_KEY='<ZEROUTER_API_KEY>' -- npx -y https://github.com/ZerouterAI/zerouter-mcp/releases/download/v0.1.0/zerouter-mcp-0.1.0.mcpb

Add to claude_desktop_config.json

{
  "mcpServers": {
    "zerouter-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/ZerouterAI/zerouter-mcp/releases/download/v0.1.0/zerouter-mcp-0.1.0.mcpb"
      ],
      "env": {
        "ZEROUTER_API_KEY": "<ZEROUTER_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "zerouter-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/ZerouterAI/zerouter-mcp/releases/download/v0.1.0/zerouter-mcp-0.1.0.mcpb"
      ],
      "env": {
        "ZEROUTER_API_KEY": "<ZEROUTER_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "zerouter-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/ZerouterAI/zerouter-mcp/releases/download/v0.1.0/zerouter-mcp-0.1.0.mcpb"
      ],
      "env": {
        "ZEROUTER_API_KEY": "<ZEROUTER_API_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "zerouter-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/ZerouterAI/zerouter-mcp/releases/download/v0.1.0/zerouter-mcp-0.1.0.mcpb"
      ],
      "env": {
        "ZEROUTER_API_KEY": "<ZEROUTER_API_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "zerouter-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/ZerouterAI/zerouter-mcp/releases/download/v0.1.0/zerouter-mcp-0.1.0.mcpb"
      ],
      "env": {
        "ZEROUTER_API_KEY": "<ZEROUTER_API_KEY>"
      }
    }
  }
}

Configuration

  • ZEROUTER_API_KEYZerouter API key (sk-...) from https://www.zerouter.ai. Needed for chat and compare_models; get_pricing and list_models work without it.
  • ZEROUTER_BASE_URLOverride the gateway URL. Default https://api.zerouter.ai

Tools this server provides (4)

Taken from the project documentation; the running server may differ.

get_pricing
Current Zerouter API pricing per 1M input and output tokens next to vendor list prices, filterable by model or provider.
list_models
Model IDs you can call and the endpoint each one uses.
chat
Send a prompt or message list to any supported model.
compare_models
Send the same prompt to 2 to 4 models in parallel and compare answers, usage, latency and cost.

What it does

Pricing lookup
Shows Zerouter rates per million tokens beside each vendor's official list price, filterable by model or provider.
Model listing
Lists callable model IDs and which endpoint each one uses; works without a key.
Chat with any model
Sends a prompt or message list with optional system prompt, max tokens and temperature.
Side-by-side comparison
Runs one prompt against two to four models and reports tokens, latency and estimated cost.
Automatic endpoint choice
Picks the Messages, Responses or chat completions route per model family.

Good for

  • Compare answers from several models without leaving your editor
  • Check what a model costs per million tokens before choosing it
  • Estimate the cost of a prompt across vendors
  • Test a Zerouter key from inside Claude Desktop or Cursor

Pricing

Paid

Pay per token from a prepaid balance, no subscription. Pricing and model list tools work without a key.

Prices change. Check zerouter.ai before you buy.

Zerouter FAQ

Which tools need an API key?

Chat and compare_models need one; get_pricing and list_models do not.

How do I install it?

Use npx with github:ZerouterAI/zerouter-mcp, or the .mcpb release bundle; the package is not on npm. Node.js 18 or newer is required.

How is usage billed?

Per token at the published rate for the model you call, from a prepaid balance, with no monthly fee.

Can I point it at another gateway URL?

Yes, set ZEROUTER_BASE_URL; the default is https://api.zerouter.ai.

Is Zerouter free?

No. Zerouter is a paid product.

How do I add Zerouter to Claude Code?

Run this command in your terminal: claude mcp add zerouter-mcp --env ZEROUTER_API_KEY='<ZEROUTER_API_KEY>' -- npx -y https://github.com/ZerouterAI/zerouter-mcp/releases/download/v0.1.0/zerouter-mcp-0.1.0.mcpb

What are the best alternatives to Zerouter?

The closest alternatives to Zerouter are Claude Code Ultimate Guide, signafAIde, Toolkien, Lugh and HypePaper.

Alternatives to Zerouter

  1. MCP server for searching the Claude Code Ultimate Guide from any MCP client

    Runs locally
    • Open source
    • 6.5K GitHub stars
    • AI models and LLM tooling
  2. signafAIde

    MCP server

    Local MCP server to set up, verify and check coverage of signed agent action records

    Runs locally
    • 5 tools
    • Freemium
    • Security
  3. Toolkien

    MCP server

    One MCP gateway for all your MCP servers, with code mode, permissions and audit

    Not checked yet
    • 3 tools
    • Remote
    • Open source
    • AI models and LLM tooling
  4. Lugh

    MCP server

    Write, check and dry-run Lugh agent programs with policy, budgets and approvals

    Runs locally
    • 5 tools
    • Open source
    • AI models and LLM tooling
  5. HypePaper

    MCP server

    Research papers, benchmarks, citations and topic experts for AI assistants

    • 58 tools
    • Remote
    • Freemium
    • AI models and LLM tooling