Provides secure Python code execution in Docker containers with IPython kernels, supporting data analytics, package installation, and plot generation with configurable network restrictions
Enables safe execution of Python code through IPython kernels in sandboxed environments, supporting stateful code execution, package management, and visualization library output
ipybox
ipybox
is a lightweight and secure Python code execution sandbox based on IPython and Docker. You can run it locally on your computer or remotely in an environment of your choice. ipybox
is designed for AI agents that need to execute code safely e.g. for data analytics use cases or executing code actions like in freeact
agents.
Features
- Secure code execution inside Docker containers
- Restrict network access with a configurable firewall
- Stateful code execution with IPython kernels
- Stream code execution output as it is generated
- Install Python packages at build time or runtime
- Return plots generated with visualization libraries
- Exposes an MCP server interface for AI agent integration
- Invocation of MCP servers via generated client code
- Flexible deployment options, local or remote
asyncio
API for managing the execution environment
Documentation
MCP server
ipybox
can be installed as MCP server.
Python example
Install ipybox
Python package:
Execute code in an ipybox
container:
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A Python code execution sandbox based on IPython and Docker. Stateful code execution, file transfer between host and container, configurable network access.
Related MCP Servers
- AsecurityFlicenseAqualityCreate sandboxed local development environments directly from Github and execute tests, see coverage and more! Supports Python, Node, Bun and many test runners.Last updated -426Python
- -securityFlicense-qualityProvides isolated Docker environments for code execution, enabling users to create and manage containers, execute multi-language code, save and reproduce development environments, ensuring security and isolation.Last updated -11Python
- -securityAlicense-qualityAn MCP server to create secure code sandbox environment for executing code within Docker containers.Last updated -253GoMIT License
- -securityAlicense-qualityAn interactive Python code execution environment that allows users and LLMs to safely execute Python code and install packages in isolated Docker containers.Last updated -20PythonApache 2.0