MCP.so
登录

MCP Server

@topherbc

关于 MCP Server

MCP server implementation for handling run_python requests

基本信息

分类

其他

传输方式

stdio

发布者

topherbc

配置

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

{
  "mcpServers": {
    "python-run-mcp": {
      "command": "python",
      "args": [
        "src/server.py"
      ]
    }
  }
}

工具

未检测到工具

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

概览

What is MCP Server?

MCP Server is a Python service that implements the Model Context Protocol (MCP) to provide Python code execution through standardized API endpoints.

How to use MCP Server?

Install dependencies with pip install -r requirements.txt, start the server using python src/server.py, then send POST requests containing JSON with the key "code" to the /run_python endpoint.

Key features of MCP Server

  • Implements Model Context Protocol for Python code execution.
  • Exposes a /run_python API endpoint.
  • Lightweight, single‑command startup.
  • Uses standard HTTP POST with JSON payloads.
  • Written in Python with modular structure.

Use cases of MCP Server

  • Execute Python code remotely via API calls.
  • Integrate Python execution capabilities into AI agent workflows.
  • Provide a sandboxed code‑running service for development and testing.

FAQ from MCP Server

What runtime does MCP Server require?

Python 3 and the packages listed in requirements.txt.

How do I start MCP Server?

Run python src/server.py from the project root.

How do I run Python code using MCP Server?

Send a POST request to http://localhost:8000/run_python with a JSON body containing a "code" key set to the Python code string.

Does MCP Server support streaming or websocket transports?

No. The README only specifies a standard HTTP POST API.

What authentication or security is configured?

None. The README does not mention authentication; security must be implemented externally.

评论

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