Give an agent a real Linux VM: run commands, move files, expose a preview URL, destroy it.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An MCP server that gives an agent a real Linux virtual machine it can break.
Eleven tools: create a sandbox, run shell commands in it, write and read files, list what a run produced, expose a port on a public preview URL, extend the lifetime, destroy it, and check what it all cost.
Each sandbox is a dedicated VM with its own kernel β not a container sharing a host with other people's code. It is never reused between accounts and is destroyed when it expires, whether or not anything remembered to ask.
Get a key at sandbox-as-a-service.com β new accounts start with free credit and no card.
| Tool | What it does |
|---|---|
create_sandbox | Creates a VM and returns its id once it is ready. |
run_command | Runs a shell command as an unprivileged user. Returns stdout, stderr, exit code. |
write_file | Writes a file. Content travels out of band, so quotes and binary survive. |
read_file | Reads a file back β how an agent gets at what its code produced. |
list_files | Lists a directory tree, so an agent can find what a run produced. |
expose_port | Gives a server inside the sandbox a public https URL to share. |
get_sandbox | Status, size and expiry. |
list_sandboxes | Everything on the account, newest first β useful for finding strays. |
extend_sandbox | Pushes the expiry out when a job outgrows its timeout. |
destroy_sandbox | Destroys it and stops billing. |
get_usage | Remaining credit and recent usage. |
sudo, so apt-get will not work; use
pip install --user --break-system-packages or npm install, both of which do.run_command waits for the command to finish. Start a server with & or it will hold the call
open until the timeout.destroy_sandbox is called, so a
forgotten sandbox costs minutes, not money forever. Calling it anyway returns the minutes you were
not going to use.| Variable | |
|---|---|
AAS_API_KEY | Required. Your API key. |
AAS_BASE_URL | Optional. Defaults to https://sandbox-as-a-service.com/v1. |
MIT licensed. The service it talks to is at sandbox-as-a-service.com; docs.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/sandbox-as-a-service)<a href="https://allmcps.com/mcp/sandbox-as-a-service"><img src="https://allmcps.com/api/badge/sandbox-as-a-service?style=directory" alt="Sandbox as a Service on AllMCPs" /></a>