About Run Python
Run Python is an MCP server published by pydantic in the Data category: mCP server to run Python code in a sandbox. Conduid read 1 tool from its source: run_python_code. It is published to PyPI as mcp-run-python and runs with uvx.
The repository has 193 stars and 28 forks, is licensed MIT, and its last commit was on 30 Jan 2026. The latest release is v0.0.22 (11 Dec 2025). It follows v0.0.21 (4 Sep 2025), and the 4 most recent releases go back to v0.0.2 (2 Sep 2025). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include social.
Install
uvx mcp-run-pythonpip install mcp-run-pythongit clone https://github.com/pydantic/mcp-run-pythonTools (1)
run_python_codeTool to execute Python code and return stdout, stderr, and return value. The code may be async, and the value on the last line will be returned as the return value. The code will be executed with Python 3.13.| Parameter | Type | Description |
|---|---|---|
| global_variables | object | Map of global variables in context when the code is executed |
| python_code * | string | Python code to run |
Security checks
- ✓README presentThe repository's README runs to about 909 words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- !No dynamic code executionScanned 8 source files and found 1 call to eval or shell execution, in mcp_run_python/code_sandbox.py. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
Releases
README
The repository's README runs to about 909 words, fetched 13 days ago. The original in the repository is authoritative.
Read full README