python_sandbox_mcp_server
If you are the rightful owner of python_sandbox_mcp_server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
Python Sandbox MCP Server is a secure Python code execution server that allows LLMs to run Python code safely in isolated Docker containers.
The Python Sandbox MCP Server is designed to provide a secure environment for executing Python code, particularly for use with large language models (LLMs). It leverages Docker containers to ensure code is run in isolation, minimizing security risks. The server supports standard Python code execution with output capture, and it can generate PNG images from Matplotlib plots. It uses the Snekbox Docker container for sandboxing, ensuring that code execution is both secure and efficient. Real-time communication is facilitated through Server-Sent Events (SSE), allowing for immediate feedback and interaction. This setup is ideal for applications that require secure, real-time Python code execution, such as educational platforms, coding competitions, or any service that integrates with LLMs.
Features
- Secure Python code execution in isolated Docker containers.
- Support for Matplotlib plotting with PNG image generation.
- Real-time communication using Server-Sent Events (SSE).
- Integration with Snekbox for secure sandboxing.
- Configurable through environment variables or a configuration class.