MCP server and HTTP API for coding agents

Put each job on the cheapest cloud that fits

Your agent sends a job spec. CloudSwap prices every provider and returns the cheapest place that fits, with the cost per run. For Claude Code, Cursor and any MCP client.

Add CloudSwap to your agent

claude mcp add --transport http cloudswap https://cloudswap.ai/mcp

Quotes are free. No sign-up, no account.See today's prices

Cheapest right now

Today's prices

The cheapest offers for each job size, across every provider CloudSwap prices. CloudSwap charges no fee today.

Loading prices




    Try a quote

    The same request your agent sends. It prices the job and places nothing.

    Free. No sign-up.

    Run the quote to see the cheapest fit, its cost per run and the next best offers.

    This request as curl
    curl -s https://cloudswap.ai/api/quote \
      -H 'content-type: application/json' \
      -d '{"vcpus":16,"mem_gb":32,"hours":2,"spot_ok":true,"trust":"any"}'

    How it works

    1. 1

      Your agent sends a job spec

      vCPUs, RAM, an optional GPU type and count, hours, a max price per hour, regions, spot or not, and any host or datacenter only.

    2. 2

      CloudSwap prices every provider

      AWS EC2 on-demand and spot, Vast.ai, RunPod, Shadeform, Hetzner and DigitalOcean, all against the same spec.

    3. 3

      It returns the cheapest fit

      One pick with its cost per run, plus the next best offers.

    Stateless jobs only: containers, batch, CI and GPU jobs. CloudSwap never moves live databases.

    Our own jobs, Nov 16-29 2026

    65% to 70% less

    Two weeks of our own batch jobs: 86 billed hours that cost $70.00 on AWS. CloudSwap's picks would have cost $21.35 to $24.65, using datacenter hosts only.

    • 9of those launches failed for lack of AWS capacity. A router would have placed them elsewhere.
    • 66% lessfor the same 16-core job on the same Intel CPU: AWS spot picked by CloudSwap ($0.012) against AWS on-demand ($0.036). Measured run, 2026-11-30.

    API

    Plain JSON over HTTPS. Quotes are public: no sign-up, no account.

    POST/api/quote

    Prices one job on every provider. Returns the cheapest fit as choice, the next best offers as ranked, and provider_errors for any provider that did not answer.

    FieldTypeNotes
    vcpusintegerRequired. At least 1.
    mem_gbnumberRequired. RAM in GB.
    gpu_typestringOptional: "RTX 4090", "L40S", "A100", "H100" or "H200". Leave out for CPU jobs.
    gpu_countintegerNeeded when gpu_type is set. At least 1.
    hoursnumberExpected run time. Default 1.
    max_price_hrnumberOptional cap in USD per hour.
    regionsarrayOptional: "us", "eu" or both. Leave out for any region.
    spot_okbooleanThe job can be interrupted and re-run. Default true.
    truststring"any" or "datacenter" (no peer hosts). Default "any".
    {
      "ok": true,
      "choice": {
        "provider": "aws", "sku": "c7i.4xlarge (spot)",
        "region": "eu-west-2", "geo": "eu", "price_hr": 0.193,
        "interruptible": true, "trust": "datacenter", "source": "live-api",
        "job_cost_usd": 0.39, "wall_hours": 2.0
      },
      "ranked": [ ...the best offers in order, same fields... ],
      "provider_errors": {},
      "offers_seen": 120,
      "offers_fit": 14
    }

    Example values. A spec that fails validation returns HTTP 400 with {"ok": false, "errors": [...]}. Too many requests return HTTP 429 with {"error": "rate limited"}.

    GET/api/board

    The price board on this page as JSON: the snapshot time, each provider's status, and the cheapest offers per job size. Open /api/board

    MCPhttps://cloudswap.ai/mcp

    Streamable HTTP endpoint for agents. Two tools: quote_job takes the same fields as /api/quote, and list_providers lists the providers CloudSwap prices.

    Questions

    Is it free?

    Quotes are free and public, with no sign-up and no account. CloudSwap charges no fee today.

    Does it deploy my job?

    Not for the public yet. Today CloudSwap returns quotes only. It does not start, stop or buy anything.

    Which providers does it price?

    AWS EC2 on-demand and spot, Vast.ai, RunPod for GPUs, and Shadeform, which covers 20+ GPU clouds. All of those are live. Hetzner and DigitalOcean are dated list prices.

    Do you move databases?

    No. CloudSwap handles stateless jobs only: containers, batch, CI and GPU jobs. It never moves live databases.

    How fresh are the prices?

    The board shows the age of its snapshot. Prices from live APIs are refreshed about hourly. List prices show the date they were read.

    Add CloudSwap to your agent

    One line. Quotes are free and there is nothing to sign up for.

    claude mcp add --transport http cloudswap https://cloudswap.ai/mcp