Spot GPU rental prices (Vast + RunPod) via SpotGPU GET /v1/spot
MCP (Model Context Protocol) server for SpotGPU spot GPU rental prices.
Exposes one tool: spot_price → GET /v1/spot (Vast + RunPod best + alts).
Credits ≠ rental. SpotGPU API credits pay for price lookups.
usd_per_hris the upstream provider rental price, not a SpotGPU fee.
Requires Python 3.10+ and a SpotGPU API key (sk_… from https://spotgpu-api.fly.dev).
uvx spotgpu-mcp
cd packages/mcp-spotgpu
uv sync # or: pip install -e .
export SPOTGPU_API_KEY=sk_…
spotgpu-mcp
Env:
| Variable | Required | Default |
|---|---|---|
SPOTGPU_API_KEY | yes | — |
SPOTGPU_BASE_URL | no | https://spotgpu-api.fly.dev |
Never hardcode keys. The server speaks MCP on stdio only (do not print to stdout).
Add to claude_desktop_config.json:
{
"mcpServers": {
"spotgpu": {
"command": "uvx",
"args": ["spotgpu-mcp"],
"env": {
"SPOTGPU_API_KEY": "sk_…"
}
}
}
}
Local editable install instead of uvx:
{
"mcpServers": {
"spotgpu": {
"command": "uv",
"args": ["run", "--directory", "/path/to/spotgpu/packages/mcp-spotgpu", "spotgpu-mcp"],
"env": {
"SPOTGPU_API_KEY": "sk_…"
}
}
}
}
Add to .cursor/mcp.json (or user MCP config):
{
"mcpServers": {
"spotgpu": {
"command": "uvx",
"args": ["spotgpu-mcp"],
"env": {
"SPOTGPU_API_KEY": "sk_…"
}
}
}
}
spot_price| Param | Type | Default | Notes |
|---|---|---|---|
gpu | string | required | e.g. RTX_4090 |
qty | int | 1 | ≥ 1 |
markets | string | "vast,runpod" | comma-separated |
fresh | bool | false | maps to fresh=1 |
On success returns JSON text of the API body (best.usd_per_hr, alts, …).
Requests send X-SpotGPU-Client: mcp-spotgpu.
PyPI / Official MCP Registry / Smithery / Glama publish is deferred until Biz Bot approval. server.json and glama.json stubs are in this package for later.
io.github.flowtestpro-svg/spotgpu-mcpSource-derived launch command. Check the maintainer’s required arguments and credentials before running:
uvx spotgpu-mcpMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-flowtestpro-svg-spotgpu-mcp": {
"command": "uvx",
"args": [
"spotgpu-mcp"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referenceSpotGPU works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.