MCP Server
CheapestInference exposes its catalog and subscription flow as a remote MCP server. From Claude Code, Claude Desktop, Cursor, or any MCP-capable agent you can browse pools, get a live USDC quote, complete a subscription, and retrieve connection snippets — without leaving your client.
Inference itself is NOT served over MCP. Once you have a key, point your OpenAI-compatible client at the base URL (the
get_connection_infotool hands you ready-to-paste snippets).
Endpoint
Section titled “Endpoint”https://api.cheapestinference.com/mcpTransport: Streamable HTTP, stateless, no authentication to connect. Management tools take your API key as a tool argument.
Add it to your client
Section titled “Add it to your client”Claude Code
claude mcp add --transport http cheapestinference https://api.cheapestinference.com/mcpCursor / generic JSON config
{ "mcpServers": { "cheapestinference": { "url": "https://api.cheapestinference.com/mcp" } }}| Tool | Auth | What it does |
|---|---|---|
list_pools | none | Active pools with per-block USDC prices (live) and availability |
get_pool | none | One pool in detail: models, blocks, what the subscription includes |
get_crypto_quote | none | Exact USDC amount, payment address on Base, and the claim message to sign |
confirm_crypto_subscription | wallet signature | Verifies your payment on-chain and returns your API key |
get_card_checkout_link | none | Dashboard URL to finish a card subscription in a browser |
get_subscription_status | API key | Pool, reserved blocks, expiry, renewal semantics for your key |
get_connection_info | optional API key | Base URLs + client snippets (OpenAI SDK, Claude Code, curl) |
Subscribing with USDC, end to end
Section titled “Subscribing with USDC, end to end”list_pools→ pick a pool and one or more daily blocks.get_crypto_quote→ returns the exact USDC amount and thepayToaddress on Base, plus a claim message template.- Send the USDC (ERC-20) transfer from your wallet.
- Sign the claim message (EIP-191, with the transaction hash filled in) using the same wallet that paid.
confirm_crypto_subscriptionwithtx_hash,pool_slug,blocks,signature→ your API key for the Unlimited pool, ready to use during your reserved blocks.
USDC subscriptions are one-time 30-day purchases — renew by repeating the flow. Card subscriptions (via get_card_checkout_link) auto-renew until cancelled.
Prefer plain HTTP? The same flow exists as REST endpoints — see Agent subscriptions and x402 for pay-per-request without any subscription.