1. Conduid
  2. Data
  3. Run Python
MCP server · Data

Run Python

MCP server to run Python code in a sandbox.

Unclaimed MIT last commit 10 months ago social
65Good

Scored 20 hours ago · breakdown

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
uvx mcp-run-python
pip
pip install mcp-run-python
From source
git clone https://github.com/pydantic/mcp-run-python

Tools (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.
ParameterTypeDescription
global_variablesobjectMap of global variables in context when the code is executed
python_code *stringPython 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

v0.0.22v0.0.22 (2025-12-11) · 11 Dec 2025What's Changed feat: when verbose logging, also log outputs of deno to console by @Kigstn in https://github.com/pydantic/mcp-run-python/pull/23 feat: add stateless streamable http mode (#8) by @PeterRodenkirchAA in…
v0.0.21v0.0.21 2025-09-03 · 4 Sep 2025What's Changed fix example return code by @samuelcolvin in https://github.com/pydantic/mcp-run-python/pull/7 remove log level arg from sandbox by @samuelcolvin in https://github.com/pydantic/mcp-run-python/pull/11 add code context by…
v0.0.20v0.0.20 2025-09-02 · 2 Sep 2025What's Changed allow multiple sandboxes, rename methods by @samuelcolvin in https://github.com/pydantic/mcp-run-python/pull/3 Reuse pyodide env - much faster repeat execution by @samuelcolvin in…
v0.0.2v0.0.2 2025-09-01 · 2 Sep 2025What's Changed Install dependencies separately by @samuelcolvin in https://github.com/pydantic/mcp-run-python/pull/1 Sandbox by @samuelcolvin in https://github.com/pydantic/mcp-run-python/pull/2 New Contributors @samuelcolvin made their…

README

The repository's README runs to about 909 words, fetched 13 days ago. The original in the repository is authoritative.

Read full README
Questions

About Run Python

How do I install Run Python?

Run uvx mcp-run-python, then add the server to your MCP client's configuration.

Is Run Python safe to use with an AI agent?

Its trust score is 65 out of 100 (good). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Run Python still maintained?

The last commit was 10 months ago and 18 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.

What tools does Run Python provide?

Conduid read 1 tool from the source: run_python_code. 1 of them publish their parameters, listed under Tools above.

What license is Run Python released under?

The repository declares the MIT license. That applies to the latest release, v0.0.22, as well.