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.

~/.cursor/mcp.json
{
  "mcpServers": {
    "cloudswap": {
      "url": "https://cloudswap.ai/mcp"
    }
  }
}

Add your API key (optional)

Keep this in your user file, not in a repo.

~/.cursor/mcp.json
{
  "mcpServers": {
    "cloudswap": {
      "url": "https://cloudswap.ai/mcp",
      "headers": {
        "Authorization": "Bearer cs_live_..."
      }
    }
  }
}

Ask the agent

Cursor calls the tool when the prompt names it.

Prompt
Use cloudswap to find the cheapest 1x H100 for a 4 hour job, datacenter hosts only.

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