Heaven
Persistent Linux VMs for AI agents. Computers share a pool of CPU, memory and storage, and never sleep when idle.
Hosted MCP Server
npx add-mcp 'https://heaven.dev/mcp'Installs into Claude Code, Codex, Cursor and more
Documentation
MCP
URL: https://heaven.dev/docs/mcp Updated: 2026-11-27
Heaven's MCP server gives an agent tools to manage Computers and pools, run commands in them and search these docs. Connect to the hosted server, or run a local one with the CLI.
Hosted server
Add this URL to an MCP client that supports Streamable HTTP and OAuth, and sign in when it asks.
https://heaven.dev/mcp
For Cursor, use Add Heaven to Cursor. To send an API key in a fixed header instead, see MCP authentication.
Local server
Install the CLI and sign in, then run the installer.
heaven mcp install
It sets up whichever of Claude Code, Codex, Gemini CLI, Claude Desktop, Cursor and VS Code it finds, or only the ones you name:
heaven mcp install claude codex cursor
The client runs heaven mcp and talks to it over standard input and output. To set up a client by hand, use the full path to heaven as the command and mcp as its argument.
MCP authentication says how the local server picks a credential. An SSH key with a passphrase must be in ssh-agent for it to use.
Choosing tools
Both servers offer every command as a tool. Some clients load only so many tools, so an agent there may not see the one it needs. Offer only some groups of commands, only the tools that change nothing, or both.
| Offer | Hosted server | Local server |
|---|---|---|
| Some groups | https://heaven.dev/mcp?tools=computers,snapshots | heaven mcp --tools computers,snapshots |
| Read tools only | https://heaven.dev/mcp?read_only=1 | heaven mcp --read-only |
The two combine, as in https://heaven.dev/mcp?tools=computers&read_only=1. The groups are computers, snapshots, sharing, pools, billing, account, integrations, organizations and help, the sections heaven help lists. Any groups also bring operation_view, to follow a change, docs_search, to search the docs, and feedback. Read tools only leaves out every tool that makes a change, feedback too. A call to a tool that isn't offered is refused as an unknown tool. This narrows what an agent sees, not what it may do: to limit that, use an API key limited to some commands.
Tools
Each command is a tool, named with underscores for spaces. view with {} lists the Computers you can reach, and with {"computer":"my-site"} reads one. This reads a pool with pool_view:
{"pool":"web","organization":"acme"}
Each command's reference page shows its MCP form, and Choosing resources explains names, IDs and organizations.
docs_search answers from these docs with the sections that match a question best, each with its text, so an agent can look up how Heaven works without leaving MCP. See Search the docs.
Results and operations
A tool returns the response in structuredContent, as well as text. isError is true for a refusal or a failed change.
A tool that makes a change waits for it, up to its timeout. Set 0s to return at once.
| Server | Default wait | Maximum wait |
|---|---|---|
| Hosted | 15 seconds | 15 seconds |
| Local | 1 minute | 10 minutes |
If the wait ends first, follow the operation with operation_view. Operations and retries covers its states, request IDs and recovery.
Guest commands and files
The exec tool runs a command inside a Computer.
{"computer":"my-site","command":"uname -a"}
It returns output and exit_code, with encoding: "base64" for output that isn't text. On the hosted server a command can run for 30 seconds, and locally for as long as the CLI allows. Either returns up to 1 MiB of output.
On the hosted server, small files go inline. Larger downloads, uploads without inline content and disk exports return a one-use URL instead: POST to it within 15 minutes to move the bytes.
A command's stdin goes inline up to 1 MiB. For more, call exec with command and stdin_link: true. Nothing runs yet: it returns a one-use URL, and the body you POST there within 15 minutes, of any size, is the command's standard input. The answer is the API's for that command. Send Accept: application/x-ndjson to stream it, so it can run for an hour instead of 30 seconds.
On the local server, path is a file on your machine and download or upload names the file in the Computer. A download can replace a file already at path.
Port forwarding
On the local server, forward_add forwards a port on your machine to a port in a Computer, as ssh -L does. This opens a dev server on port 3000 without publishing it:
{"computer":"my-site","port":3000}
Connect to 127.0.0.1:3000 on your machine. Set local_port to use another port there. forward_view lists the open forwards, and forward_remove with local_port closes one. Forwards close when the local server stops.
The hosted server can't forward ports, since it runs on Heaven's side.