Server data from the Official MCP Registry
Run code in a secure E2B sandbox from the CLI or a stdio MCP server.
About
Run code in a secure E2B sandbox from the CLI or a stdio MCP server.
Security Report
sandboxrun is a straightforward wrapper that runs user-supplied code in a remote E2B sandbox. The E2B API key is read from the E2B_API_KEY environment variable and sent only to api.e2b.app, and no data is sent to other hosts. The main concerns are minor: submitted code and output pass through a third-party service, and the API key header is sent with default redirect handling. Supply chain analysis found 4 known vulnerabilities in dependencies (0 critical, 2 high severity). Package verification found 1 issue.
8 files analyzed · 8 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
What You'll Need
Set these up before or after installing:
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"sandboxrun": {
"command": "npx",
"args": [
"-y",
"@reneturcios/sandboxrun@0.1.0"
],
"env": {
"E2B_API_KEY": "your-e2b-api-key-here"
}
}
}
}Some servers take additional arguments. See the repository for details.
Documentation
View on GitHubFrom the project's GitHub README.
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/sandboxrun
The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
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 --version
Exit 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 mcp
MCP 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 |
|---|---|---|
run_code | code (string, required) | 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 tsx
License
MIT — see LICENSE.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Scrapling
Freeby D4Vinci · Developer Tools
Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
Git
Freeby Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
