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.
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.
pnpm install @mcpservers/openrouterai. 3. Obtain an OpenRouter API key. 4. Configure your MCP client (e.g., Claude Desktop or Cline) with the environment variable OPENROUTER_API_KEY. Optionally set OPENROUTER_DEFAULT_MODEL and others.{
"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"
}
}
}
}