Skip to content

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_info tool hands you ready-to-paste snippets).

https://api.cheapestinference.com/mcp

Transport: Streamable HTTP, stateless, no authentication to connect. Management tools take your API key as a tool argument.

Claude Code

Terminal window
claude mcp add --transport http cheapestinference https://api.cheapestinference.com/mcp

Cursor / generic JSON config

{
"mcpServers": {
"cheapestinference": { "url": "https://api.cheapestinference.com/mcp" }
}
}
ToolAuthWhat it does
list_poolsnoneActive pools with per-block USDC prices (live) and availability
get_poolnoneOne pool in detail: models, blocks, what the subscription includes
get_crypto_quotenoneExact USDC amount, payment address on Base, and the claim message to sign
confirm_crypto_subscriptionwallet signatureVerifies your payment on-chain and returns your API key
get_card_checkout_linknoneDashboard URL to finish a card subscription in a browser
get_subscription_statusAPI keyPool, reserved blocks, expiry, renewal semantics for your key
get_connection_infooptional API keyBase URLs + client snippets (OpenAI SDK, Claude Code, curl)
  1. list_pools → pick a pool and one or more daily blocks.
  2. get_crypto_quote → returns the exact USDC amount and the payTo address on Base, plus a claim message template.
  3. Send the USDC (ERC-20) transfer from your wallet.
  4. Sign the claim message (EIP-191, with the transaction hash filled in) using the same wallet that paid.
  5. confirm_crypto_subscription with tx_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.