spotgpu-mcp
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.
Install / run
Requires Python 3.10+ and a SpotGPU API key (sk_… from https://spotgpu-api.fly.dev).
One-shot (after PyPI publish)
uvx spotgpu-mcp
Local (this monorepo package)
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).
Claude Desktop
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_…"
}
}
}
}
Cursor
Add to .cursor/mcp.json (or user MCP config):
{
"mcpServers": {
"spotgpu": {
"command": "uvx",
"args": ["spotgpu-mcp"],
"env": {
"SPOTGPU_API_KEY": "sk_…"
}
}
}
}
Tool: 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, …).
Attribution
Requests send X-SpotGPU-Client: mcp-spotgpu.
Not published yet
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.
Release files for spotgpu-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spotgpu_mcp-0.1.0.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spotgpu_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / spotgpu_mcp-0.1.0.tar.gz
| Download URL | spotgpu_mcp-0.1.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a9a4f02a1f80aff8a23e76c589b9ba58b6f04ff0ccede89c9d0613ae59094d7
|
|
BLAKE2b-256 checksum How to use checksums |
c9aaceab823c1eb529280ee8035fac4698e296fa156c19272db63ab44ba623c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / spotgpu_mcp-0.1.0-py3-none-any.whl
| Download URL | spotgpu_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13af6a8efb35a9aa95c30e63bd8a1e04a5374aaa7af39ff14ab0c0dc9b498f60
|
|
BLAKE2b-256 checksum How to use checksums |
942a815346b4549de247ea08356b3ed886551a1fcabd70a14ab3fd689b1b3d28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|