ipybox

MCP.Pizza Chef: gradion-ai

ipybox provides a local environment where you can run Python code, shell commands, and MCP tool calls all together in one place. It keeps your work stateful, so variables and results stay available as you go. You can safely run code with optional sandboxing to protect your files and network. While mainly for developers, it enables building powerful AI workflows that combine code and tools on your own computer without needing online services or API keys.

Coding
Other

Use This MCP server To

Run Python scripts and shell commands together interactively Execute MCP tool calls programmatically within Python code Keep variables and results available across multiple code runs Sandbox code execution to protect local files and network Integrate with AI assistants that support MCP for advanced workflows Approve each shell command or tool call before execution Build custom AI workflows combining code and MCP tools

README

ipybox

ipybox

mcp-name: io.github.gradion-ai/ipybox

Website PyPI - Version GitHub Release GitHub Actions Workflow Status GitHub License

ipybox is a unified execution environment for Python code, shell commands, and programmatic MCP tool calls.

Overview

ipybox executes code blocks in a stateful IPython kernel. A code block can contain any combination of Python code, shell commands, and programmatic MCP tool calls. Kernels can be sandboxed with sandbox-runtime, enforcing filesystem and network restrictions at OS level.

It generates Python APIs for MCP server tools via mcpygen, and supports application-level approval of individual tool calls and shell commands during code execution. ipybox runs locally on your computer, enabling protected access to your local data and tools.

Note

Next generation ipybox

This is the next generation of ipybox, a complete rewrite. Older versions are maintained on the 0.6.x branch and can be obtained with pip install ipybox<0.7.

Documentation:

ipybox FAQ

Can I use ipybox to run Python code and shell commands together?
Yes — ipybox lets you execute Python code, shell commands, and MCP tool calls in one environment with stateful execution.
Can I use ipybox to safely run code on my local machine?
Yes — ipybox runs locally and supports sandboxing to restrict filesystem and network access for safety.
Does ipybox require an API key or online account?
No — ipybox runs entirely on your local computer without needing online accounts or API keys.
Which apps can I use ipybox with?
ipybox is a server component mainly for developers and advanced users; it can integrate with clients that support MCP but does not come as a standalone app.
How hard is it to set up ipybox?
Setup is developer-level — it requires installing via pip and some configuration to run and connect with clients.
Can ipybox call other MCP tools programmatically?
Yes — it generates Python APIs to call MCP server tools during code execution.
Does ipybox keep state between code runs?
Yes — it uses a stateful IPython kernel so variables and context persist across executions.