Hadronbox
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Hadronbox create a sandbox, install dependencies, and open a preview URL"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@hadronbox/mcp
MCP server (stdio) that lets an AI agent use hadronbox.tr machines as its sandbox: create a machine, run commands, read and write files, pause or resume it, start from a snapshot and open a preview URL.
HADRONBOX_API_KEY=... npx -y @hadronbox/mcpNode.js 20 or later. One bundled file, no runtime dependencies. Docs: https://hadronbox.tr/docs/mcp
Tools
Tool | What it does | API key scope |
| Create a machine and wait until it runs (template, size, tools) |
|
| Machines with id, name, status and the quota |
|
| Run a command; exit code, stdout, stderr; timeout; long output shortened |
|
| Read a text file under |
|
| Create or replace a text file under |
|
| Pause a machine |
|
| Resume a paused machine |
|
| Saved snapshots |
|
| New machine from a ready snapshot |
|
| Private https preview URL for a port |
|
| Delete a machine (listed only with |
|
Use a scoped API key (panel: API keys page). machines:read + machines:exec is enough to work on existing
machines; add machines:create to let the agent create machines. Errors come back as tool results the model can act
on: a missing scope names the scope, COMMAND_BLOCKED explains the blocked part, CREDIT_INSUFFICIENT (402) shows the
balance.
Related MCP server: tenki-mcp
Configuration
Variable | Meaning |
| API key (required) |
| API base URL (default |
|
|
Claude Code:
claude mcp add hadronbox --env HADRONBOX_API_KEY=$HADRONBOX_API_KEY -- npx -y @hadronbox/mcpClaude Desktop / Cursor (claude_desktop_config.json, .cursor/mcp.json):
{
"mcpServers": {
"hadronbox": {
"command": "npx",
"args": ["-y", "@hadronbox/mcp"],
"env": { "HADRONBOX_API_KEY": "<HADRONBOX_API_KEY>" }
}
}
}Replace <HADRONBOX_API_KEY> with your own API key, and do not commit a file that contains it.
Development (in the ai-sandbox-platform repository)
npx vitest run sdks/mcp # tests (fake API server, no network)
npm run build --prefix sdks/mcp # dist/hadronbox-mcp.js (bundles sdks/typescript)License: Apache-2.0
Available Tools
10 toolscreate_from_snapshotCreate machine from snapshotA
Create a new machine from a ready snapshot (its files and installed tools included) and wait until it is running.
Inputs: name (required), snapshot_id (required), size, wait_until_running.
create_machineCreate machineA
Create a new hadronbox sandbox machine (a Linux VM with a /workspace directory) and wait until it is running. Returns its machine_id. Machines cost credits while running; reuse an existing one (list_machines) when you can.
Inputs: name (required), size, tools, template, +1 more.
execRun commandADestructive
Run a shell command line in a running machine and return its exit code, stdout and stderr. Project files live under /workspace (start with "cd /workspace && ..."). Long output is shortened in the middle. The command is stopped when timeout_seconds passes. No stdin; for multi-line programs write a script with write_file first.
Inputs: command (required), machine_id (required), timeout_seconds, max_output_chars.
expose_portExpose portA
Expose a TCP port of a machine (e.g. a dev server on 3000) at a private https preview URL. Only signed-in members of the account (or holders of a preview token) can open it.
Inputs: port (required), machine_id (required), label.
list_machinesList machinesARead-onlyIdempotent
List the sandbox machines of the account with their machine_id, name and status (running, paused, creating, stopped, error), plus the machine quota.
Inputs: page, limit, search, status.
list_snapshotsList snapshotsARead-onlyIdempotent
List the saved machine snapshots (snapshot_id, name, status). A "ready" snapshot can start a new machine with create_from_snapshot.
Inputs: page, limit, search, status.
pause_machinePause machineAIdempotent
Pause a running machine: it stops using credits for compute and keeps its state; resume_machine continues it.
Inputs: machine_id (required).
read_fileRead fileARead-onlyIdempotent
Read a UTF-8 text file from a running machine. path is relative to /workspace (e.g. "src/index.ts"); it cannot leave /workspace.
Inputs: path (required), machine_id (required).
resume_machineResume machineAIdempotent
Resume a paused machine so exec, read_file and write_file work again.
Inputs: machine_id (required).
write_fileWrite fileADestructiveIdempotent
Create or replace a UTF-8 text file in a running machine. path is relative to /workspace; parent directories are created.
Inputs: path (required), content (required), machine_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool targets a distinct resource and action: machine lifecycle (create, pause, resume, list), snapshot listing/instantiation, port exposure, and file/shell operations. The only mild overlap is create_machine versus create_from_snapshot, but the descriptions make the distinction clear (blank VM vs. from a ready snapshot).
Nine of ten tools follow a clean verb_noun snake_case pattern (list_snapshots, create_from_snapshot, pause_machine, read_file, write_file, etc.). The lone bare verb 'exec' is a minor deviation but remains unambiguous.
Ten tools is a well-scoped set for a sandbox VM service, with each tool earning its place across lifecycle, file I/O, command execution, and preview exposure. Nothing feels padded or missing at the count level.
Core workflows are covered, but the lifecycle is a dead end: there is no delete/stop machine tool and no create_snapshot tool, so the snapshot surface is read-only and machines can only be paused, never destroyed. File deletion is also only possible indirectly via exec.
Maintenance
Related MCP Connectors
Run commands, code and file operations for AI agents in Cloud Hypervisor microVM sandboxes.
Linux VMs for AI agents: create VMs, run commands, edit files and open preview URLs.
Cloud sandboxes for AI agents: run code, files, previews, browsers, Linux desktops, Android.
Cloud Linux VMs for your agent: run code, Docker, files and HTTPS previews in a Sandboxer microVM.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to operate a persistent Linux sandbox in the cloud, running commands, managing files, using Git, and publishing artifacts through a Streamable HTTP MCP endpoint.-
- AlicenseAqualityBmaintenanceEnables AI agents to spin up disposable Tenki microVM sandboxes in seconds and use them to run code, manage files, run git commands, and expose preview URLs.71168 npmMIT
- AlicenseAqualityBmaintenanceEnables AI clients to create and manage Alibaba Cloud sandboxes, run shell commands, execute Python or JavaScript code, and read or write files in cloud environments.1441 npmMIT
- AlicenseBqualityBmaintenanceEnables AI agents to create and manage sandboxes, sessions, and files through the CodeSandbox SDK, including read/write and VM lifecycle operations.1110MIT