python-run-mcp

python-run-mcp

3.2

If you are the rightful owner of python-run-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The MCP Server is a Python service that implements the Model Context Protocol for executing Python code via standardized API endpoints.

MCP Server

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

Installation

pip install -r requirements.txt

Usage

  1. Start the server:
python src/server.py
  1. Send requests to the /run_python endpoint:
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