Does MCP Python Interpreter work with Claude Code?
Not in our test. MCP Python Interpreter installed in Claude Code but never connected on Oct 15, 2026 (connect time not recorded), so no agent task could use it. Details of what went wrong are below.
Result
ResultFailed
Date testedOct 15, 2026
Plan tested onClaude Pro
App versionClaude Code 2.1.296
Server packagepackage version not recorded
Connect timeconnect time not recorded
Modelhaiku
Steps
- install OK
- connect Failed
- tools visible Not runClaude Code CLI has no non-interactive tool-list command; tool visibility is checked in the task step
- agent task: run cell FailedWhy it failed: no successful call to this server's tools; no tool result containing ['42']
From our own harness run, not the maker’s claims. How we test.
Versions tested
Claude Code 2.1.296 · package version not recorded · connect time not recorded · tested Oct 15, 2026
Server package and resolved dependency versions: not recorded for these runs (our harness records them from Oct 19, 2026 on).
What happened in this run
Install config we used
claude mcp add -s local mcp-python-interpreter -- uvx mcp-python-interpreter --dir /workspace/timmy/harness/sandbox/pyinterpConnection check
mcp-python-interpreter: uvx mcp-python-interpreter --dir /workspace/timmy/harness/sandbox/pyinterp - ✘ Failed to connect — CONNECTION_CLOSED: Connection closedTools check
not_run
Raw details from our harness log for this run. Secrets redacted.
Set it up in Claude Code
Copy-paste config for every app is on the MCP Python Interpreter page. Not connecting? Claude Code MCP troubleshooting.
Other apps we tested it in: Cursor (failed) · ChatGPT (Codex) (failed).