mcp-server
v1.2.0Official GPUtw MCP server — manage GPU instances and Vault storage on gputw.ai from any MCP client
Official MCP server for the GPUtw GPU cloud (gputw.ai) — deploy and manage GPU instances, read live utilisation and logs, and move models into /vault, from any MCP client. Or register the server on its own. The repo ships a pre-built single-file bundle, so a clone plus node is all it needs (no npm install): Get a key from the GPUtw dashboard → API Keys. Use the narrowest preset that fits: readonly to look, deploy to launch, operator to stop/restart, Upload token (write-only vault:write) for CI uploads.
Summary extracted from the README.
@gputw/mcp-server
Official MCP server for the GPUtw GPU cloud (gputw.ai) — deploy and manage GPU instances, read live utilisation and logs, and move models into /vault, from any MCP client.
Stable (
1.2.0). Ships as part of the GPUtw Skill, which also carries the integration guides the tools assume.
Install
Claude Code — the plugin installs this server and the knowledge skill, and keeps the API key in secure storage:
/plugin marketplace add GPUtw-ai/GPUtw-Skill
/plugin install gputw@gputw
Or register the server on its own. The repo ships a pre-built single-file bundle, so a clone plus node is all it needs (no npm install):
git clone https://github.com/GPUtw-ai/GPUtw-Skill.git ~/.gputw-skill
claude mcp add gputw -s user -e GPUTW_API_KEY=gputw_live_xxx -- node ~/.gputw-skill/mcp/dist/stdio.mjs
# or from npm, no clone needed
claude mcp add gputw -s user -e GPUTW_API_KEY=gputw_live_xxx -- npx -y @gputw/mcp-server@latest
Any other client (Claude Desktop, Cursor, VS Code, Windsurf, Codex, Gemini CLI). From npm; for a clone, use "command": "node" with the absolute path to mcp/dist/stdio.mjs:
{
"mcpServers": {
"gputw": {
"command": "npx",
"args": ["-y", "@gputw/mcp-server@latest"],
"env": { "GPUTW_API_KEY": "gputw_live_xxx" }
}
}
}
Get a key from the GPUtw dashboard → API Keys. Use the narrowest preset that fits: readonly to look, deploy to launch, operator to stop/restart, Upload token (write-only vault:write) for CI uploads.
Update
- Claude Code plugin: run
/plugin marketplace update gputw, then go to/plugin→ Installed →gputw→ Update now (or runclaude plugin update gputw@gputwin a shell). Apply it with/reload-pluginsor a new session. Plugins from GitHub marketplaces don't auto-update unless you turn it on under/plugin→ Marketplaces →gputw→ Enable auto-update. - Clone install (any client): run
git -C ~/.gputw-skill pull, then restart the client (in Claude Code, reconnect from/mcp). The server runs straight frommcp/dist/stdio.mjs, so the pull is the whole update. - npm (
npx -y @gputw/mcp-server@latest): restart the client sonpxlaunches the server again. If it keeps starting an old version, pin the version explicitly, e.g.@gputw/mcp-server@1.1.0, and bump it when you update. - Check the running version: the
serverInfo.versionin the initialize handshake. Release notes are on GitHub Releases.
Environment
| Variable | Default | Purpose |
|---|---|---|
GPUTW_API_KEY |
— | Required for everything except the public catalogue |
GPUTW_API_BASE |
https://api.gputw.ai/api |
Rarely changed |
GPUTW_TRANSFER_BASE |
https://upload.gputw.ai |
Bulk-transfer host; falls back to the API host if absent |
GPUTW_MCP_ALLOW_EXEC |
unset | Set to 1 to expose exec-in-instance |
Tools
Catalogue — list-gpus, list-available-nodes, list-templates, get-deploy-options
Instances — create-instance (optional name, autoStopHours / autoStopAt), set-instance-auto-stop, rename-instance, stop-instance, delete-instance, delete-stopped-instances, restart-instance
Live state — get-instance-status, get-instance-resources, get-instance-metrics, get-instance-logs, get-instance-events
Vault — list-vault, get-vault-stats, upload-to-vault, download-model-to-vault, list-vault-downloads
Opt-in — exec-in-instance (root shell; needs GPUTW_MCP_ALLOW_EXEC=1 and the instances:exec scope)
Deploy order: list-gpus → list-available-nodes (with the catalogId from the first) → list-templates → create-instance (with the machine id as nodeId) → poll get-instance-status until RUNNING.
Not yet covered (use the REST API): ports and exposures, API-key management, billing, teams, notifications, reservations.
Notes worth knowing
- Instances bill while
RUNNING. Always finish withstop-instanceordelete-instance, and setautoStopHourson create as a safety net. - Prefer
fastVault: truemachines when a job loads large files from/vaulton every start. - A server-side download can show
failedwhile it retries itself (errormentions retrying / resuming);download-model-to-vaultkeeps waiting through that. - Poll with
get-instance-status, notlist-instances— it is the small, cheap read built for looping. - Read
usage.sourceonget-instance-resourcesbefore trusting a number.nonemeans there is no telemetry and every metric isnull; that is not the same as an idle GPU. - Responses are projected. A catalogue record carries ~50 fields; the tools return the decision-relevant subset so the model's context is not spent on marketing copy.
- Errors are translated into actions — which scope is missing, that credit is short, that a machine was taken, or that a non-envelope response means the request never reached the API (usually a missing
User-Agent). stop-instanceanddelete-instanceboth destroy/workspace./vaultis untouched.
claude plugin detailsshows "MCP servers (0)". That count only recognises a.mcp.jsonat the plugin root, and this plugin declares the server inline inplugin.jsonon purpose — a file at the repository root is also read as a project-scope MCP config by anyone working in a clone, whereCLAUDE_PLUGIN_ROOTis undefined. Trustclaude mcp list:plugin:gputw:gputw … ✔ Connectedis the working state.
Security
The server acts with the full permissions of the key it is given.
- The key is read from the environment, never written to disk by this server, and never logged. Anything matching
gputw_live_…is redacted from returned text. exec-in-instanceis not registered unless you opt in. It is a root shell in your container, needs a scope only thefullpreset grants, and every call is written to your account audit trail.- In stdio mode the key stays on your machine; no third party is involved.
Develop
npm install
npm run type-check
npm test # 55 offline tests - no network, no API key
npm run build
node dist/stdio.mjs --help
dist/stdio.mjs is a single bundled file and is committed to the repository, so the Claude Code plugin runs it with plain node straight from a clone. CI rebuilds it and fails if the committed copy is stale.
License
MIT — see LICENSE.