Skip to content

Unify API

One MCP server for your agent.

Add one MCP server URL to your agent to browse models, manage keys and check credits from inside the tool.

POST /api/v1/mcp
{removed:   "mcpServers": {}added:   "mcpServers": {added:     "anyrouter": {added:       "url": "https://anyrouter.dev/api/v1/mcp"added:     }added:   }}
Full MCP setup

What came back

The cURL tab above, run on prod on 2026-10-31 with a Go key. Only the fields shown are kept, and long values are cut with "…".

captured from prod
HTTP 200
mcp-protocol-version: 2026-07-28

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "tools": [
      "list_models",
      "recommend_model",
      "list_okf_concepts",
      "get_okf_concept",
      "publish_artifact",
      "list_artifacts",
      "get_artifact",
      "delete_artifact",
      "set_artifact_visibility",
      "get_system_status"
    ]
  }
}
mcp-protocol-version
The MCP protocol version the server speaks.

What works

  • OAuth sign-in on first tool call
  • Model tools on any key; account tools (get_credits, create_key) after OAuth sign-in

Decisions models

Not a chat. Send a situation and a question with fixed choices, and get a probability for each choice back. Decisions are free on Go and up, with a 5-request trial on Free.

POST /api/v1/decisions
curl https://anyrouter.dev/api/v1/decisions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "hal-x/thx-01", "state": "My card was charged twice",
    "questions": {"team": {"type": "choice", "criteria": {"billing": "Payments", "tech": "API problems"}}}}'

# {"answers": {"team": {"type": "choice", "choice": "billing", "probabilities": {"billing": 0.97, "tech": 0.03}}}, "model": "hal-x/thx-01", "status": "completed"}

Related docs and use cases

Next