MCP
Install AgentRouter in Claude, Cursor, Codex, and other MCP-compatible clients
AgentRouter MCP exposes the AgentRouter capability catalog to MCP-compatible runtimes through one hosted remote endpoint:
URL Model
AgentRouter intentionally splits the MCP experience into two public surfaces:
- docs page:
https://docs.agentrouter.to/integrations/mcp - hosted MCP endpoint and detail page:
https://mcp.agentrouter.to
Humans can open https://mcp.agentrouter.to in a browser, and MCP clients can install the same URL.
Install Commands
Use the Claude CLI command when you are installing directly into Claude. If your client supports a generic MCP installer flow, the hosted endpoint is the same.
Claude CLI
Generic installer
Local stdio fallback
Set your API key in the shell first:
Then add the remote MCP server:
Recommended Setup
Install the hosted endpoint
If you are in Claude CLI, use the explicit claude mcp add command above.
If you are in a client with a generic MCP installer flow, use:
Authenticate with AgentRouter
Hosted remote MCP expects a Bearer token.
If your client lets you configure request headers, send:
For local stdio, pass the same key through AGENTIC_API_KEY.
Tool Model
The preferred MCP abstraction is:
Examples:
email_send_recommendemail_send_executebroadcast_message_quote_executebroadcast_message_send_recommendmodels_chat_complete_executemodels_code_complete_executemodels_list_executegeo_time_current_executegeo_time_convert_executetext_analyze_recommendtranslation_text_rephrase_executemedia_image_generate_executemedia_image_edit_executesearch_answer_recommendweb_scrape_executeweb_extract_executeenrichment_people_enrich_executeenrichment_company_enrich_execute
Generic fallback tools still exist:
recommend_capability_routeexecute_capability
But explicit capability tools are the better default because agents fill them more reliably.
For broadcast, quote is the safe default tool. As of May 1, 2026, broadcast.message.send should remain a recommend-or-review step because one live execute creates a real public post and the latest observed send challenge was about $40.96.
For translation, translation_text_rephrase_execute is the live DeepL Write path after the May 5, 2026 paid route-by-route retest. Use route context so the MCP client sends targetLanguage and tone exactly as exposed.
For models, DeepSeek chat completion, code completion, and model listing are live through generated tools when the hosted catalog exposes the models domain. Use route context to choose supported model ids such as deepseek-v4-flash.
For geo time, Abstract Timezone current-time and convert-time are live through generated tools when the hosted catalog exposes the geo domain. Use route context before pinning geo.time.current.abstract-timezone.mpp or geo.time.convert.abstract-timezone.mpp; both routes charged 6 credits in the May 9, 2026 paid smoke.
For text analysis, use text_analyze_recommend or the generic recommend_capability_route path. Do not execute text.analyze.diffbot-nl.mpp until canExecuteNow is true and paid smoke evidence exists; direct Diffbot NL MPP wrapper checks returned HTTP 429 before payment on May 5, 2026.
For media, fal image generation and edit are live through media.image.generate.fal.mpp and media.image.edit.fal.mpp. Treat media.video.generate.fal.mpp as gated until route context reports canExecuteNow=true; the current blocker is upstream paymentauth 524 evidence reproduced outside AgentRouter.
For web extraction and Diffbot KG enrichment, use route context before pinning web.extract.diffbot.mpp, enrichment.people.enrich.diffbot.mpp, or enrichment.company.enrich.diffbot.mpp.
Geo Example: Abstract Timezone Conversion
If your MCP client exposes generated geo tools from the live catalog, the execute tool will typically look like:
When a client does not expose the explicit generated tool, use the generic execute fallback:
Media Example: fal Image Generation
If your MCP client exposes generated media tools from the live catalog, the execute tool will typically look like:
When a client does not expose the explicit generated tool, use the generic execute fallback:
Text Analysis Example: Diffbot NL Recommend
If your MCP client exposes generated text tools from the catalog, the recommend tool will typically look like:
When a client does not expose the explicit generated tool, use the generic recommendation fallback:
Diffbot Example: Web Extract And KG Enrichment
If your MCP client exposes generated web and enrichment tools from the live catalog, the execute tool names will typically look like:
When a client does not expose the explicit generated tool, use the generic execute fallback:
Travel Example: FlightAPI Airport Operations
If your MCP client exposes generated travel tools from the live catalog, the recommend tool for this capability will typically look like:
When you need to pin execution to the live FlightAPI route, the generic execute fallback is the safest explicit form:
FlightAPI airport operations passed a May 8, 2026 production smoke through travel.airport.operations.flightapi.mpp. Use route context first, then pin the route when the human chooses FlightAPI or asks for this concrete airport schedule path.
Authentication Rules
Hosted remote MCP
Use the hosted endpoint:
Do not treat remote MCP as “put an API key into every tool payload”. Authenticate the MCP connection itself.
Local stdio fallback
When you need a local process instead of the hosted endpoint, use:
Provide:
Use @agentrouter/mcp-server when you need the local stdio fallback instead of the hosted remote endpoint.
Compatible Clients
The integration is designed for MCP-compatible clients such as:
- Claude Desktop
- Claude CLI
- Cursor
- Windsurf
- Codex CLI
- Gemini CLI
- Claude Code
Practical Rule
Use the hosted remote MCP endpoint by default.
Use the local stdio package only when your client or operator workflow specifically requires a local MCP server process.