userouter-mcp
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@userouter-mcp Ask qwen3-flash and glm-5 to explain this function, then compare them"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Contents
Related MCP server: WarungCyber MCP Server
Overview
Userouter is an OpenAI-compatible inference API that puts Qwen, DeepSeek, GLM, Claude and hundreds of other models behind a single key. This server connects that API to your AI assistant over the Model Context Protocol, so the assistant can choose and call other models on its own.
Capability | What it gives your assistant |
Model delegation | Send a long summary to a fast, low-cost model, or ask a second model to review a result. |
Side-by-side comparison | Run the same prompt on several models and compare the answers in one conversation. |
Cost awareness | Every reply reports its token count and exact USD cost; balance and usage are one call away. |
Confidential inference | Fetch the signed enclave receipt for any |
Launchpad models | Discover community models launched on Userouter and call the live ones by their |
Quick start
1. Create an API key at userouter.xyz/account. Keys start with sk-userouter-.
2. Add the server to Claude Code:
claude mcp add userouter -e USEROUTER_API_KEY=sk-userouter-... -- npx -y userouter-mcp3. Ask your assistant:
"List the DeepSeek models on Userouter with their prices."
"Ask qwen/qwen3.8-flash and z-ai/glm-5.3-flash to explain this function, then compare the answers."
"Which launchpad models are live right now?"
"How much have I spent on Userouter today?"
No installation step is needed: npx downloads and runs the latest published version. Node.js 20 or later is required.
Client setup
Every client uses the same command, npx -y userouter-mcp, with your key in the USEROUTER_API_KEY environment
variable.
claude mcp add userouter -e USEROUTER_API_KEY=sk-userouter-... -- npx -y userouter-mcpOpen Settings → Developer → Edit Config and add to claude_desktop_config.json:
{
"mcpServers": {
"userouter": {
"command": "npx",
"args": ["-y", "userouter-mcp"],
"env": { "USEROUTER_API_KEY": "sk-userouter-..." }
}
}
}Restart Claude Desktop after saving.
Add to ~/.cursor/mcp.json, or to .cursor/mcp.json for a single project:
{
"mcpServers": {
"userouter": {
"command": "npx",
"args": ["-y", "userouter-mcp"],
"env": { "USEROUTER_API_KEY": "sk-userouter-..." }
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"userouter": {
"command": "npx",
"args": ["-y", "userouter-mcp"],
"env": { "USEROUTER_API_KEY": "sk-userouter-..." }
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"userouter": {
"command": "npx",
"args": ["-y", "userouter-mcp"],
"env": { "USEROUTER_API_KEY": "sk-userouter-..." }
}
}
}Any client that supports stdio servers works. Configure:
Command:
npxArguments:
-y userouter-mcpEnvironment:
USEROUTER_API_KEY=sk-userouter-...
Tools
Tool | Description | Key |
Available models with context length, vision and tool support, and USD price per 1M tokens. | — | |
Community models on the Userouter launchpad, with status, token and price. | — | |
Run a prompt or a full conversation on any model; returns the reply, tokens and cost. | ✓ | |
Credit balance and free daily allowance. | ✓ | |
Most recent billed requests, newest first. | ✓ | |
Signed enclave receipt for a confidential ( | ✓ |
All tools except chat are read-only.
list_models
Parameter | Type | Description |
| string, optional | Case-insensitive match on model id or name, e.g. |
2 model(s):
- deepseek/deepseek-v4.1-flash (1049k ctx, vision, tools) $0.051 in / $0.567 out per 1M
- deepseek/deepseek-v4.1-flash:batch (1049k ctx, vision, tools) $0.050 in / $0.150 out per 1Mlist_launches
Parameter | Type | Description |
| integer, optional | Number of launches, 1–50. Default 20. |
Statuses are bonding, graduated, live, paused and delisted. Live launches include the model id to pass to chat.
chat
Parameter | Type | Description |
| string | Model id from |
| string | A single user message. |
| string, optional | System prompt, used together with |
| array, optional | A full conversation of |
| integer, optional | Maximum tokens to generate. |
| number, optional | Sampling temperature, 0–2. |
Pass either prompt or messages. The reply is followed by a footer such as:
model: qwen/qwen3.8-flash · tokens: 412 in / 96 out · cost: $0.000071get_balance
No parameters. Returns the account balance in USD and the free daily allowance, when one applies.
get_usage
Parameter | Type | Description |
| integer, optional | Number of requests, 1–100. Default 20. |
get_tee_receipt
Parameter | Type | Description |
| string | Receipt id from the |
Configuration
Variable | Default | Description |
| — | Your API key. Without it, only |
| — | Model used by |
|
| API endpoint. Must use |
|
| Per-request timeout in milliseconds, at least |
Invalid configuration stops the server at startup with a message that says what to fix.
How it works
flowchart LR
A["MCP client<br/>Claude · Cursor · VS Code"] -- "stdio (JSON-RPC)" --> B["userouter-mcp<br/>runs on your machine"]
B -- "HTTPS + API key" --> C["api.userouter.xyz"]
C --> D["400+ models<br/>ZDR · TEE · launchpad"]The server is a thin, local translation layer. Your client starts it as a child process and talks to it over stdio; the server turns each tool call into a request to the Userouter API and returns a readable result.
Privacy and security
Your API key is sent only to
USEROUTER_BASE_URL, over HTTPS, and is never logged or written to disk.The server opens no network ports and keeps no state between calls.
Prompts and replies pass straight through; the server stores nothing.
Every input is validated before a request is made, and API errors return as readable tool errors instead of crashing the server.
See SECURITY.md to report a vulnerability.
Troubleshooting
Symptom | Fix |
| Add the key to the |
| Copy the full key again from userouter.xyz/account. |
| Top up your balance on userouter.xyz. |
| The API allows 120 requests per minute per key. Wait a moment and retry. |
The server does not appear in the client | Run |
Development
git clone https://github.com/userouter/userouter-mcp.git
cd userouter-mcp
npm install
npm test # unit and protocol tests
npm run build # compile to dist/Try the tools interactively with the MCP Inspector:
npx @modelcontextprotocol/inspector node dist/index.jssrc/
├── index.ts # stdio entry point
├── server.ts # MCP server setup
├── tools.ts # tool definitions and input schemas
├── client.ts # typed Userouter API client
├── config.ts # environment parsing and validation
└── format.ts # human-readable tool outputContributing
Issues and pull requests are welcome. Please read CONTRIBUTING.md first, and open an issue to discuss anything larger than a small fix.
License
Released under the MIT License. © Userouter
Available Tools
6 toolschatRun inference on UserouterA
Send a prompt to a model on Userouter and return its reply. Billed to the configured API key. Pass prompt for a single turn, or messages for a full conversation. Call list_models to pick a model id.
Inputs: model, prompt, system, messages, +2 more.
get_balanceUserouter balanceARead-only
Show the USD credit balance and the free daily allowance for the configured API key.
Inputs: no named parameters.
get_tee_receiptConfidential inference receiptARead-only
Fetch the signed TEE receipt for one of your confidential (tee/…) responses, to verify it ran inside the enclave.
Inputs: id (required).
get_usageUserouter usageARead-only
List the most recent requests billed to the configured API key, newest first, with model, tokens and cost.
Inputs: limit.
list_launchesUserouter launchpadARead-only
List models launched on the Userouter LLM launchpad: Hugging Face repo, status (bonding, graduated, live, paused, delisted), token address and price. Live launches can be passed to chat by their launch/… model id.
Inputs: limit.
list_modelsList Userouter modelsARead-only
List models available on Userouter with context length and USD price per 1M tokens. Use search to filter by id or name.
Inputs: search.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools are cleanly separated by resource: chat, balance, usage, TEE receipts, model catalog, launchpad catalog. The only mild overlap is between list_models and list_launches, both 'list' operations over catalogs, though the descriptions (context length/pricing vs Hugging Face repo/bonding status/token address) make the boundary clear enough.
Five of six tools follow a clean verb_noun snake_case pattern (list_models, get_balance, get_usage, get_tee_receipt, list_launches). The single bare verb `chat` is the only deviation, but it's a natural and unambiguous name for the primary action.
Six tools is tightly scoped to the domain: catalog discovery, inference, billing visibility, verification, and launchpad access. Each tool maps to a distinct capability with no filler.
Core workflow is fully covered: discover models/launches, chat with either, check balance and usage, and verify confidential responses via TEE receipt. Minor gaps exist around key/account management and single-model detail lookup, but agents can work around these via list_models with search.
Maintenance
Related MCP Connectors
Chat, image, video, and audio models from many vendors behind one remote MCP server and one key.
Connect MCP clients to 2,000+ AI models without managing provider API keys.
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Related MCP Servers
- AlicenseAqualityCmaintenanceConnects Claude Desktop, Cursor, or any MCP-compatible client to 36+ frontier LLMs with automatic per-token payments in USDC on Solana.5MIT
- AlicenseAqualityBmaintenanceConnects MCP clients such as Claude Desktop, Cursor, and VS Code to 19 hosted AI models, providing tools for listing models, checking account balance, running chat completions, and generating client setup guides.4MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to browse a live catalog of 100+ models with pricing, rankings and measured uptime, check credits and spend, and send chat completions through an OAuth-authenticated, per-connection key capped by a spend limit. Read tools are free, and paid calls are priced and approved before any credit is used.MIT

zerouter-mcpofficial
AlicenseAqualityBmaintenanceConnects MCP clients such as Claude Desktop, Cursor and Claude Code to an OpenAI- and Anthropic-compatible AI gateway, enabling chat with Claude, GPT, Gemini, Grok and Kimi models, listing available models, and looking up per-million-token pricing. It also sends one prompt to several models in parallel and returns each answer with token usage, latency and estimated cost.4MIT