python_mcp

python_mcp

53

The python_local MCP Server offers an interactive Python REPL environment within the Model Context Protocol framework, allowing users to execute Python code in a persistent session. It provides a unique URI scheme for accessing session history and supports easy package distribution and debugging with specialized tools.

python_local MCP Server

An MCP Server providing an interactive Python REPL environment.

Components

Resources

  • Custom repl:// URI scheme for session history.
  • Session history available as text/plain resource.

Tools

  • python_repl: Executes Python code in a persistent session with code and session_id as arguments.

Configuration

Install

  • MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json

Development

Building and Publishing
  1. Sync dependencies.
  2. Build package distributions.
  3. Publish to PyPI with credentials.
Debugging