Skip to content
Windsurf

OpenRouter for Windsurf

io.github.tsilva/mcp-openrouter

MCP server providing access to 300+ AI models via OpenRouter

client:Windsurf transport:stdio runtime:pypi

Install OpenRouter in Windsurf

~/.codeium/windsurf/mcp_config.json · windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "mcp-openrouter": {
      "command": "uvx",
      "args": [
        "mcp-openrouter"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>",
        "DEFAULT_TEXT_MODEL": "<DEFAULT_TEXT_MODEL>",
        "DEFAULT_IMAGE_MODEL": "<DEFAULT_IMAGE_MODEL>",
        "DEFAULT_CODE_MODEL": "<DEFAULT_CODE_MODEL>",
        "DEFAULT_VISION_MODEL": "<DEFAULT_VISION_MODEL>",
        "DEFAULT_EMBEDDING_MODEL": "<DEFAULT_EMBEDDING_MODEL>"
      }
    }
  }
}

Global only — Windsurf has no per-project MCP config. Refresh Cascade after saving. Windsurf docs

OpenRouter in other clients