npm @orcarouter/mcpstdioMITupdated 3mo ago
Official MCP server for the OrcaRouter LLM gateway.
What can you do with OrcaRouter?
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
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/mcp
Other clients (config-file path)
-
Copy the example config for your MCP client into the client's config file:
Client Example Action Claude Desktop claude-desktop.json Replace Claude Code claude-code.json Merge Cursor cursor.json Replace Windsurf windsurf.json 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 |
|---|---|---|
ORCAROUTER_API_KEY |
optional | OrcaRouter API key. Required only for orcarouter_chat. |
ORCAROUTER_BASE_URL |
optional | API base URL. Defaults to https://api.orcarouter.ai. |
ORCAROUTER_REQUEST_TIMEOUT |
optional | Per-request HTTP timeout in seconds. Defaults to 300. |
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 build
The 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
Install
Add OrcaRouter to your client. Pick the one you use.
claude mcp add mcp -- npx -y @orcarouter/mcpcodex mcp add mcp -- npx -y @orcarouter/mcpamp mcp add mcp -- npx -y @orcarouter/mcp{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@orcarouter/mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@orcarouter/mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"mcp","command":"npx","args":["-y","@orcarouter/mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@orcarouter/mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@orcarouter/mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@orcarouter/mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@orcarouter/mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"@orcarouter/mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @orcarouter/mcpRun `goose configure`, choose **Add Extension β Command-line Extension**, and paste this command.
4 tools
OrcaRouter exposes 4 tools to a connected agent.
- 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 model
- orcarouter_providers_list
- list providers with model counts
Score
78 / 100
Good
- Documentation25/25
- Maintenance19/25
- Trust16/20
- Capability6/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 97 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 4 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint β no local install
Version history
| Versions | Published |
|---|---|
| 1.1.5Latest | May 26, 2026 |
| 1.1.4 | May 26, 2026 |
| 1.1.3 | May 25, 2026 |