AnyRouter MCP with Windsurf
Add the AnyRouter MCP server to Windsurf via the Cascade Settings UI or by editing ~/.codeium/windsurf/mcp_config.json.
Windsurf (Codeium) exposes MCP through the Cascade panel, and you can reach the same result by editing ~/.codeium/windsurf/mcp_config.json directly.
- Open Windsurf and click the Cascade icon in the sidebar.
- Open the MCP servers panel and click Add custom server.
- Fill in the details:
- Name:
anyrouter - Server URL:
https://anyrouter.dev/api/v1/mcp
- Name:
- Save. On the next tool invocation, Windsurf opens
anyrouter.dev/oauth/consent— pick a permission level (Read-only is the default and safest) and click Allow.
-
Open (or create)
~/.codeium/windsurf/mcp_config.json. -
Add the AnyRouter server:
{ "mcpServers": { "anyrouter": { "serverUrl": "https://anyrouter.dev/api/v1/mcp" } } } -
Reload Windsurf. The next tool call triggers the OAuth flow at
anyrouter.dev/oauth/consent.
Verify
In any Cascade chat, ask "check the AnyRouter system status". The agent calls get_system_status and surfaces the health snapshot inline.
Revoke
- Windsurf side — remove the entry from the Cascade MCP panel, or delete it from
mcp_config.json. - AnyRouter side — revoke the OAuth token from the MCP dashboard. Subsequent tool calls return
401 Unauthorizeduntil you reconnect.
Related
- MCP overview — what the server does and which tools are exposed
- MCP API reference — full tool schemas, scope tables, manual auth