orcarouter-mcp
Browse OrcaRouter's model catalog and run chat completions from inside any Model Context Protocol client — Claude Desktop, Claude Code, Cursor, Windsurf, Zed, or anything else that speaks the protocol.
Catalog browsing works without an API key — compare pricing and capabilities before signing up.
What you can do
🗺️ Discover providers and models without an API key
💬 Run chat completions through any served model
🧠 Auto-route requests through your workspace's
orcarouter/autorouter (cost / quality / balanced / LinUCB / gated-adaptive strategies)🔁 Configure fallback chains (primary + up to 4 fallbacks) for resilience
📊 Filter models server-side by provider, capability, or minimum context window
🎯 Inspect detailed model cards: pricing, context, latency, supported endpoints
🔌 Works with Claude Desktop, Claude Code, Cursor, Windsurf, Zed, and any MCP client
Related MCP server: MCP-AI-Gateway
Examples
Try saying things like:
"List all providers on OrcaRouter"
"Show me all Anthropic models with their pricing"
"Get details about
minimax/minimax-m2.7""Chat with
orcarouter/autoand explain quantum computing"
Quick Start
Claude Code (CLI one-liner)
claude mcp add orcarouter -s user \
-e ORCAROUTER_API_KEY=sk-orca-your-key \
-- npx -y @orcarouter/mcpOther clients (config-file path)
Copy the example config for your MCP client into the client's config file:
Client
Example
Action
Claude Desktop
Replace
Claude Code
Merge
Cursor
Replace
Windsurf
Replace
See
examples/README.mdfor the config-file paths and notes on Zed and other clients.Replace
sk-or-...in the copied file with your OrcaRouter API key.Restart your MCP client.
The root .mcp.json is the same config in the Open Plugins standard location, so registry/discovery tools that scan for it (e.g. cursor.directory) can pick this server up automatically.
Requires Node.js 18 or later. The ORCAROUTER_API_KEY env var is only
required for orcarouter_chat; catalog tools work without it.
Tools
orcarouter_chat— run a chat completion (with optional fallback chain)orcarouter_models_list— browse the catalog (pricing, context, capabilities)orcarouter_model_card— detailed info for one modelorcarouter_providers_list— list providers with model counts
Full input schemas are exposed at runtime via the MCP tools/list method — your MCP client (Claude Desktop, Cursor, etc.) reads them automatically.
Configuration
Name | Required | Description |
| optional | OrcaRouter API key. Required only for |
| optional | API base URL. Defaults to |
| optional | Per-request HTTP timeout in seconds. Defaults to |
Security
API keys are read from environment variables, never logged, and only sent to the OrcaRouter API. See SECURITY.md for the vulnerability disclosure policy.
Development
# bun (preferred)
bun install
bun run test
bun run typecheck
bun run build
# or with npm
npm install
npm test
npm run typecheck
npm run buildThe build produces an ESM bundle at dist/index.js with a
#!/usr/bin/env node shebang, runnable as the orcarouter-mcp binary.
Contributing
See CONTRIBUTING.md. For newcomer-friendly tasks, browse the good first issue label.
License
Available Tools
4 toolsorcarouter_chatA
Send a single-turn chat request to OrcaRouter and return the assistant's response text. Default model is the workspace's auto-router. Use orcarouter/<name> for other routers or <provider>/<model> for direct calls. For OpenAI reasoning models (gpt-5/o1/o3/...), max_tokens is automatically routed to max_completion_tokens at the wire level. The optional models array sets a fallback chain — the primary model is tried first, then each entry on failure (5 entries total max, including the primary). Errors are returned as text content with isError:true; common cases include missing API key, rate limits, and upstream provider outages. Requires ORCAROUTER_API_KEY.
Inputs: prompt (required), model, system_prompt, max_tokens, +2 more.
orcarouter_model_cardARead-onlyIdempotent
Get detailed information about a single model — display name, long description, pricing (per-call and per-million tokens), context window, max output, modalities (input/output), supported endpoints, latency percentiles (p50/p95), and release date. Use this when you already know the model id and want full details; for browsing or filtering across many models use orcarouter_models_list instead. Returns isError:true with a clear hint when the id is not found. Read-only, no API key required.
Inputs: model (required).
orcarouter_models_listARead-onlyIdempotent
List LLM models in the OrcaRouter catalog. Each entry includes id, name, description, owned_by, context_length, supported_endpoint_types, and pricing (both per-token and per-million tokens). Filter by provider, capability, or min_context — filters compose (all conditions must match) and are applied server-side. Discover valid provider ids first with orcarouter_providers_list. Returns the full catalog when called without filters. Read-only, no API key required.
Inputs: provider, capability, min_context.
orcarouter_providers_listARead-onlyIdempotent
List all model providers on OrcaRouter with their provider_id, human-readable display_name, icon_url, and model_count. Call this first to discover valid provider ids (e.g. 'openai', 'anthropic', 'google', 'qwen', 'deepseek') which you can then pass to orcarouter_models_list as the provider filter. Takes no parameters and returns the same list on every call until the deployment's catalog changes. Read-only, no API key required.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: chat, model card, model listing, and provider listing. No overlap or ambiguity.
All tools follow the consistent pattern 'orcarouter_<noun>', using snake_case throughout. The naming is predictable and uniform.
With 4 tools, the server is well-scoped for its purpose—covering chat and model catalog exploration without unnecessary bloat.
Core operations (chat, model info, model listing, provider listing) are present. Minor gap: no health/status tool, but functionality is largely complete.
Maintenance
Related MCP Connectors
One API key for every AI model, routed to the cheapest provider. OpenAI-compatible.
350 chat, image and speech models on one API key, prices readable without a key
Sourced AI-model pricing and capability data — compare and route to the cheapest capable model.
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA model routing advisor for autonomous agents — get cost-optimised LLM recommendations via MCP.8 npmMIT
- FlicenseNot gradedqualityDmaintenanceUnified local MCP AI Gateway that routes across Groq, OpenRouter, Mistral, and local Ollama providers, with OpenAI-compatible APIs, MCP tools, fallback/racing router, monitoring, and web dashboard.-
- AlicenseAqualityDmaintenanceEnables AI agents to discover models, pricing, and chat completions through RouterBase, an API gateway for 200+ AI models.51MIT
- 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