MCP.so
登录

Python Runner MCP Server

@taiji1985

基本信息

分类

其他

传输方式

stdio

作者

taiji1985

关于 Python Runner MCP Server

A MCP Server Of python runner

Python Runner MCP Server 配置

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

{
  "mcpServers": {
    "python_runner_mcp": {
      "command": "uvx",
      "args": [
        "python-runner"
      ]
    }
  }
}

Python Runner MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is Python Runner MCP Server?

A Python code execution server built on the FastMCP framework, designed for data science and machine learning workflows. It executes Python code in isolated namespaces and comes with pre-installed libraries such as NumPy, pandas, scikit-learn, Matplotlib, and more.

How to use Python Runner MCP Server?

Run the server directly with uvx python-runner (no installation required) or install manually via uv/pip and run python main.py. For use with Claude Desktop, add the server configuration to your claude_desktop_config.json file.

Key features of Python Runner MCP Server

  • Safe Python code execution in isolated namespaces
  • Pre-installed data science and machine learning libraries
  • Real-time capture of stdout, stderr, and return values
  • Fully compatible with the Model Context Protocol
  • Simple API: execute_python(code) returns a dict with output, error, and success

Use cases of Python Runner MCP Server

  • Run data analysis with pandas, NumPy, or SciPy
  • Train and evaluate scikit-learn models
  • Generate plots with Matplotlib, Seaborn, or Plotly
  • Test and debug Python snippets within Claude Desktop
  • Perform scientific computing or network analysis with SymPy or NetworkX

常见问题

1

What are the runtime requirements?

Python 3.12 or higher and the uv package manager (recommended) or pip.

2

How can I run the server without installing anything?

Use `uvx python-runner` directly. This requires no prior installation.

3

Is it safe to execute arbitrary code?

Code runs in isolated namespaces and output is captured separately. However, the tool does execute arbitrary Python code; only use it in a trusted environment.

4

How do I call the server from Python directly?

After manual installation, import `execute_python` from `main` and pass a code string. The function returns a dict with `output`, `error`, and `success` keys.

评论

其他 分类下的更多 MCP 服务器