The Code Sandbox MCP Server provides AI assistants and LLM applications with secure code execution capabilities by running Python and JavaScript code snippets in isolated containerized environments. It exposes two tools—`run_python_code` and `run_js_code`—that accept code strings and return execution output and error streams after safely executing the code in a container managed by podman or docker. This server solves the problem of safely executing untrusted or experimental code without exposing the host system to potential risks.
claude mcp add --transport stdio philschmid-code-sandbox-mcp uvx code-sandbox-mcp