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.
{
"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.
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"}}}'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"}'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| 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