AnyRouter MCP with Cursor
Add the AnyRouter MCP server to Cursor via the Settings UI or by editing ~/.cursor/mcp.json.
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.
RelatedLiên quan相关
AnyRouter MCP with Claude DesktopAdd the AnyRouter MCP server to Claude Desktop via the built-in Connectors UI, or with a manual mcp-remote bridge.AnyRouter MCP with Claude CodeAdd the AnyRouter MCP server to Claude Code (CLI) with one command or by editing .mcp.json.AnyRouter MCP with OpenCodeAdd the AnyRouter MCP server to OpenCode via a project-local or global opencode.json.AnyRouter MCP with other clientsConnect any MCP-aware client to AnyRouter using the standard remote HTTP transport, OAuth, or a static API key.