AnyRouter MCP with Cursor
Add the AnyRouter MCP server to Cursor via the Settings UI or by editing ~/.cursor/mcp.json.
Connect AnyRouter to Cursor
Cursor exposes MCP through a Settings UI, and you can reach the same result by editing ~/.cursor/mcp.json directly — pick whichever you prefer below.
- Open Cursor Settings → MCP & Integrations → Add Custom MCP.
- Fill in the details:
- Name:
anyrouter - URL:
https://anyrouter.dev/api/v1/mcp
- Name:
- Click Save. Cursor opens your browser at
anyrouter.dev/oauth/consent— pick a permission level (Read-only is the default and safest) and click Allow.
-
Open (or create)
~/.cursor/mcp.json. -
Add the AnyRouter server:
{ "mcpServers": { "anyrouter": { "url": "https://anyrouter.dev/api/v1/mcp" } } } -
Reload Cursor. The next tool call triggers the OAuth flow at
anyrouter.dev/oauth/consent— pick a permission level and click Allow.
Verify
In any Cursor chat, ask "list my AnyRouter API keys". The agent calls list_keys and surfaces the result inline. The tools you can reach depend on the permission level you granted at consent.
Revoke
Disconnecting has two layers:
- Cursor side — remove the entry from Settings → MCP & Integrations, or delete it from
~/.cursor/mcp.json. - AnyRouter side — revoke the OAuth token from the MCP dashboard. This invalidates the connection immediately; any later tool call from Cursor returns
401 Unauthorizeduntil you reconnect.
AnyRouter MCP with Cline
Add the AnyRouter MCP server to Cline (VS Code extension) via the MCP Servers panel or cline_mcp_settings.json.
MCP Gateway — connect your tools once
Point any MCP client at one URL and get AnyRouter's native tools plus every connected third-party MCP server, with auth managed for you.