P

python-run-mcp

Created Oct 19, 2025 by topherbc

Language:

Python

Stars:

2

Forks:

1

README

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
  2. 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

Last updated: Oct 19, 2025

Publisher info

topherbc's avatar

topherbc

54
followers
2
following
22
repos

More MCP servers built with Python

Stable Diffusion WebUI

Stable Diffusion web UI

By AUTOMATIC1111 160.1K
Transformers

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

By huggingface 155.5K
PyTorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

By pytorch 96.8K