Python MCP Sandbox Tool
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Python MCP Sandbox Tool
This tool provides a secure sandbox environment for executing Python scripts via the MCP (Model Communication Protocol). It runs scripts in isolated Docker containers with security constraints.
Features
Secure Sandboxing: Runs Python scripts in isolated Docker containers
Resource Limits:
Memory limit: 4096MB
CPU Cores: 4
Timeout: 120 seconds
Package Allowlist: Only some curated packages are allowed
Read-Only Filesystem: Container filesystem is read-only
Artifact Support: Returns artifacts created during execution
Related MCP server: py-sandbox
Usage
The tool expects a JSON request with a script field containing the Python code to execute.
Example request:
{
"script": "print('Hello from sandbox!')\nprint('This is a test script')"
}Installation
pip install -r requirements.txtRunning
python mcp_sandbox_tool.pyResponse Format
The tool returns a JSON response with:
status: "success" or "error"stdout: Standard output from the scriptstderr: Standard error from the scriptreturn_code: Exit code of the scriptartifacts: Files created during execution (if any)
This server cannot be deployed
Maintenance
Related MCP Connectors
Run Python code in a secure sandbox without local setup. Declare inline dependencies and execute s…
Run sandboxed Python for calculations and PDFs; no other languages, installs or network.
Hosted Python sandbox for package runtime verification: pip install and usable-import evidence.
Give your agent its own cloud: Postgres, Redis, a sandbox or any Docker image, in one MCP call.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables code execution in isolated Docker containers with persistent IPython, Node.js, or R kernels, supporting file import/export and cross-session transfers via MCP tools.6MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to execute arbitrary Python code securely in a sandboxed environment with resource limits and security constraints via MCP protocol.MIT
- FlicenseNot gradedqualityDmaintenanceEnables secure execution of Python code, SQL queries, and metric fetching through MCP with ephemeral Docker sandboxing.-
- AlicenseAqualityDmaintenanceRun Python, JavaScript, or shell snippets in secure, resource-limited Docker containers with no network access, exposed as MCP tools.2Apache 2.0