What is the MCP Server?
The MCP (Model Context Protocol) Server is a Python sandbox that allows LLMs (Large Language Models) to safely execute Python code, install packages, and generate files within isolated Docker containers. It’s designed to provide a secure and controlled environment for LLMs to interact with Python code.
How does Docker isolation enhance security?
Docker isolation ensures that all Python code is executed within isolated environments, preventing any potential security risks or conflicts with the host system. Each sandbox operates independently, providing a clean and secure slate for code execution.
What packages can I install in the sandbox?
You can install any Python package that is available on PyPI (Python Package Index). The MCP Server provides tools to easily install and manage packages within each sandbox.
How do I access files generated by the Python code?
The MCP Server supports file generation within the sandbox, providing web links to access these files. This allows LLMs to create and share data, reports, images, and other outputs seamlessly.
Can I use the MCP Server with AI Agents?
Yes, the MCP Server is particularly useful for AI Agents. It provides a secure and controlled environment for agents to execute code, preventing malicious activity and ensuring the integrity of the system.
How does the MCP Server integrate with UBOS?
The UBOS platform enhances the MCP Server’s capabilities by offering a comprehensive AI Agent development environment. UBOS allows you to orchestrate AI Agents, connect them with your enterprise data, build custom AI Agents, and create Multi-Agent Systems.
What are the available tools for interacting with the MCP Server?
The MCP Server provides several tools, including:
create_sandbox: Creates a new Python Docker sandbox.list_sandboxes: Lists all existing sandboxes.execute_python_code: Executes Python code in a specified sandbox.install_package_in_sandbox: Installs Python packages in a specified sandbox.check_package_installation_status: Checks the installation status of a package.execute_terminal_command: Executes a terminal command in a sandbox.upload_file_to_sandbox: Uploads a local file to a specified sandbox.
Where can I find example configurations?
Example configurations are provided in the documentation to demonstrate how to connect to the server, both locally and through the online demo. These configurations show how to interact with the MCP Server using the available tools.
What should I do if a package installation is taking a long time?
You can use the check_package_installation_status tool to check the status of the package installation. If the package is still installing, you need to check again using this tool until the installation is complete.
How do I handle visualizations in my Python code?
When generating visualizations, save figures to files using plt.savefig() instead of plt.show(). All saved files will automatically appear as HTTP links in the results, which you can open or embed directly.
Python Sandbox Server
Project Details
- JohanLi233/mcp-sandbox
- Apache License 2.0
- Last Updated: 5/1/2025
Recomended MCP Servers
A Model Context Protocol server that provides search capabilities using a Google CSE (custom search engine).
The Gatherings MCP Server provides an API that allows AI assistants to interact with the Gatherings application through...
Youtube Transcript Download MCP
Hedera MCP server
awsome kali MCPServers is a set of MCP servers tailored for Kali Linux, designed to empower AI Agents...
MCP server of web search/fetch functionality using duckduckgo and jina api. no api key required.
A Model Context Protocol (MCP) server that converts various file formats to Markdown using the MarkItDown utility.
An MCP server exploration
flux-image-generator-mcp
Interact with your coolify server from claude desktop





