Integration
Use CloudSwap in Cursor
Add a cloudswap entry with the URL https://cloudswap.ai/mcp to ~/.cursor/mcp.json, or to .cursor/mcp.json in one project. The Cursor agent can then quote jobs with the quote_job tool.
Add the server
Put this in ~/.cursor/mcp.json for every project, or in .cursor/mcp.json for one project.
{
"mcpServers": {
"cloudswap": {
"url": "https://cloudswap.ai/mcp"
}
}
}Add your API key (optional)
Keep this in your user file, not in a repo.
{
"mcpServers": {
"cloudswap": {
"url": "https://cloudswap.ai/mcp",
"headers": {
"Authorization": "Bearer cs_live_..."
}
}
}
}Ask the agent
Cursor calls the tool when the prompt names it.
Use cloudswap to find the cheapest 1x H100 for a 4 hour job, datacenter hosts only.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