MCP.so
登录

Python Sandbox MCP Server

@cloudywu0410

关于 Python Sandbox MCP Server

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

基本信息

分类

推理

运行时

python

传输方式

stdio

发布者

cloudywu0410

提交者

cloudywu0410

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "python-sandbox-sse": {
      "command": "mcp-proxy",
      "args": [
        "http://localhost:8060/eval"
      ],
      "ssePath": "/eval"
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Python Sandbox MCP Server?

A secure Python code execution server that enables LLMs to run Python code safely in isolated Docker containers. It supports stdout capture, Matplotlib plotting with PNG image generation, and real-time communication via Server-Sent Events (SSE). The server uses the Snekbox Docker container for sandboxing, providing a safe environment for code execution. It is designed for integration with MCP-compatible clients such as Claude Desktop.

How to use Python Sandbox MCP Server?

First, clone the repository and install dependencies using uv add -r requirements.txt. Then pull the Snekbox Docker image and start the container with security parameters. Optionally install additional Python packages inside the container. Finally, update your MCP client configuration to point to the local build, e.g., using mcp-proxy with SSE endpoint http://localhost:8060/eval. The server can be configured via environment variables MCP_SERVER_NAME, SNEKBOX_URL, and TEMP_DIR.

Key features of Python Sandbox MCP Server

  • Regular Python code execution with stdout capture
  • Matplotlib plotting with PNG image generation

评论

推理 分类下的更多 MCP 服务器