MCP Sandbox
The Python MCP Sandbox is an interactive Python code execution tool that allows users to securely execute Python code and install packages in isolated Docker containers.
rating : 2.5 points
downloads : 16
What is MCP Sandbox?
MCP Sandbox is an interactive Python code execution tool that allows users and LLMs to securely execute Python code and install packages in isolated Docker containers. It provides a secure sandbox environment to prevent code from affecting the host system.How to use MCP Sandbox?
Create a sandbox environment through simple API calls, and then you can execute Python code, install packages, and manage files in it. All operations are performed in isolated containers.Applicable scenarios
Suitable for scenarios that require secure execution of untrusted Python code, such as online code education platforms, AI assistant code execution, and automated testing.Main features
Docker isolationSecurely run Python code in isolated Docker containers to prevent impact on the host system
Package managementEasily install and manage Python packages, and support asynchronous installation status checking
File generationSupport file generation and access via web links for easy viewing of execution results
Terminal command executionExecute terminal commands in the sandbox and obtain execution results
File uploadSupport uploading local files to the sandbox environment
Advantages and limitations
Advantages
Completely isolated execution environment to ensure host security
Support Python package management and install various third - party libraries
Provide file generation and access functions for easy viewing of execution results
Simple and easy - to - use API interface
Limitations
Require Docker environment support
Execution resources are limited by container configuration
Some system - level operations may be restricted
How to use
Installation preparation
Clone the repository and install dependencies
Start the service
Start the MCP Sandbox server
Connect and use
Connect and use through the SSE endpoint. The default address is http://localhost:8000/sse
Usage examples
Basic Python code executionCreate a sandbox and execute simple Python code
Use third - party librariesInstall the numpy package and perform matrix calculations
Generate visual chartsInstall matplotlib and generate charts
Frequently Asked Questions
How to view all available sandboxes?
Why isn't my package installation taking effect immediately?
How to obtain the files generated by code execution?
Related resources
Online demo
MCP Sandbox online demo environment
GitHub repository
Project source code
MCP compatibility
MCP compatibility instructions
Featured MCP Services

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
831
4.3 points

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
1.7K
5 points

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
144
4.5 points

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
89
4.3 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
6.7K
4.5 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
568
5 points

Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
5.2K
4.7 points

Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
285
4.5 points