Code Sandbox

Provides secure code execution capabilities through containerized sandbox environments, supporting Python and JavaScript with pre-

philschmid 199
Claude CodeClaude DesktopGeneric
View source ↗

This MCP server provides AI assistants with secure code execution capabilities through containerized sandbox environments, supporting both Python and JavaScript code execution with pre-installed libraries like numpy, pandas, matplotlib, and Google's genai SDK. Built by Philipp Schmid using the llm-sandbox package and FastMCP framework, it creates isolated Docker/Podman containers for each execution, captures stdout/stderr output, and includes automatic error handling with proper timeout controls. The implementation features two specialized tools (run_python_code and run_javascript_code) with customizable container images, making it valuable for AI assistants that need to execute code snippets safely, perform data analysis, generate visualizations, or prototype applications without compromising the host system's security.

Source

Repository: https://github.com/philschmid/code-sandbox-mcp

Maintain Code Sandbox?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[Code Sandbox on getagentictools](https://getagentictools.com/mcp/philschmid-code-sandbox-mcp?ref=badge)