MCP servers · OpenRouter · MCP server
Connect Windsurf to OpenRouter
One line gives Windsurf your OpenRouter account as tools: 6 endpoints, chat, models, embed, called with your own connection. No key in the prompt, a receipt for every call, revoke Windsurf's access alone any time.
Three steps
- Create a free 0n3 account and connect OpenRouter. Paste a key or sign in; it lands in your vault, encrypted.
- Install 0n3 into Windsurf. The mcp_config.json block.
- Ask Windsurf: whoami. Then: "Chat completion in OpenRouter".
Write it yourself · ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"0n3": {
"serverUrl": "https://0n3.app/mcp",
"headers": {
"Authorization": "Bearer <your 0n token>"
}
}
}
}The line above carries a placeholder; 0n3.app/install mints a real key named for Windsurf and fills it in.
What Windsurf can then do in OpenRouter
Chat · Chat completions1
Chat completion
POST /chat/completionsModels · List available models3
List models
GET /modelsList my models
GET /models/userList embedding models
GET /embeddings/modelsEmbed · Text embeddings0
Text embeddings
More · Everything else this app exposes.2
Create an embedding
POST /embeddingsCreate a response
POST /responsesOpenRouter in other AI clients
Claude Code + OpenRouterMCP server + skillClaude (desktop & claude.ai) + OpenRouterconnectorChatGPT + OpenRouterconnector · GPT actionGrok Bot (xAI) + OpenRoutercustom connectorCodex CLI + OpenRouterMCP serverGemini CLI + OpenRouterMCP serverCursor + OpenRouterMCP serverVS Code (Copilot) + OpenRouterMCP server
