This server gives Claude the ability to execute Python code in throwaway sandboxes that vanish after each run. Scripts declare dependencies inline using PEP 723 metadata blocks, uv resolves them ephemerally, and nothing touches your host Python installation. It exposes execute_python for running code with configurable timeouts, validate_script for checking metadata without execution, and check_environment for inspecting the runtime. On Linux it uses bubblewrap for namespace isolation, elsewhere it spins up Docker containers. You can target Python 3.13 through 3.15 regardless of what's on your host machine. Reach for this when you need Claude to prototype with third-party packages or analyze data without polluting your system with accumulating virtualenvs and package conflicts.
claude mcp add --transport stdio lu-zhengda-mcp-python-exec-sandbox -- uvx mcp-python-exec-sandbox