trackmcp
Back to directory
topherbc

python-run-mcp

View on GitHub

MCP server implementation for handling run_python requests

2 stars PythonServers & Infrastructure Updated Jan 15, 2025

Documentation

MCP Server

Python service implementing Model Context Protocol (MCP) for Python code execution via standardized API endpoints.

Installation

bash
pip install -r requirements.txt

Usage

1. Start the server:

bash
python src/server.py

2. Send requests to the `/run_python` endpoint:

bash
curl -X POST http://localhost:8000/run_python \
    -H "Content-Type: application/json" \
    -d '{"code": "print(\'Hello, World!\')"'

Development

  • Follow the modular structure
  • Run tests before submitting changes
  • Update documentation as needed

License

MIT

Frequently asked questions

What is python-run-mcp?

python-run-mcp is MCP server implementation for handling run_python requests

How do I install python-run-mcp?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is python-run-mcp open source?

Yes — it is hosted on GitHub at https://github.com/topherbc/python-run-mcp and has 2 stars.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP