# Zerouter

> Zerouter is a paid MCP server for ai models and llm tooling. Call Claude, GPT, Gemini, Grok and Kimi through one Zerouter key, and compare their prices. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, CLI
- **Website:** https://www.zerouter.ai
- **Repository:** https://github.com/zerouterai/zerouter-mcp
- **MCP Registry name:** io.github.ZerouterAI/zerouter-mcp
- **Categories:** AI models and LLM tooling
- **Listing updated:** 2026-11-15

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

```sh
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
```

### Claude Desktop (claude_desktop_config.json)

```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>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```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>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```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>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```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>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```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>"
      }
    }
  }
}
```

## Tools

- `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.

## 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

- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [signafAIde](https://ai-powered.com/mcp/signafaide): signafAIde is a freemium MCP server for security.
- [Toolkien](https://ai-powered.com/mcp/toolkien): Toolkien is an open-source MCP server for ai models and llm tooling.
- [Lugh](https://ai-powered.com/mcp/lugh): Lugh is an open-source MCP server for ai models and llm tooling.
- [HypePaper](https://ai-powered.com/mcp/hypepaper): HypePaper is a freemium MCP server for ai models and llm tooling.
- [Agent Data Tools: Compact (find, describe, run)](https://ai-powered.com/mcp/agent-data-tools-compact-find-describe-run): Agent Data Tools: Compact (find, describe, run) is a freemium MCP server for developer tools.
- [Angel Agent Guard: pre-purchase check + prompt-injection scan](https://ai-powered.com/mcp/angel-agent-guard-pre-purchase-check-prompt-injection-scan): Angel Agent Guard: pre-purchase check + prompt-injection scan is a freemium MCP server for ai models and llm tooling.
- [Mizan Calibration](https://ai-powered.com/mcp/mizan-calibration): Mizan Calibration is a free MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/zerouter
