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

  1. install OK
  2. connect Failed
  3. tools visible Not runClaude Code CLI has no non-interactive tool-list command; tool visibility is checked in the task step
  4. 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/pyinterp

Connection check

mcp-python-interpreter: uvx mcp-python-interpreter --dir /workspace/timmy/harness/sandbox/pyinterp - ✘ Failed to connect — CONNECTION_CLOSED: Connection closed

Tools 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).

All MCP servers tested in Claude Code

Featured