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.
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 usermcp.json:
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: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.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
- Review
compute_list_gpusand callcompute_create_machinewithgpu_skuandconfirm_spend=true. Optional limits areidle_timeout_secondsandmax_lifetime_seconds. It returns immediately. - Poll
compute_get_machineuntil ready. - Local MCP: call
compute_runwithentrypointandmachine_id. Hosted MCP: callcompute_dry_runwith inlinefilesandmachine_id, thencompute_runwith the returnedprepared_rununchanged. Create a new dry run for each new hosted job. - Call
compute_delete_machinewhen finished.
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:
