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.
claude mcp add --transport http cloudswap https://cloudswap.ai/mcpAdd your API key (optional)
With a key, Claude Code sends it on every call.
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.
{
"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.
claude mcp listAsk
Name the job in plain words.
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| Tool | What it does | Needs a key |
|---|---|---|
quote_job | Prices a stateless job on every provider; returns the cheapest fit with its cost per run and the next best offers. Places nothing. | No |
list_providers | Lists the providers CloudSwap prices. | No |
run_job | Runs a stateless container job on the cheapest fitting machine, paid from prepaid credits. Not open to everyone yet. | Yes |
get_job | State, 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.
claude mcp add --transport http cloudswap https://cloudswap.ai/mcp