Best for
- Developers
- AI applications needing access to multiple AI models
- MCP client users
This server provides a clear unified response format and error handling, with flexible configuration, but depends on the OpenRouter service.
Strongest · Documentation 14/20 Weakest · Reliability 6/20
Static review · not runListed 2026-08-07
Read the FMRS scoring method →Runtime:Node.js
OPENROUTER_API_KEY
Required OpenRouter API key, obtainable at https://openrouter.ai/keys.
OPENROUTER_DEFAULT_MODEL
Optional default model used when none is specified in the request, e.g. openrouter/auto.
OPENROUTER_MAX_TOKENS
Optional default max tokens when max_tokens is not provided in the request.
OPENROUTER_PROVIDER_QUANTIZATIONS
Optional default quantization levels filter (e.g. fp16,int8).
OPENROUTER_PROVIDER_IGNORE
Optional default provider names to exclude.
OPENROUTER_PROVIDER_SORT
Optional default provider sort order: price, throughput or latency.
OPENROUTER_PROVIDER_ORDER
Optional default prioritized provider list as a JSON array string.
OPENROUTER_PROVIDER_REQUIRE_PARAMETERS
Optional default boolean requiring providers to support all request parameters.
OPENROUTER_PROVIDER_DATA_COLLECTION
Optional default data collection policy: allow or deny.
OPENROUTER_PROVIDER_ALLOW_FALLBACKS
Optional default boolean controlling fallback to other providers.
pnpm install @mcpservers/openrouterai.{
"mcpServers": {
"openrouterai": {
"command": "npx",
"args": [
"@mcpservers/openrouterai"
],
"env": {
"OPENROUTER_API_KEY": "your-api-key-here",
"OPENROUTER_DEFAULT_MODEL": "optional-default-model",
"OPENROUTER_MAX_TOKENS": "1024",
"OPENROUTER_PROVIDER_QUANTIZATIONS": "fp16,int8",
"OPENROUTER_PROVIDER_IGNORE": "openai,anthropic"
}
}
}
}
Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"openrouterai": {
"command": "npx",
"args": [
"@mcpservers/openrouterai"
],
"env": {
"OPENROUTER_API_KEY": "your-api-key-here",
"OPENROUTER_DEFAULT_MODEL": "optional-default-model",
"OPENROUTER_MAX_TOKENS": "1024",
"OPENROUTER_PROVIDER_QUANTIZATIONS": "fp16,int8",
"OPENROUTER_PROVIDER_IGNORE": "openai,anthropic"
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
claude mcp add openrouterai -e OPENROUTER_API_KEY=your-api-key-here -e OPENROUTER_DEFAULT_MODEL=optional-default-model -e OPENROUTER_MAX_TOKENS=1024 -e OPENROUTER_PROVIDER_QUANTIZATIONS=fp16,int8 -e OPENROUTER_PROVIDER_IGNORE=openai,anthropic -- npx @mcpservers/openrouterai
Run it in a terminal; replace any <…> placeholders with your own values first.
Check that the client's tool list shows chat_completion, search_models, get_model_info and validate_model; then call validate_model on a model ID — a response of { isError: false, valid: true } confirms the connection works.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
The OpenRouter MCP server provides seamless integration with OpenRouter.ai's diverse model ecosystem. Access various AI models through a unified, type-safe interface with built-in caching, rate limiting, and error handling.
Upstash's official server providing up-to-date third-party library docs for AI coding assistants
AI-powered NPM package analysis MCP server
An independent control layer that gives AI coding agents budgets, brakes, and receipts
GitHub's official MCP server for managing repos, issues, PRs, and workflows via natural language
Source revision 3678d309d893 Data synced 2026-10-12 Read the FMRS scoring method