Zerouter
io.github.ZerouterAI由 GitHub 帳號 ZerouterAI 發布v0.1.0更新於 Oct 25, 2026
AI API gateway MCP: Claude, GPT, Gemini, Grok & Kimi with one Zerouter API key, plus API pricing.
概覽
Zerouter 是本地 MCP 伺服器,讓助理用一組 AI API 閘道金鑰與 Claude、GPT、Gemini、Grok 和 Kimi 對話、比較模型並查詢 API 價格。
- 可以做什麼
- 透過單一閘道與任何支援的模型對話,可送出提示詞或訊息列表,並可選用系統提示、最大 token 數與溫度,伺服器會依模型系列自動選擇正確的端點格式。把同一個提示詞平行送給 2 到 4 個模型,取回每個答案及 token 用量、延遲與預估費用。查詢每百萬輸入與輸出 token 的目前 API 價格,並與廠商官方定價對照,可依模型或供應商篩選。列出可用模型 ID 及各自使用的端點。需要時可依請求覆寫端點。
- 適用情境
- 適合想在同一個編輯器或桌面用戶端裡用一組金鑰存取多個模型系列、在決定前比較不同模型的回答,或想不離開對話就核對閘道價格與官方定價的情況。
- 執行需求
- 以 stdio 在本機執行。使用 npx 安裝需要 Node.js 18 以上與 npm 10 以上,也可用 Claude Desktop 的 MCPB 套件、複製原始碼建置或 Docker 方式。chat 與 compare_models 需要 Zerouter 帳號及放在 ZEROUTER_API_KEY 環境變數中的 API 金鑰;價格查詢與模型列表不需金鑰。需要連線到閘道的網路,閘道位址可用 ZEROUTER_BASE_URL 變更。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Zerouter,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
zerouter-mcp
[GitHub release] [MCP Registry] [License: MIT]
AI API gateway MCP for Claude, GPT, Gemini, Grok and Kimi via Zerouter.
zerouter-mcp connects Claude Desktop, Cursor, Claude Code and other MCP clients to Zerouter, an OpenAI-compatible AI API gateway. With one API key you can chat with any supported model, compare answers side by side, or look up API pricing per 1M tokens, without leaving your editor.
Why Zerouter
- One API key for Claude, GPT, Gemini, Grok and Kimi. The same
sk-key routes to every model. Zerouter exposes Anthropic-compatible and OpenAI-compatible endpoints, so it works with Claude Code, Codex and Cursor—change the base URL and keep your existing clients. - API pricing you can check in chat. Claude Opus 5.5 on Zerouter is $1.16 input / $5.81 output per 1M tokens (Anthropic list price $4 / $20). Live rates for GPT, Gemini, Grok and Kimi are on the Zerouter pricing page.
- Compare models before you commit. Send one prompt to 2–4 models in parallel and get each answer with token usage, latency and estimated cost.
- Stable routing, real models. The model ID you send is the model that runs and the one you're billed for. Prompts aren't rewritten and models aren't swapped.
- Host unused subscription quota. If you have an official AI account with capacity you don't use, the Zerouter provider program routes paid traffic to it and pays you the larger share of each request, currently about 80%, in USDC.
What it does
You don't have to think about API formats. chat sends each request to the right Zerouter endpoint for you:
- Claude and Kimi go to
POST /v1/messages(Anthropic format) - GPT, Codex and Grok go to
POST /v1/responses(OpenAI Responses) - Gemini and the compatible channels (Qwen/Dashscope and others) go to
POST /v1/chat/completions
If you need to, you can override this with the endpoint argument.
Get a key
- Sign in at zerouter.ai and open the dashboard.
- Create an API key. Keys start with
sk-and work for every model. - Put it in the
ZEROUTER_API_KEYenvironment variable, as in the configs below.
See the pricing page for current API pricing and the quickstart for setup details.
Setup
You need Node.js 18 or newer with npm 10 or newer (bundled with current Node 18/20/22 releases). npx fetches the server straight from GitHub, builds it once and runs it. The first start takes up to a minute while it installs; later starts use the npx cache.
The package isn't published to npm, so use github:ZerouterAI/zerouter-mcp as shown below (not zerouter-mcp). Prefer not to use npx? See Other ways to install.
Claude Desktop
Edit claude_desktop_config.json. On macOS it's in ~/Library/Application Support/Claude/ and on Windows in %APPDATA%\Claude\:
Restart Claude Desktop afterwards.
Cursor
Add this to ~/.cursor/mcp.json for all projects, or to .cursor/mcp.json in a single project:
Claude Code
Add --scope user to make it available in every project.
Other ways to install
MCPB bundle (Claude Desktop one-click). Download zerouter-mcp-0.1.0.mcpb from the latest release and open it, or drag it into Claude Desktop under Settings → Extensions. Claude Desktop asks for your API key; no Node.js setup needed.
Clone and build. Works with any MCP client that can run a local command:
Then point your client at the built file, using the absolute path on your machine:
For Claude Code: claude mcp add zerouter --env ZEROUTER_API_KEY=sk-xxxx -- node /absolute/path/to/zerouter-mcp/dist/index.js
Docker
Environment variables
If no key is set, get_pricing and list_models still work. chat and compare_models return a clear error that tells you where to get a key.
Example prompts
- "What does Claude Opus 5.5 cost on Zerouter compared with the official API pricing?"
- "Ask gemini-3.8-flash to summarise this file."
- "Compare claude-sonnet-5-5, gpt-6-sol and grok-4.6 on this regex question and tell me which answer is right."
- "Which models on Zerouter cost less than $0.50 per million input tokens?"
Development
Links
- Start here: zerouter.ai — get a key and see how it works
- Model list: zerouter.ai/models
- API pricing: zerouter.ai/pricing
- Docs: zerouter.ai/docs
- Provider program: provider.zerouter.ai/docs
- Issues: github.com/ZerouterAI/zerouter-mcp/issues
License
MIT. Built by the Zerouter team.
來源:README.md,提交 b5eb0d7
工具
0版本歷史
1- v0.1.0最新Oct 17, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
