Python REPL
STDIOInteractive Python REPL environment with persistent session support
Interactive Python REPL environment with persistent session support
An MCP Server that provides an interactive Python REPL (Read-Eval-Print Loop) environment.
The server provides access to REPL session history:
repl:// URI scheme for accessing session historyThe server implements one tool:
python_repl: Executes Python code in a persistent session
code (Python code to execute) and session_id as required argumentsOn MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
To prepare the package for distribution:
uv sync
uv build
This will create source and wheel distributions in the dist/ directory.
uv publish
Note: You'll need to set PyPI credentials via environment variables or command flags:
--token or UV_PUBLISH_TOKEN--username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORDSince MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
You can launch the MCP Inspector via npm with this command:
npx @modelcontextprotocol/inspector uv --directory /path/to/python_local run python-local
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.