OpenRouter
About
MCP server providing access to 300+ AI models via OpenRouter
Use this server
Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.
Transportstdio (runs a local command)
Env vars
OPENROUTER_API_KEY DEFAULT_TEXT_MODEL DEFAULT_IMAGE_MODEL DEFAULT_CODE_MODEL DEFAULT_VISION_MODEL DEFAULT_EMBEDDING_MODELClaude Code
claude mcp add --env OPENROUTER_API_KEY= --env DEFAULT_TEXT_MODEL= --env DEFAULT_IMAGE_MODEL= --env DEFAULT_CODE_MODEL= --env DEFAULT_VISION_MODEL= --env DEFAULT_EMBEDDING_MODEL= mcp-openrouter -- uvx mcp-openrouter
Cursor
If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.
VS Code
code --add-mcp '{"name":"mcp-openrouter","command":"uvx","args":["mcp-openrouter"],"env":{"OPENROUTER_API_KEY":"","DEFAULT_TEXT_MODEL":"","DEFAULT_IMAGE_MODEL":"","DEFAULT_CODE_MODEL":"","DEFAULT_VISION_MODEL":"","DEFAULT_EMBEDDING_MODEL":""}}'
JSON
{
"mcpServers": {
"mcp-openrouter": {
"command": "uvx",
"args": [
"mcp-openrouter"
],
"env": {
"OPENROUTER_API_KEY": "",
"DEFAULT_TEXT_MODEL": "",
"DEFAULT_IMAGE_MODEL": "",
"DEFAULT_CODE_MODEL": "",
"DEFAULT_VISION_MODEL": "",
"DEFAULT_EMBEDDING_MODEL": ""
}
}
}
}
Environment variables are listed by name only — fill in your own values. Entries never carry secrets.