Does MCP Run Python (Pydantic) work with ChatGPT (Codex)?
Yes. MCP Run Python (Pydantic) passed every step of our test in ChatGPT (Codex) on Oct 20, 2026: it installed, connected, its tools were visible, and an agent used it to finish a real task.
Result
Steps
- install OK
- connect OK
- tools visible OK
- agent task: run cell OK
From our own harness run, not the maker’s claims. How we test.
Versions tested
Codex CLI 0.162.0-alpha.17.2 · mcp-run-python 0.0.22 · connect time not recorded · tested Oct 20, 2026
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.0Captured with: uvx --from mcp-run-python python (importlib.metadata in the same uvx env; equivalent to uv pip freeze).
What happened in this run
Install config we used
[mcp_servers.mcp-run-python]
command = "uvx"
args = ["mcp-run-python", "stdio"]Connection check
server answered tool calls during the taskTools check
verified via task step: agent saw and called the server's tools
Agent task: run cell
- Tool calls, in order:
mcp-run-python:run_python_code
Raw details from our harness log for this run. Secrets redacted.
Set it up in ChatGPT (Codex)
Copy-paste config for every app is on the MCP Run Python (Pydantic) page. Not connecting? ChatGPT (Codex) MCP troubleshooting.
Other apps we tested it in: Claude Code (passed) · Cursor (passed) · Claude Desktop (passed).