Python Sandbox MCP Server

A MCP server that enables LLMs to run python code safely in isolated Docker containers.

Local serverstdioPython

What is the Python Sandbox MCP Server?

A MCP server that enables LLMs to run python code safely in isolated Docker containers.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Python Sandbox MCP Server

{
  "mcpServers": {
    "python-sandbox": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "ghcr.io/python-discord/snekbox"],
      "env": {
        "SNEKBOX_URL": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
SNEKBOX_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • “Use Python Sandbox to Real.”
  • “Use Python Sandbox to MCP SERVER NAME.”
  • “Use Python Sandbox to SNEKBOX URL.”

Frequently asked questions

A MCP server that enables LLMs to run python code safely in isolated Docker containers. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.