OpenRouter MCP Server
by tsilvaio.github.tsilva/mcp-openrouterv1.1.8
MCP server providing access to 300+ AI models via OpenRouter
context tax
queued
security
queued
cold start
queued
freshness
Active2d ago
Install OpenRouter MCP server
Install in Claude Code
claude mcp add openrouter-tsilva -e OPENROUTER_API_KEY='<openrouter-api-key>' -- uvx mcp-openrouterInstall in Cursor
{
"mcpServers": {
"openrouter-tsilva": {
"command": "uvx",
"args": [
"mcp-openrouter"
],
"env": {
"OPENROUTER_API_KEY": "<openrouter-api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"openrouter-tsilva": {
"command": "uvx",
"args": [
"mcp-openrouter"
],
"env": {
"OPENROUTER_API_KEY": "<openrouter-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"openrouter-tsilva": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-openrouter"
],
"env": {
"OPENROUTER_API_KEY": "<openrouter-api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"openrouter-tsilva": {
"command": "uvx",
"args": [
"mcp-openrouter"
],
"env": {
"OPENROUTER_API_KEY": "<openrouter-api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| OPENROUTER_API_KEY | yes | yes | OpenRouter API key used to authenticate tool requests. |
| DEFAULT_TEXT_MODEL | — | — | Default model slug for chat tool calls when no model is provided. |
| DEFAULT_IMAGE_MODEL | — | — | Default model slug for image generation tool calls. |
| DEFAULT_CODE_MODEL | — | — | Default model slug for code-oriented tasks. |
| DEFAULT_VISION_MODEL | — | — | Default model slug for vision-capable tool calls. |
| DEFAULT_EMBEDDING_MODEL | — | — | Default model slug for embedding tool calls when no model is provided. |
Freshness
Active — last maintenance signal 2d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-08 · 2d ago · GitHub
Latest release
2026-04-29 · 5mo ago · GitHub · v1.1.8
Package published
no data · npm/PyPI
Registry entry updated
2026-04-29 · 5mo ago · official registry · v1.1.8
FAQ
›How do I install the OpenRouter MCP server in Claude Code?
Run: claude mcp add openrouter-tsilva -e OPENROUTER_API_KEY='<openrouter-api-key>' -- uvx mcp-openrouter. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does OpenRouter require an API key?
Yes. It expects OPENROUTER_API_KEY, of which 1 is a secret.
›Can I use OpenRouter as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is OpenRouter in the official MCP registry?
Yes, as io.github.tsilva/mcp-openrouter.