Integration

Use CloudSwap in Claude Code

Run one command: claude mcp add --transport http cloudswap https://cloudswap.ai/mcp. Claude Code then has the quote_job tool and can price any stateless job for you. No key is needed for quotes.

Add the server

Run this once. It adds CloudSwap for your user.

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

Add your API key (optional)

With a key, Claude Code sends it on every call.

Terminal
claude mcp add --transport http cloudswap https://cloudswap.ai/mcp \
  --header "Authorization: Bearer $CLOUDSWAP_API_KEY"

Or share it with your team

Commit .mcp.json to the repo. Claude Code reads the key from each person's environment, so it never lands in git.

.mcp.json
{
  "mcpServers": {
    "cloudswap": {
      "type": "http",
      "url": "https://cloudswap.ai/mcp",
      "headers": {
        "Authorization": "Bearer ${CLOUDSWAP_API_KEY}"
      }
    }
  }
}

Check it

The list shows cloudswap and whether it connected.

Terminal
claude mcp list

Ask

Name the job in plain words.

Prompt
Use cloudswap to quote a 16 vCPU, 32 GB job that runs 2 hours in the EU. Spot is OK.

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