Server data from the Official MCP Registry
Rent a per-minute GPU from your MCP client, run a job, download results, shut it down.
About
Rent a per-minute GPU from your MCP client, run a job, download results, shut it down.
Security Report
CloudGPU MCP is a Developer Tools server that rents GPUs and runs commands on them over SSH, which matches its stated purpose. Its main risk is by design: run_command executes arbitrary bash as root on rented instances, and the API key is stored in plaintext on disk. Several source files (guards.js, api.js, ssh.js, credentials.js) and most of cli-core.js were not provided, so the redaction, command-check and file-permission claims could not be verified. Supply chain analysis found 1 known vulnerability in dependencies (0 critical, 1 high severity). Package verification found 1 issue.
5 files analyzed · 7 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
What You'll Need
Set these up before or after installing:
Environment variable: CLOUDGPU_API_KEY
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-mrhy7176-cloudgpu-mcp": {
"env": {
"CLOUDGPU_API_KEY": "your-cloudgpu-api-key-here"
},
"args": [
"-y",
"cloudgpu-mcp"
],
"command": "npx"
}
}
}Documentation
View on GitHubFrom the project's GitHub README.
CloudGPU MCP
CloudGPU MCP server: let an AI agent rent a GPU by the minute, run a job, bring the results back and shut the GPU down. The same API key and balance also cover CloudGPU's OpenAI-compatible model API, so an agent can call a hosted model without renting anything.
"Fine-tune a 7B base model with LoRA on data/train.jsonl and put the adapter in ./outputs."
The agent checks live prices and quotes you, rents the GPU once you say yes, uploads your code and data, starts training in the background, watches the logs, downloads the adapter and destroys the instance. You get the files and the final cost.
It is a local (stdio) MCP server. It works with any MCP client that can start one: Claude Code, Cursor, Cline, opencode, goose, VS Code, Windsurf and others.
Install
- Create an API key at cloudgpu.app/api and add a prepaid balance (card or USDT).
- Add the server to your client. Node.js 18 or newer is required. The key goes in the environment variable
CLOUDGPU_API_KEY.
claude mcp add cloudgpu --env CLOUDGPU_API_KEY=cgw-sk-... -- npx -y cloudgpu-mcp
{
"mcpServers": {
"cloudgpu": {
"command": "npx",
"args": ["-y", "cloudgpu-mcp"],
"env": { "CLOUDGPU_API_KEY": "cgw-sk-..." }
}
}
}
{
"mcpServers": {
"cloudgpu": {
"command": "npx",
"args": ["-y", "cloudgpu-mcp"],
"env": { "CLOUDGPU_API_KEY": "cgw-sk-..." }
}
}
}
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"cloudgpu": {
"type": "local",
"command": ["npx", "-y", "cloudgpu-mcp"],
"environment": { "CLOUDGPU_API_KEY": "cgw-sk-..." },
"enabled": true
}
}
}
extensions:
cloudgpu:
name: cloudgpu
type: stdio
cmd: npx
args: ["-y", "cloudgpu-mcp"]
envs:
CLOUDGPU_API_KEY: "cgw-sk-..."
enabled: true
timeout: 300
- Optional but recommended: copy
rules/cloudgpu.mdinto your project asAGENTS.md,.cursor/rules/cloudgpu.mdor.clinerules/cloudgpu.md. It tells the agent to quote before renting, download before shutting down, and never leave a GPU running. The server also exposes the same text as the resourcecloudgpu://rules.
To check the install, ask your agent: "List the GPUs available, then estimate the cost for a 24 GB GPU for one hour. Do not create anything." You should see list_gpus and estimate_cost calls and a quote, and nothing is rented.
Agent Skill
The same guidance is available as two Agent Skills:
-
skills/cloudgpu/SKILL.md: renting and using a GPU. Claude Code loads it on demand when you ask for a GPU job. It expects thecloudgpuMCP tools to be installed (see above). -
skills/cloudgpu-model-api/SKILL.md: calling the OpenAI-compatible model API athttps://cloudgpu.app/v1without renting a GPU. It works with the MCP tools or with just aCLOUDGPU_API_KEY. -
Claude plugin: both skills are included automatically when you install the CloudGPU Claude plugin from this repo's marketplace:
/plugin marketplace add mrhy7176/cloudgpu-mcp /plugin install cloudgpu@cloudgpu -
Claude Code, personal install: copy
skills/cloudgpu/andskills/cloudgpu-model-api/to~/.claude/skills/. -
Claude Code, project install: copy
skills/cloudgpu/andskills/cloudgpu-model-api/to.claude/skills/in your project. -
Cursor, Codex, Cline, Amp and other agents that read Agent Skills: install both skills with the skills CLI:
npx skills add mrhy7176/cloudgpu-mcp
Tools
| Tool | What it does |
|---|---|
get_account | Balance, and how many instances the account may run at once |
list_gpus | GPU models with VRAM, live price per GPU-hour and availability |
list_templates | Ready-made images: JupyterLab, Ollama, ComfyUI, LLaMA-Factory, … |
estimate_cost | Live quote for a GPU and a number of hours, plus your balance afterwards; returns a quote_id |
create_instance | Rents from an approved quote, with a budget, a time limit and an idle limit |
get_status / list_instances | Status, minutes run, cost so far, auto-shutdown limits |
run_command | Runs a command on the instance; background=true for long jobs |
tail_logs | Latest log lines, whether the job finished, GPU utilisation |
upload / download | Files and folders between your computer and the instance (SFTP) |
stop_instance | Destroys the instance and stops billing |
list_models | Models on the OpenAI-compatible API, for inference without renting a GPU |
run_job | Starts a GPU, runs one command and destroys the GPU, all on CloudGPU's servers; safe to retry with the same idempotency_key |
get_job / list_jobs | Job status, exit code, cost, the last ~4 KB of output and the job's history |
cancel_job | Stops a job and destroys its GPU |
connect_account / finish_connect | Gets a key without copying one: the user approves this assistant in the browser with a spending limit and a number of GPUs at once |
The server also provides a train_on_cloudgpu prompt.
Guardrails
- A quote first.
create_instanceonly takes aquote_idfromestimate_costanduser_confirmed=true. - Server-side limits. Every instance is created with
max_spend_usd,max_hoursand an idle limit (60 minutes by default). CloudGPU's servers check them and destroy the instance when one is hit, even if your client has disconnected or your laptop is asleep. - Your own ceiling.
CLOUDGPU_MAX_SPEND_USDandCLOUDGPU_MAX_HOURScap what the agent may set. - Results before shutdown. After commands have run,
stop_instancerefuses until something has been downloaded, unless the user confirmsforce=true. - Secrets stay out of the chat. The instance's SSH login is used inside this process and never returned to the model. Tool output is scrubbed of the API key and login details. Uploading
.ssh,.env, key files or your whole home directory needsallow_sensitive=true. - The instance stays manageable. Commands that change the root password, SSH configuration, firewall or the platform's monitoring agent are refused. CloudGPU shuts down instances that it can no longer monitor.
- Jobs are not started twice.
run_jobsends anIdempotency-Key. Resending the same job returns the same job instead of starting a second GPU, and the server refuses the same key with different parameters. - Keys with a budget. A key from
connect_accounthas a total spending limit, a number of GPUs it may run at once and an expiry date, all enforced by CloudGPU's servers. Revoke it at https://cloudgpu.app/api and it can no longer start anything. - Read-only mode.
CLOUDGPU_READ_ONLY=1registers only the look-up tools.
Configuration
| Env | Default | |
|---|---|---|
CLOUDGPU_API_KEY | (or connect_account) | From https://cloudgpu.app/api. Without it, a key saved by finish_connect in ~/.config/cloudgpu/credentials.json is used |
CLOUDGPU_MAX_SPEND_USD | 50 | Highest budget the agent may set for one instance |
CLOUDGPU_MAX_HOURS | 24 | Longest time limit the agent may set |
CLOUDGPU_READ_ONLY | off | 1 = look-up tools only |
CLOUDGPU_BASE_URL | https://cloudgpu.app | Override the API host |
Model API on the same balance
The key also works with the OpenAI-compatible API at https://cloudgpu.app/v1. Call list_models (or GET /v1/models) to see the available model IDs. Model prices are on cloudgpu.app/api.
Without MCP
The server wraps CloudGPU's public REST API, which any agent or script can call with the same key:
curl https://cloudgpu.app/v1/gpu/offers -H "Authorization: Bearer $CLOUDGPU_API_KEY"
Command-line tool
The package also installs a cloudgpu command for using the same API from a terminal (Node.js 18.3 or newer, no extra dependencies):
npm install -g cloudgpu-mcp # or run it once with: npx -p cloudgpu-mcp cloudgpu --help
cloudgpu login # saves your key to ~/.config/cloudgpu/config.json (mode 0600)
cloudgpu offers # GPU models with live price and availability
cloudgpu up --gpu "RTX 4090" --template comfyui --max-minutes 120 --max-spend 5 --wait
cloudgpu ssh <id> # opens your system ssh to the instance
cloudgpu down <id> # destroys it and stops billing (asks first; --yes to skip)
| Command | What it does |
|---|---|
login | Save an API key (input hidden, or piped on stdin); checked against the API first |
offers [--template ID] | GPU models, VRAM, live price per GPU-hour, availability |
templates | Ready-made images and the GPU each recommends |
up --gpu MODEL [--template ID] [--count N] [--max-minutes N] [--max-spend USD] [--idle-minutes N] [--setup FILE] [--wait] | Rent an instance; --setup runs a bash script once as root after hand-over (log in /root/cloudgpu-setup.log); --wait polls until it is running or failed, then prints the SSH command and URL |
ls / status <id> | Instances with status, minutes run and cost so far |
ssh <id> [-- ARGS] | Run ssh with the instance's host, port and user; --show-password prints the password if there is one |
down <id> [--yes] | Destroy the instance; its disk is erased, so download results first |
balance | Balance and how many instances the account may run |
CLOUDGPU_API_KEY takes precedence over the saved key, and CLOUDGPU_BASE_URL overrides the API host. Read commands accept --json; SSH passwords are left out of JSON unless you pass --show-password. Every command has --help. Errors print the API's message and exit non-zero (2 for usage errors).
Links
- MCP docs: https://cloudgpu.app/docs/mcp
- GPU pricing: https://cloudgpu.app/pricing
- Model API and prices: https://cloudgpu.app/api
- API reference: https://cloudgpu.app/api/docs · OpenAPI: https://cloudgpu.app/openapi.json · For LLMs: https://cloudgpu.app/llms.txt
CloudGPU here means cloudgpu.app. Prepaid balance, billed per minute; when the balance runs out, running instances are destroyed and their disks erased, so keep enough balance for the job and download results as you go.
Development
npm install
npm test
node src/index.js # stdio server; set CLOUDGPU_API_KEY first
node src/cli.js --help
License
MIT, see LICENSE.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Fetch
Freeby Modelcontextprotocol · Developer Tools
Web content fetching and conversion for efficient LLM usage
Git
Freeby Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
