sandboxrun
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
sandboxrun
sandboxrun gives an agent a safe place to run code it just wrote. Hand it a snippet and it comes back with what the snippet printed, the values it produced, and any error it hit — all executed inside a short-lived E2B sandbox, never on your own machine. It runs from the command line or as an MCP server for agents.
An E2B API key is required. Put it in the E2B_API_KEY environment
variable; the key is sent to the API as the X-API-Key header and
never appears in output. When the variable is missing, every run
fails with an error that names it.
Install
npx @reneturcios/sandboxrun run "print(6 * 7)"Or run the container image:
docker run -i -e E2B_API_KEY ghcr.io/cloudcorprecords/sandboxrunThe container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
Related MCP server: coding-agent
CLI
export E2B_API_KEY="your E2B API key"
# Run a snippet inline
sandboxrun run "print('hello from the sandbox')"
# Run a file's contents
sandboxrun run --file analysis.py
# Machine-readable output
sandboxrun run "import math; print(math.pi)" --json
sandboxrun --versionExit codes: 0 on success, 1 when a run fails (including a
missing E2B_API_KEY, an API error, or an error raised by the code
itself), 2 for usage errors.
MCP server
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
npx -y @reneturcios/sandboxrun mcpMCP client configuration:
{
"mcpServers": {
"sandboxrun": {
"command": "npx",
"args": ["-y", "@reneturcios/sandboxrun", "mcp"],
"env": { "E2B_API_KEY": "your E2B API key" }
}
}
}Tools
Tool | Input | What it returns |
|
| The execution as a text block: the sandbox id, printed output, structured results, log lines, and any error the code raised. Code uses Jupyter notebook syntax. |
The documented E2B MCP server exposes this single tool, and sandboxrun exposes exactly that tool — nothing extra.
Under the hood each call creates a fresh sandbox from the
code-interpreter template (POST https://api.e2b.app/sandboxes) and
then executes the code in it. The upstream SDK talks to the
sandbox's Jupyter kernel over a websocket channel; this rebuild
shapes the execution as a REST request behind the same seam and
records that transport simplification in its build report.
Development
npm install
npm run build # tsc -> dist/
npm test # node test runner over test/*.test.ts, no network (fake fetch fixtures)
npm run dev # run the CLI from source via tsxLicense
MIT — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Beta code sandbox for agents. Run Python or JavaScript with no network and a 30 s timeout.
Build Apps and run code in 30 languages — sandboxed, with persistent sessions for agent loops.
Hosted one-shot code execution: send a snippet plus optional files, get stdout, stderr, exit...
Execute code in 8 languages (Python, JS, TS, Go, Java, C++, C, Bash) in gVisor sandboxes.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceThe sessionless code interpreter. Securely run AI-generated code in stateful sandboxes that run forever.230MIT
- AlicenseNot gradedqualityCmaintenanceEnables external AI clients to invoke an autonomous coding agent that plans, fixes, and self-corrects code in an isolated Docker sandbox via run_task and run_tests tools.MIT
- FlicenseNot gradedqualityBmaintenanceEnables programs and AI assistants to orchestrate coding-agent sessions such as OpenCode or Claude Code and obtain structured answers backed by verifiable citations, including support for long-running jobs and follow-up questions.1-
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients to run reusable Markdown-defined coding agents through a chosen coding CLI, returning results to the same conversation and optionally continuing sessions across calls.127 npmMIT