E2B Sandbox MCP Server
MCP server for E2B sandbox. MaaS mode uses MaaS E2B proxy and tenant API key.
Config
Environment:
E2B_API_KEY=e2b_xxx
E2B_API_URL=https://maas.example.com/api/e2b
Optional:
E2B_TEMPLATE=code-interpreter
E2B_TIMEOUT=300
E2B_REQUEST_TIMEOUT=60
E2B_VERIFY_SSL=true
Full env list: ENV.md. OpenClaw and Hermes config: INTEGRATION.md.
The SDK derives MaaS data-plane URLs from E2B_API_URL:
- HTTP:
{E2B_API_URL}/sandbox-proxy/{sandbox_id}/ports/{port} - WebSocket:
{E2B_API_URL}/ws/sandbox-proxy/{sandbox_id}/ports/{port}
No MaaS /config endpoint is required.
Run
python3.11 -m venv .venv
source .venv/bin/activate
pip install -e .
export E2B_API_KEY=e2b_xxx
export E2B_API_URL=https://maas.example.com/api/e2b
python tests/test_mcp_create_delete.py
python tests/test_mcp_client.py
After install, the server command is maas-e2b-sandbox.
For normal installation, use pipx install maas-e2b-sandbox or install with pip inside a virtual environment.
MCP
mcp_servers:
e2b_sandbox:
command: maas-e2b-sandbox
timeout: 180
env:
PYTHONUNBUFFERED: "1"
E2B_API_KEY: e2b_xxx
E2B_API_URL: https://maas.example.com/api/e2b
Tools
code_runcmd_run,cmd_start,cmd_output,cmd_input,cmd_killfile_write,file_read,file_upload,file_download,file_inspectcreate_session,list_sessions,close_session
Metadata
Release files for maas-e2b-sandbox 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| maas_e2b_sandbox-0.1.1.tar.gz | 17.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| maas_e2b_sandbox-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.2 kB
Release files / maas_e2b_sandbox-0.1.1.tar.gz
| Download URL | maas_e2b_sandbox-0.1.1.tar.gz |
|---|---|
| Size | 17.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
adcc60b0dfd7c74881ccdd7e9296339cf7fdb3a827f74a8e2b60a4da5f9e9ec0
|
|
BLAKE2b-256 checksum How to use checksums |
d9b796a35d058e0db72d31bb10c007ff7b2af3c99a0425d609602fbecac1d387
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / maas_e2b_sandbox-0.1.1-py3-none-any.whl
| Download URL | maas_e2b_sandbox-0.1.1-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a7dd17121ff79fb25fe6a82f1ebf11edba587d81e6448036951acb187f1b296
|
|
BLAKE2b-256 checksum How to use checksums |
c5cd7b1b473ddba9ba39701fd58051b85a66a3900983e2c9d1553be65335e00f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for maas-e2b-sandbox 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.