Integration

The CloudSwap MCP server

The endpoint is https://cloudswap.ai/mcp: streamable HTTP with JSON responses. It works with any MCP client. Quote tools need no key; send Authorization: Bearer cs_live_... for higher limits and for job tools.

Any client

Most clients take this shape. Windsurf names the key serverUrl.

MCP config
{
  "mcpServers": {
    "cloudswap": {
      "url": "https://cloudswap.ai/mcp"
    }
  }
}

Talk to it by hand

Each call is one JSON-RPC message in a POST. The server needs no session.

initialize
curl -s https://cloudswap.ai/mcp \
  -H 'content-type: application/json' \
  -H 'accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1"}}}'
tools/list
curl -s https://cloudswap.ai/mcp \
  -H 'content-type: application/json' \
  -H 'accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
tools/call quote_job
curl -s https://cloudswap.ai/mcp \
  -H 'content-type: application/json' \
  -H 'accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"quote_job","arguments":{"vcpus":16,"mem_gb":32,"hours":2,"regions":["eu"]}}}' \
  | jq -r '.result.content[0].text' | jq '.choice'

Tools on the server

4 tools
ToolWhat it doesNeeds a key
quote_jobPrices a stateless job on every provider; returns the cheapest fit with its cost per run and the next best offers. Places nothing.No
list_providersLists the providers CloudSwap prices.No
run_jobRuns a stateless container job on the cheapest fitting machine, paid from prepaid credits. Not open to everyone yet.Yes
get_jobState, price, wall time and log tail of one of your jobs.Yes

API keys

A key is optional for quotes. With one you get 120 quotes a minute instead of 30, and usage history. Keys start with cs_live_. Get an API key.

Other ways in

Install the MCP

One line in Claude Code. Quotes are free today and need no sign-up.

Get an API keyRead the docs

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