The sandbox is created for the task and closed after it, so an agent can install a package and run code it just wrote without any of it touching your filesystem.
A Python MCP server that hands out isolated sandbox environments for code execution, backed by E2B behind an abstract interpreter interface so another backend can be swapped in. Five tools create a sandbox, run code in it, install packages, report its status and shut it down.
- An isolated sandbox created on demand
- Python executed inside that sandbox
- Packages installed into the sandbox before the code that needs them runs
- The current status of a sandbox you created
- The sandbox closed when the task is finished
Python 3.10 or higher, plus fastmcp, python-dotenv and e2b-code-interpreter. An E2B key in the environment covers the default backend, and a second environment variable selects which backend is used, defaulting to e2b. Code runs on E2B's infrastructure, not on your machine.
