Does MCP Python Interpreter work with ChatGPT (Codex)?

Not in our test. MCP Python Interpreter installed in ChatGPT (Codex) but failed our agent task on Oct 22, 2026. Details of what went wrong are below.

Result

ResultFailed
Date testedOct 22, 2026
Plan tested onChatGPT Plus
App versionCodex CLI 0.162.0-alpha.17.2
Server packagemcp-python-interpreter 1.2.3
Connect timeconnect time not recorded
Modelgpt-6-luna (reasoning low)

Steps

  1. install OK
  2. connect Not run
  3. tools visible Not run
  4. agent task: run cell FailedWhy it failed: no successful call to this server's tools; answer missing ['42']; no tool result containing ['42']

From our own harness run, not the maker’s claims. How we test.

Versions tested

Codex CLI 0.162.0-alpha.17.2 · mcp-python-interpreter 1.2.3 · connect time not recorded · tested Oct 22, 2026

Server package tested: mcp-python-interpreter 1.2.3 (uv, Python 3.12.15; resolved 2026-10-22)

Direct and key dependencies as resolved: anyio 4.15.1 · fastmcp 4.1.3 · mcp 2.3.0 · pydantic 2.14.1 · pydantic-settings 2.16.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 69 resolved dependencies
aiofile==3.12.3
annotated-types==0.8.0
anyio==4.15.1
attrs==26.1.0
Authlib==1.9.1
beartype==0.23.1
cachetools==7.2.4
caio==0.12.9
certifi==2026.10.19
cffi==2.1.1
click==8.5.0
cryptography==50.0.2
cyclopts==5.3.0
dnspython==2.9.0
docstring_parser==0.18.0
email-validator==2.3.0
exceptiongroup==1.3.1
fastmcp==4.1.3
fastmcp-slim==4.1.3
griffelib==2.4.1
h11==0.16.0
httpcore2==2.16.0
httpx2==2.16.0
idna==3.20
jaraco.classes==3.4.0
jaraco.context==6.1.2
jaraco.functools==4.6.0
jeepney==0.9.0
joserfc==1.7.7
jsonref==1.1.0
jsonschema==4.26.0
jsonschema-path==0.5.0
jsonschema-specifications==2025.9.1
keyring==25.7.0
markdown-it-py==4.2.0
mcp==2.3.0
mcp-types==2.3.0
mdurl==0.1.2
more-itertools==11.2.1
openapi-pydantic==0.6.0
opentelemetry-api==1.45.1
packaging==26.3
pathable==0.6.0
platformdirs==4.13.5
py-key-value-aio==0.4.6
pycparser==3.12
pydantic==2.14.1
pydantic-settings==2.16.1
pydantic_core==2.50.1
Pygments==2.21.0
PyJWT==2.15.1
pyperclip==1.11.0
python-dotenv==1.2.4
python-multipart==0.0.32
PyYAML==6.0.3
referencing==0.37.0
rich==15.0.0
rich-rst==2.2.0
rpds-py==2026.9.1
SecretStorage==3.5.0
sse-starlette==3.5.0
starlette==1.9.0
truststore==0.10.5
typing-inspection==0.4.4
typing_extensions==4.16.0
uncalled-for==0.4.1
uvicorn==0.54.0
watchfiles==1.3.0
websockets==17.3

Captured with: uvx --from mcp-python-interpreter 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-python-interpreter]
command = "uvx"
args = ["mcp-python-interpreter", "--dir", "{SANDBOX}/pyinterp"]

Connection check

no tool call reached the server

Tools check

checked in task step

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 Python Interpreter page. Not connecting? ChatGPT (Codex) MCP troubleshooting.

Other apps we tested it in: Claude Code (failed) · Cursor (failed).

All MCP servers tested in ChatGPT (Codex)

Sponsors