- Home
- MCP servers
- Python Run MCP
Python Run MCP
- python
2
GitHub Stars
python
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
This MCP server provides a Python-based service that executes Python code via a standardized API. It lets you run arbitrary Python snippets through a defined endpoint, enabling programmatic code execution within a controlled MCP workflow for clients that need to evaluate or sandbox Python code execution.
How to use
You use this MCP server by sending a request from your MCP client to the designated Python run endpoint. The server exposes a single HTTP endpoint you can invoke to execute Python code and receive the result or output.
How to install
Prerequisites you need before installation are Python 3.x and a working network stack on your machine.
Install the required Python packages listed in the project’s requirements file using your Python package manager.
Start the MCP Python server so it begins listening for requests on the default port.
Additional sections
Configuration notes: The server runs a Python-based MCP service and exposes a run endpoint for executing code. Ensure your environment has the necessary permissions to bind to the chosen port and that access to the endpoint is secured according to your deployment’s security requirements.
Security and troubleshooting: Treat the endpoint as a potentially sensitive execution channel. Implement appropriate authentication, limit resource usage, and monitor for unusual activity. If the server fails to start, verify that Python is installed, that the required packages are installed, and that the port is not already in use.
Available tools
run_python
Executes provided Python code via the MCP server's run_python endpoint and returns the output or result of the code execution.