mcp-run-python-code: MCP server for running Python code, installing packages, and executing Python files.
Listed on its own since 2026-09-27. Until then it was part of iflow-mcp-mcp-run-python-code, where its earlier checks remain.
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"mcp-run-python-code","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# mcp-run-python-code Python interpreter, MCP server, no API key, free. Get results from running Python code. ## Overview This MCP server provides tools for running Python code, installing packages, and executing Python files. It can be easily integrated with MCP clients, including Claude and other LLM applications supporting the MCP protocol. ## Features - Execute Python code in a safe environment - Install Python packages using pip - Save Python code to files and run them - Run existing Python files - Return specific variable values from executed code - Error handling and debugging support ## Installation ### From pip You can install the MCP Run Python Code Server using `uv`: ```bash uv pip install mcp-run-python-code ``` Or using pip: ```bash pip install mcp-run-python-code ``` ### From source ```bash git clone https://github.com/shibing624/mcp-run-python-code.git cd mcp-run-python-code pip install -e . ``` ## Usage ### Python Demo ```python from run_python_code import RunPythonCode tool = RunPythonCode(base_dir='/tmp/tmp_run_code/') # 示例1:基本代码执行 result = tool.run_python_code("x = 10\ny = 20\nz = x * y", "z") print(f"结果: {result}") # 输出: 结果: 200 # 示例2:保存并运行文件 result = tool.save_to_file_and_run( file_name="calc.py", code="a = 5\nb = 15\nc = a + b", variable_to_return="c" ) print(f"结果: {result}") # 输出: 结果: 20 # 实例3:安装python包 result = tool.pip_install_package("requests") print(f"结果: {result}") ```  ### Running as a standalone MCP server Run the server with the stdio transport: ```bash uvx mcp-run-python-code ``` or ```bash uv run mcp-run-python-code ``` or ```bash python -m mcp-run-python-code ``` Then, you can use the server with any MCP client that supports stdio transport. ### Integrating with Cursor To add the weather MCP server to Cursor, add stdio MCP with command: ```bash uvx mcp-run-python-code ``` ### Tools available - `run_python…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.