python_sandbox_mcp_server

python_sandbox_mcp_server

2

The Python Sandbox MCP Server is a secure platform for executing Python code in isolated environments using Docker. It enables real-time communication through Server-Sent Events and supports graphical output from Matplotlib.

Python Sandbox MCP Server

A secure Python code execution server designed to safely run Python code in isolated Docker containers. Key features include:

  • Execution of Python code with output capturing.
  • Support for Matplotlib plotting with PNG image generation.
  • Secure sandboxing using Snekbox Docker container.
  • Real-time communication through Server-Sent Events (SSE).

Configuration

  • MCP_SERVER_NAME: Server identifier (default: "python-sandbox-mcp-sse")
  • SNEKBOX_URL: Snekbox API endpoint (default: "http://localhost:8060/eval")
  • TEMP_DIR: Directory for temporary files storage.