Python SandboxSAFE
Python sandboxes for llms
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Feel free to try on mcp sandbox
[](https://www.python.org/downloads/release/python-3120/) [](https://opensource.org/licenses/Apache-2.0) [](https://github.com/astral-sh/uv) [](https://github.com/estitesc/mission-control-link)
中文文档 | English
Demo
Python MCP Sandbox is an interactive Python code execution tool that allows users and LLMs to safely execute Python code and install packages in isolated Docker containers.
Viby
Viby works with mcp sandbox
Features
- 🐳 Docker Isolation: Securely run Python code in isolated Docker containers
- 📦 Package Management: Easily install and manage Python packages with support for custom PyPI mirrors
- 📊 File Generation: Support for generating files and accessing them via web links
- 🔐 Authentication: Optional API key-based authentication for multi-user environments
- 🎨 Web UI: Built-in web interface for managing sandboxes and viewing execution results
- 🌐 SSE Support: Real-time communication via Server-Sent Events for MCP integration
Installation
# Clone the repository git clone https://github.com/JohanLi233/python-mcp-sandbox.git cd python-mcp-sandbox # Install dependencies using uv uv venv uv sync # Start the server uv run main.py
The default SSE endpoint is http://127.0.0.1:8181/sse, and you can interact with it via the MCP Inspector through SSE or any other client that supports SSE connections.
Configuration
The server
0dcfff2bde7dOBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add ui -- npx -y [email protected]
{
"mcpServers": {
"ui": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (1)
1 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
list_sandboxes | read | # Get user ID |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- declared (2 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (8)
.docker_build_info
The default SSE endpoint is http://127.0.0.1:8181/sse, and you can interact with it via the MCP Inspector through SSE or any other client that supports SSE connections.
"args": ["-y", "supergateway", "--sse", "http://127.0.0.1:8181/sse"]
"args": ["-y", "supergateway", "--sse", "http://127.0.0.1:8181/sse?api_key=<YOUR_API_KEY>"]
"args": ["-y", "supergateway", "--sse", "http://115.190.87.78/sse?api_key=<API_KEY>"]
"args": ["-y", "supergateway", "--sse", "http://115.190.87.78/sse?api_key=<API_KEY>"]
@tailwindcss/vite, axios, framer-motion, lucide-react, react, react-dom, react-router-dom, tailwindcss
assets/demo.gif
Gates applied: no_behavioural_pass.
0dcfff2bde7dfull audit observations/trust-audit/mcp-server/johanli233__python-sandbox.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 0dcfff2bde7d | SAFE | B | 89 | first audit |
Questions
What is the Python Sandbox MCP server?
Python sandboxes for llms
What tools does Python Sandbox expose?
1 in total: 1 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Python Sandbox safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Python Sandbox need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (0dcfff2bde7d), read on 2026-10-08. The repository is watched and re-audited when it changes.