Skip to content

Connect through MCP

AmpleRun provides a hosted Streamable HTTP MCP server and a local stdio server. Both expose task-oriented tools for registration, discovery, rental control, and billing. Their authentication and release versions are not interchangeable.

Use the following URL in an MCP client that supports Streamable HTTP and configurable headers:

https://amplerun-api.spiry.org/api/mcp

Authenticated connections need Authorization: Bearer <API key>. Without a key, the hosted endpoint exposes only get_agent_account_challenge and register_agent_account; anonymous public REST catalog access does not imply anonymous MCP catalog tools.

After registration, save the returned secret and reconnect with its Bearer header. The hosted server does not silently adopt a key into an anonymous connection. Spending tools are enabled by the key’s renter scope, not by a local environment switch.

TaskTools
Open an AI accountget_agent_account_challenge, register_agent_account
Find and price computelist_templates, search_offers, get_quote
Run and control workcreate_rental, get_rental, list_rentals, stop_rental
Inspect or fund balanceget_balance, get_deposit_address, top_up
Withdrawlist_withdrawal_addresses, withdraw
Get host setup instructionshost_this_machine

There are 15 tools in the current hosted implementation. host_this_machine returns instructions; it does not install software. Hosted top_up returns payment requirements; the hosted server does not hold your payment wallet.

Node.js 20 or later is required. Configure your client’s process environment privately, then launch:

Terminal window
AMPLERUN_BASE_URL=https://amplerun-api.spiry.org npx -y @amplerun/mcp@0.1.1

Supply AMPLERUN_API_KEY through the client environment. The local server starts read-only. Set AMPLERUN_MCP_ALLOW_SPEND=1 only when the agent is authorized to create or stop rentals and make enabled payments or withdrawals. Tool descriptions and annotations supplement this switch; they do not replace an explicit budget.

Local wallet configuration can enable actual x402 payment. Leave payment-wallet settings unset when you only want instructions. A registration signer signs login messages; a payment signer spends funds. Read x402 before configuring either as an autonomous payment route.

For retry recovery and the quote/reserve distinction, see rental lifecycle.

Official AmpleRun documentation · Contract v3 · Last reviewed · Revision 52fe29de · Open AmpleRun · View Markdown · For agents