Feedback

Python REPL MCP Server

@alec2435 Claim

Basic information

Runtime
Python
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
alec2435
Submitted by
Community
Quality
20
Stars
55

About Python REPL MCP Server

Use our online run python code tool to execute Python code online in an interactive REPL environment. Maintain session state and run statements or expressions.

Python REPL is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by alec2435. Supported transport: stdio. Runtime: Python. License: MIT. The repository has 55 GitHub stars. Source code is hosted on github.com. Related topics: community, developer-tools.

Setup

{
    "mcpServers": {
        "python_local": {
            "command": "uvx",
            "args": [
                "python_local"
            ]
        }
    }
}

Python REPL MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "python_local": {
            "command": "uvx",
            "args": [
                "python_local"
            ]
        }
    }
}

Python REPL MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Python REPL?

The python_local MCP Server provides an interactive Python REPL (Read-Eval-Print Loop) environment as an MCP server. It is designed for use with AI assistants like Claude, allowing them to execute Python code and retrieve session history through the Model Context Protocol.

How to use Python REPL?

Install the server via uvx or configure it locally using uv in your Claude Desktop configuration file (e.g., claude_desktop_config.json). Use the python_repl tool with the required code and session_id arguments to execute Python code in a persistent session.

Key features of Python REPL

  • Provides an interactive Python REPL via MCP
  • Exposes repl:// resource for session history
  • Executes Python code with the python_repl tool
  • Maintains separate state per session
  • Supports both expressions and statements
  • Captures stdout and stderr output

Use cases of Python REPL

  • Execute Python code interactively from an AI assistant
  • Maintain separate state for multiple coding sessions
  • View the history of executed code and output via resources
  • Debug or test small Python snippets within a conversation

Frequently asked questions

1 What does python_local MCP Server do?

It provides an interactive Python REPL environment accessible through the MCP protocol, enabling AI assistants to run Python code and retrieve session history.

2 What tools does it provide?

The server provides one tool, python_repl, which takes code (Python code to execute) and session_id (to identify the session) as required arguments.

3 How is session history accessed?

Session history is available via the custom repl:// URI scheme, which returns the history as text/plain, showing input code and corresponding output for each execution.

4 How are sessions managed?

Each session is identified by a session_id and maintains separate state, allowing multiple independent REPL sessions to run concurrently.

5 How can I debug the server?

You can launch the MCP Inspector via npx @modelcontextprotocol/inspector uv --directory /path/to/python_local run python-local and access the debugging URL in your browser.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬