Skip to main content
Compute has two MCP servers: a local stdio server bundled with the CLI, and a hosted Streamable HTTP server at mcp.compute.cx for agents that cannot spawn a local process. After install and sign-in (or, for the hosted server, an OAuth connect), an agent can list GPUs, check credit, follow status, and manage secrets; both can dry-run and submit a run: the local server reads the entrypoint file from disk, the hosted server takes the Python source inline. The Agent Skill at https://compute.cx/SKILL.md is the workflow. MCP is the tool surface.
compute_run spends prepaid credit. Cold launches require confirm_spend=true; creating a held machine also requires it. Jobs on a ready held machine have no separate hold or charge. compute_dry_run creates no machine; the hosted version stores source and returns a prepared launch.

Install the CLI

compute mcp is not a human command. The host spawns it and speaks JSON-RPC on stdin/stdout.

Local (stdio)

Cursor

Project or user mcp.json:
The server reads COMPUTE_API_KEY or ~/.compute/config.toml. After compute setup, no extra env is required. Cursor install link (CLI must already be on PATH): Add Compute MCP

What the local tools do

Do not paste API keys, session tokens, config.toml, Checkout session ids, secret values, or signed URLs into the agent chat or a report.

Hosted (Streamable HTTP)

For cloud/hosted agents (Claude.ai- or ChatGPT-style connectors, background agents) that cannot spawn a local process:
No CLI install and no COMPUTE_API_KEY — authentication is Clerk OAuth 2.1 with PKCE. A request without a valid token gets a 401 with a WWW-Authenticate header pointing at the discovery document:
Dynamic Client Registration is enabled. The authorization server at https://clerk.compute.cx publishes a registration_endpoint, so an MCP host self-registers its client and completes the browser consent; nothing has to be pre-registered. The consent signs in the Compute account whose prepaid credit the runs will spend.
The shared catalog contains 34 tools. Hosted MCP exposes 36 tools; local MCP exposes 37, including compute_doctor. Both include held machines, model deployment planning and control, budgets, artifacts, reports, and run inspection. Hosted compute_dry_run takes entrypoint plus inline files ({path, content}): the entrypoint, imported local modules, and any non-Python files declared in the decorator’s include. Limits are 64 files and 2 MiB of UTF-8 text. Put third-party packages in pip. The tool stores source, creates a quote, and returns prepared_run, with no run or machine and no execution charge. Pass that object unchanged to compute_run with confirm_spend=true. If the quote has fallback=true, separately approve it with top-level accept_selector_fallback=true; spend confirmation alone does not approve it. Poll run state and logs after launch.

Held machines

  1. Review compute_list_gpus and call compute_create_machine with gpu_sku and confirm_spend=true. Optional limits are idle_timeout_seconds and max_lifetime_seconds. It returns immediately.
  2. Poll compute_get_machine until ready.
  3. Local MCP: call compute_run with entrypoint and machine_id. Hosted MCP: call compute_dry_run with inline files and machine_id, then compute_run with the returned prepared_run unchanged. Create a new dry run for each new hosted job.
  4. Call compute_delete_machine when finished.
Held jobs have no quote or separate credit hold and need no confirm_spend. The machine owner run bills uptime, including idle minutes, until it stops. machine_not_ready means poll readiness; machine_busy means inspect the current job; machine_unavailable means the machine has stopped. See held-machine billing and limits.

Plugin (skill + MCP)

This docs repository is also an Agent Plugin: plugin.json, mcp.json, and skills/compute/SKILL.md. Import the repo into a Cursor team marketplace, or submit it at cursor.com/marketplace/publish. The skill is also a raw file:

Next

Agent Skill is the spend-aware workflow. Run is the flag reference.