Ipybox
STDIOSecure Python code execution sandbox with Docker containers and IPython kernels for AI agents
Secure Python code execution sandbox with Docker containers and IPython kernels for AI agents
mcp-name: io.github.gradion-ai/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.
  
asyncio API for managing the execution environmentipybox can be installed as MCP server.
{ "mcpServers": { "ipybox": { "command": "uvx", "args": ["ipybox", "mcp"] } } }
Install ipybox Python package:
pip install ipybox
Execute code in an ipybox container:
import asyncio from ipybox import ExecutionClient, ExecutionContainer async def main(): async with ExecutionContainer(tag="ghcr.io/gradion-ai/ipybox") as container: async with ExecutionClient(port=container.executor_port) as client: result = await client.execute("print('Hello, world!')") print(f"Output: {result.text}") if __name__ == "__main__": asyncio.run(main())