# AnyRouter MCP with Cline

> Add the AnyRouter MCP server to Cline in VS Code.


# Connect AnyRouter to Cline

1. In the Cline panel, click the **MCP Servers** icon, then **Remote Servers → Add Remote Server**.
2. Set **Server Name** to `anyrouter` and **Server URL** to `https://anyrouter.dev/api/v1/mcp`, then click **Add Server**.
3. On the next tool call, approve `anyrouter.dev/oauth/consent` (Read-only is the default).
4. Check it: ask "list AnyRouter models that support vision". The agent calls `list_models`.

Or click **Configure MCP Servers** and edit `cline_mcp_settings.json`; Cline reloads it without a restart:

```json
{
  "mcpServers": {
    "anyrouter": {
      "url": "https://anyrouter.dev/api/v1/mcp",
      "type": "streamableHttp",
      "disabled": false
    }
  }
}
```

## Revoke

Remove the entry (or set `"disabled": true`), 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)
