sandbox-as-a-service-mcp
Provides tools to create, manage, and destroy Linux virtual machines, execute shell commands, manage files, expose ports via public URLs, and extend sandbox lifetimes.
Click on "Install 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., "@sandbox-as-a-service-mcpcreate a sandbox and rununame -a"
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.
sandbox-as-a-service-mcp
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.
Use it
AAS_API_KEY=aas_sk_... npx -y https://sandbox-as-a-service.com/mcp.tgzGet a key at sandbox-as-a-service.com — new accounts start with free credit and no card.
Claude Desktop / Claude Code
{
"mcpServers": {
"sandbox": {
"command": "npx",
"args": ["-y", "https://sandbox-as-a-service.com/mcp.tgz"],
"env": { "AAS_API_KEY": "aas_sk_..." }
}
}
}Related MCP server: microsandbox-mcp
The tools
Tool | What it does |
| Creates a VM and returns its id once it is ready. |
| Runs a shell command as an unprivileged user. Returns stdout, stderr, exit code. |
| Writes a file. Content travels out of band, so quotes and binary survive. |
| Reads a file back — how an agent gets at what its code produced. |
| Lists a directory tree, so an agent can find what a run produced. |
| Gives a server inside the sandbox a public https URL to share. |
| Status, size and expiry. |
| Everything on the account, newest first — useful for finding strays. |
| Pushes the expiry out when a job outgrows its timeout. |
| Destroys it and stops billing. |
| Remaining credit and recent usage. |
Notes for agents
Code runs as an unprivileged user. There is no
sudo, soapt-getwill not work; usepip install --user --break-system-packagesornpm install, both of which do.run_commandwaits for the command to finish. Start a server with&or it will hold the call open until the timeout.A sandbox is destroyed when its timeout expires whether or not
destroy_sandboxis called, so a forgotten sandbox costs minutes, not money forever. Calling it anyway returns the minutes you were not going to use.
Environment
Variable | |
| Required. Your API key. |
| Optional. Defaults to |
MIT licensed. The service it talks to is at sandbox-as-a-service.com; docs.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides isolated sandbox environments for AI agents to execute code securely, generating signed receipts for every execution to ensure auditability and trust.174MIT
- AlicenseAqualityBmaintenanceConnects AI agents to microsandbox for creating lightweight sandboxes, executing code, managing files, and monitoring resources.1914613Apache 2.0
- AlicenseAqualityDmaintenanceProvides a local, isolated Linux VM sandbox for AI agents using Apple's Virtualization.framework, enabling fast command execution (~60ms) and package management without cloud costs.351MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to run compute tasks in secure sandboxes with optional interactive UIs, brokering between agents and isolated execution environments.Apache 2.0
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Persistent cloud development environments that coding agents create, run and test software in.
The agent-native cloud: database, functions, AI, storage, computers. 50 tools, one API key.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/fstandhartinger/sandbox-as-a-service-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server