python_mcp

Alec2435
52
MCP Server to run python code locally

Overview

What is python_mcp

python_mcp is an MCP Server designed to run Python code locally, providing an interactive Python REPL (Read-Eval-Print Loop) environment.

How to Use

To use python_mcp, configure it in the Claude Desktop settings, then execute Python code through the `python_repl` tool, which maintains a persistent session and allows for both expressions and statements.

Key Features

Key features include access to REPL session history via a custom `repl://` URI scheme, separate state management for each session, and the ability to capture and return stdout/stderr output.

Where to Use

python_mcp can be used in educational settings for teaching Python, in development environments for testing code snippets, and in any scenario where interactive Python execution is required.

Use Cases

Use cases include interactive coding sessions for learning, debugging Python scripts, and rapid prototyping of Python applications.

Content