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 withcode
andsession_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
- Sync dependencies.
- Build package distributions.
- Publish to PyPI with credentials.
Debugging
- Use MCP Inspector for debugging.