{"slug": "show-hn-cloudswap-an-mcp-server-that-finds-the-cheapest-cloud-for-a-job", "title": "Show HN: CloudSwap, an MCP server that finds the cheapest cloud for a job", "summary": "CloudSwap launched as an MCP server and public HTTPS API that prices a compute job across AWS EC2 on-demand and spot, Vast.ai, RunPod and Shadeform, then runs it on the cheapest fitting provider. CloudSwap reported that two weeks of its own batch jobs totaling 86 billed hours cost $70.00 on AWS direct but would have cost $23.49 to $27.12 at CloudSwap prices, and that the same 16-core job ran at $0.0133 per run versus $0.0356 on AWS on-demand direct, a 63% reduction measured on 2026-11-30. Quotes are free and require no account, while running jobs requires an API key and prepaid credits starting at $5; CloudSwap handles only stateless containers, batch, CI and GPU jobs, not live databases.", "body_md": "Cut your AWS bill now.The same job ran 63% cheaper than AWS on-demand.\n\nSend the job from your agent, script or CI. CloudSwap runs it on the cheapest cloud that fits: AWS spot, Vast.ai, RunPod or Shadeform. You pay per run from prepaid credits, from $5.\n\nTwo weeks of our own batch jobs: 86 billed hours, billed at $70.00 on AWS direct. At CloudSwap prices, the same jobs would have cost $23.49 to $27.12, using datacenter hosts only.\n\nAWS direct, as billed$70.00\n\nAt CloudSwap prices$23.49 to $27.12\n\nSame 86 billed hours, drawn to scale. The hatched part is the range between the low and the high pick.\n\n9of those launches failed for lack of AWS capacity. A router would have placed them elsewhere.\n\n63% lessfor the same 16-core job on the same Intel CPU: $0.0133 per run at the CloudSwap price, on AWS spot picked by CloudSwap, against $0.0356 on AWS on-demand direct. Measured run, 2026-11-30.\n\nAPI\n\nPlain JSON over HTTPS. Quotes are public: no sign-up, no account.\n\nPOST/api/quote\n\nPrices 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.\n\nField\n\nType\n\nNotes\n\nvcpus\n\ninteger\n\nRequired. At least 1.\n\nmem_gb\n\nnumber\n\nRequired. RAM in GB.\n\ngpu_type\n\nstring\n\nOptional: \"RTX 4090\", \"L40S\", \"A100\", \"H100\" or \"H200\". Leave out for CPU jobs.\n\ngpu_count\n\ninteger\n\nNeeded when gpu_type is set. At least 1.\n\nhours\n\nnumber\n\nExpected run time. Default 1.\n\nmax_price_hr\n\nnumber\n\nOptional cap in USD per hour.\n\nregions\n\narray\n\nOptional: \"us\", \"eu\" or both. Leave out for any region.\n\nspot_ok\n\nboolean\n\nThe job can be interrupted and re-run. Default true.\n\ntrust\n\nstring\n\n\"any\" or \"datacenter\" (no peer hosts). Default \"any\".\n\n```\n{\n  \"ok\": true,\n  \"choice\": {\n    \"provider\": \"aws\", \"sku\": \"c7i.4xlarge (spot)\",\n    \"region\": \"eu-west-2\", \"geo\": \"eu\", \"price_hr\": 0.193,\n    \"interruptible\": true, \"trust\": \"datacenter\", \"source\": \"live-api\",\n    \"job_cost_usd\": 0.39, \"wall_hours\": 2.0\n  },\n  \"ranked\": [ ...the best offers in order, same fields... ],\n  \"provider_errors\": {},\n  \"offers_seen\": 120,\n  \"offers_fit\": 14\n}\n```\n\nExample values. A spec that fails validation returns HTTP 400 with {\"ok\": false, \"errors\": [...]}. Too many requests return HTTP 429 with {\"error\": \"rate limited\"}.\n\nGET/api/board\n\nThe price board on this page as JSON: the snapshot time, each provider's status, and the cheapest offers per job size. Open /api/board\n\nMCPhttps://cloudswap.ai/mcp\n\nStreamable HTTP endpoint for agents. Four tools: quote_job takes the same fields as /api/quote, list_providers lists the providers CloudSwap prices, and run_job / get_job run a job and report on it. They need an API key and prepaid credits.\n\nQuestions\n\nWhat does it cost?\n\nQuotes are free and public, with no sign-up and no account. Running jobs uses prepaid credits: you pay only for the jobs you run, at the price in the quote. No subscription. Buy credits from $5 on your account page. Quotes stay free. See pricing.\n\nDoes it run my job?\n\nYes. With an API key and prepaid credits, CloudSwap runs the job on the cheapest offer that fits and fails over to the next one. A quote alone starts nothing.\n\nWhich providers does it price?\n\nAWS EC2 on-demand and spot, Vast.ai, RunPod, and Shadeform, which resells Lambda, Nebius, Scaleway, Denvr, Massed Compute, Verda and others. All of those are live. Hetzner and DigitalOcean are dated list prices. Google Cloud is not priced yet.\n\nDo you move databases?\n\nNo. CloudSwap handles stateless jobs only: containers, batch, CI and GPU jobs. It never moves live databases.\n\nHow fresh are the prices?\n\nThe board shows the age of its snapshot. Prices from live APIs are refreshed every 15 minutes. List prices show the date they were read.\n\nAdd CloudSwap to your agent\n\nOne line. Quotes are free and there is nothing to sign up for.", "url": "https://wpnews.pro/news/show-hn-cloudswap-an-mcp-server-that-finds-the-cheapest-cloud-for-a-job", "canonical_source": "https://cloudswap.ai/", "published_at": "2026-12-01 20:59:42+00:00", "updated_at": "2026-12-01 21:16:52.511573+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-infrastructure", "ai-tools"], "entities": ["CloudSwap", "AWS", "Vast.ai", "RunPod", "Shadeform", "Lambda", "Nebius", "Hetzner"], "also_reported_by": [], "takeaway": "CloudSwap's MCP endpoint at https://cloudswap.ai/mcp exposes four tools — quote_job, list_providers, run_job and get_job — with quotes free and unauthenticated while run_job and get_job require an API key and prepaid credits.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-cloudswap-an-mcp-server-that-finds-the-cheapest-cloud-for-a-job", "markdown": "https://wpnews.pro/news/show-hn-cloudswap-an-mcp-server-that-finds-the-cheapest-cloud-for-a-job.md", "text": "https://wpnews.pro/news/show-hn-cloudswap-an-mcp-server-that-finds-the-cheapest-cloud-for-a-job.txt", "jsonld": "https://wpnews.pro/news/show-hn-cloudswap-an-mcp-server-that-finds-the-cheapest-cloud-for-a-job.jsonld"}}