Basic information
About MCP Server
MCP server implementation for handling run_python requests
MCP Server is a MCP server in the Other category listed in the AddMCP.net directory, published by topherbc. Supported transport: stdio. Runtime: Python. The repository has 2 GitHub stars. Source code is hosted on github.com. Related topics: api, code-execution, mcp, python, server.
Setup
{
"mcpServers": {
"python-run-mcp": {
"command": "python",
"args": [
"src/server.py"
]
}
}
}
{
"mcpServers": {
"python-run-mcp": {
"command": "python",
"args": [
"src/server.py"
]
}
}
}
{
"servers": {
"python-run-mcp": {
"command": "python",
"args": [
"src/server.py"
]
}
}
}
MCP Server — by topherbc config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"python-run-mcp": {
"command": "python",
"args": [
"src/server.py"
]
}
}
}
MCP Server — by topherbc tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP Server?
MCP Server is a Python service that implements the Model Context Protocol (MCP) to provide Python code execution through standardized API endpoints.
How to use MCP Server?
Install dependencies with pip install -r requirements.txt, start the server using python src/server.py, then send POST requests containing JSON with the key "code" to the /run_python endpoint.
Key features of MCP Server
- Implements Model Context Protocol for Python code execution.
- Exposes a
/run_pythonAPI endpoint. - Lightweight, single‑command startup.
- Uses standard HTTP POST with JSON payloads.
- Written in Python with modular structure.
Use cases of MCP Server
- Execute Python code remotely via API calls.
- Integrate Python execution capabilities into AI agent workflows.
- Provide a sandboxed code‑running service for development and testing.
Frequently asked questions
1 What runtime does MCP Server require?
Python 3 and the packages listed in requirements.txt.
2 How do I start MCP Server?
Run python src/server.py from the project root.
3 How do I run Python code using MCP Server?
Send a POST request to http://localhost:8000/run_python with a JSON body containing a "code" key set to the Python code string.
4 Does MCP Server support streaming or websocket transports?
No. The README only specifies a standard HTTP POST API.
5 What authentication or security is configured?
None. The README does not mention authentication; security must be implemented externally.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In