MR

MCP Run Python (Pydantic)

Runs Python code in a sandbox (Pyodide on Deno) and returns the output. Needs Deno installed. The maker archived the repo.

📊 Data & notebooksGitHub stars193Updated 2026-01-30By pydanticLicense: MITAuth: NoneGitHub ↗

Test results

Last passed 2026-10-20
Claude CodePassed2026-10-15 · install, connect, tools, agent taskTested with Claude Code 2.1.296 · server reported v0.0.13 · connect time not recorded
CursorPassed2026-10-15 · install, connect, tools, agent taskTested with Cursor CLI 2026.10.12-d47ca18 · server reported v0.0.13 · connect time not recorded
Claude DesktopPassed2026-10-18 · install, connect, tools, agent taskTested with Claude Desktop 2.37337.1 (Linux beta) · package version not recorded · connected in 11s
ChatGPT (Codex)Passed2026-10-20 · install, connect, tools, agent taskTested with Codex CLI 0.162.0-alpha.17.2 · mcp-run-python 0.0.22 · connect time not recorded

Server package tested: mcp-run-python 0.0.22 (uv, Python 3.12.15; resolved 2026-10-20)

Direct and key dependencies as resolved: anyio 4.15.1 · mcp 2.3.0 · pydantic 2.14.1 · pydantic_core 2.50.1 · sse-starlette 3.5.0 · starlette 1.9.0 · typing_extensions 4.16.0 · uvicorn 0.54.0

All 28 resolved dependencies
annotated-types==0.8.0
anyio==4.15.1
attrs==26.1.0
cffi==2.1.1
click==8.5.0
cryptography==50.0.2
h11==0.16.0
httpcore2==2.15.1
httpx2==2.15.1
idna==3.20
jsonschema==4.26.0
jsonschema-specifications==2025.9.1
mcp==2.3.0
mcp-types==2.3.0
opentelemetry-api==1.45.1
pycparser==3.11
pydantic==2.14.1
pydantic_core==2.50.1
PyJWT==2.15.1
python-multipart==0.0.32
referencing==0.37.0
rpds-py==2026.9.1
sse-starlette==3.5.0
starlette==1.9.0
truststore==0.10.5
typing-inspection==0.4.4
typing_extensions==4.16.0
uvicorn==0.54.0

Captured with: uvx --from mcp-run-python python (importlib.metadata in the same uvx env; equivalent to uv pip freeze).

Full result per app: Does it work with Claude Code? · Does it work with Cursor? · Does it work with Claude Desktop? · Does it work with ChatGPT (Codex)?

Protocol: starts, 1 tools listed · 2026-10-15 · connected in 3.8s
🧪 Test-box note: Requires Deno on PATH (documented prerequisite). Installed user-local Deno ~/.deno on the box.

Real test

Passed

One run from our records. When two runs share a date, we show a failure if there is one.

Client
ChatGPT (Codex) · Codex CLI 0.162.0-alpha.17.2
Date
Oct 20, 2026
The task we gave
Using only the mcp-run-python MCP tools, run print(6*7) in the notebook kernel and reply with the output.
What it promised
details not recorded for this run
What happened

Tool calls:

mcp-run-python:run_python_code

Tool result

{"content": [{"type": "text", "text": "<status>success</status>\n<output>\n42\n</output>"}], "structured_content": null}

Agent reply

42
Verdict
Passed

Install

claude mcp add mcp-run-python -- uvx mcp-run-python stdio

Run in your terminal. This exact command is what our harness runs in Claude Code; see the results above.

{
  "mcpServers": {
    "mcp-run-python": {
      "command": "uvx",
      "args": [
        "mcp-run-python",
        "stdio"
      ]
    }
  }
}

Save as .cursor/mcp.json. This exact config is what our harness runs in Cursor; see the results above.

{
  "mcpServers": {
    "mcp-run-python": {
      "command": "uvx",
      "args": [
        "mcp-run-python",
        "stdio"
      ]
    }
  }
}

Add to claude_desktop_config.json and restart Claude Desktop. Tested on the Linux beta; see the results above.

[mcp_servers.mcp-run-python]
command = "uvx"
args = ["mcp-run-python", "stdio"]

Add to ~/.codex/config.toml (shared by the ChatGPT (Codex) CLI and the ChatGPT desktop app; Codex runs inside the ChatGPT desktop app). Tested with the ChatGPT (Codex) CLI bundled in the ChatGPT desktop app; see the results above.

Not connecting? Troubleshooting: Claude Code · Cursor · Claude Desktop · ChatGPT (Codex)

Test history

DateCheckResultVersions tested
2026-10-20ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · mcp-run-python 0.0.22
2026-10-18Claude DesktopPassed
install, connect, tools, agent task
Claude Desktop 2.37337.1 (Linux beta) · package version not recorded
2026-10-15Protocol (direct stdio)Protocol: starts, 1 tools listedserver reported v0.0.13
2026-10-15Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · server reported v0.0.13
2026-10-15CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.12-d47ca18 · server reported v0.0.13

Tested on ToolPassed badge

ToolPassed: passed Claude Code, Cursor, Claude Desktop, ChatGPT (Codex)

Maker of MCP Run Python (Pydantic)? It passed in Claude Code, Cursor, Claude Desktop, ChatGPT (Codex) on 2026-10-20. Add this free badge to your README; it links back to this listing. Free, no strings: the badge never changes a result.

[![Tested on ToolPassed](https://toolpassed.com/badge/mcp/mcp-run-python.svg)](https://toolpassed.com/mcp/mcp-run-python/)

Tools seen by our harness (1)

run_python_code
Featured