# AnyRouter MCP with Windsurf

> Add the AnyRouter MCP server to Windsurf with the Cascade UI or mcp_config.json.


# Connect AnyRouter to Windsurf

1. In the **Cascade** panel, open **MCP servers → Add custom server**. Set **Name** to `anyrouter` and **Server URL** to `https://anyrouter.dev/api/v1/mcp`, then save.
2. On the next tool call, approve `anyrouter.dev/oauth/consent` (Read-only is the default).
3. Check it: ask "check the AnyRouter system status". The agent calls `get_system_status`.

Or edit `~/.codeium/windsurf/mcp_config.json` and reload Windsurf:

```json
{
  "mcpServers": {
    "anyrouter": {
      "serverUrl": "https://anyrouter.dev/api/v1/mcp"
    }
  }
}
```

## Revoke

Remove the entry from Cascade or `mcp_config.json`, and revoke the token in the [MCP dashboard](https://anyrouter.dev/dashboard/mcp). Later tool calls return `401 Unauthorized` until you reconnect.


## Related

- [AnyRouter MCP Overview](/docs/mcp.md)
- [MCP API Reference](/docs/api-reference/mcp.md)
