- Explore MCP Servers
- python-run-mcp
Python Run Mcp
What is Python Run Mcp
python-run-mcp is an implementation of the Model Context Protocol (MCP) that allows for the execution of Python code through standardized API endpoints.
Use cases
Use cases for python-run-mcp include building interactive coding environments, integrating Python execution in web applications, and creating automated testing frameworks for Python scripts.
How to use
To use python-run-mcp, first install the required packages with ‘pip install -r requirements.txt’. Then, start the server by running ‘python src/server.py’. You can send requests to the ‘/run_python’ endpoint using a tool like curl.
Key features
Key features of python-run-mcp include a modular structure for easy development, support for executing Python code via a RESTful API, and a testing framework to ensure code quality.
Where to use
python-run-mcp can be used in various fields such as web development, data analysis, and educational tools where Python code execution is required.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Python Run Mcp
python-run-mcp is an implementation of the Model Context Protocol (MCP) that allows for the execution of Python code through standardized API endpoints.
Use cases
Use cases for python-run-mcp include building interactive coding environments, integrating Python execution in web applications, and creating automated testing frameworks for Python scripts.
How to use
To use python-run-mcp, first install the required packages with ‘pip install -r requirements.txt’. Then, start the server by running ‘python src/server.py’. You can send requests to the ‘/run_python’ endpoint using a tool like curl.
Key features
Key features of python-run-mcp include a modular structure for easy development, support for executing Python code via a RESTful API, and a testing framework to ensure code quality.
Where to use
python-run-mcp can be used in various fields such as web development, data analysis, and educational tools where Python code execution is required.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
MCP Server
Python service implementing Model Context Protocol (MCP) for Python code execution via standardized API endpoints.
Installation
pip install -r requirements.txt
Usage
- Start the server:
python src/server.py
- Send requests to the
/run_pythonendpoint:
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
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










