python_local MCP server for an interactive Python REPL

python_local MCP server for an interactive Python REPL

python-repl•byalec2435

An MCP server that offers an interactive Python REPL environment through a python_repl tool and exposes REPL session history as resources.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides a python_repl tool that executes Python code in a persistent session, given code and session_id arguments.
  • •Maintains separate state for each session and supports both expressions and statements.
  • •Captures and returns stdout/stderr output from executed code.
  • •Exposes REPL session history through a custom repl:// URI scheme as text/plain resources showing input code and output.

BEST FOR

  • •Developers who want to run Python code interactively from an MCP client within a persistent session.
  • •Users who need to review the input code and output of past REPL executions.

ABOUT PYTHON-REPL

python_local MCP server for an interactive Python REPL is cataloged as an MCP server attributed to alec2435. An MCP server that offers an interactive Python REPL environment through a python_repl tool and exposes REPL session history as resources. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for python_local MCP server for an interactive Python REPL are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the Python REPL state persist across executions?

Yes, the python_repl tool executes code in a persistent session and maintains separate state for each session_id.

Can I view past REPL session history?

Yes, session history is accessible via a custom repl:// URI scheme as text/plain resources showing input code and output.

Upstream README

View this exact version on GitHub

README.md · 9aee64bcca5b · Fetched 2026-11-13 08:48:41 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

python_local MCP Server

An MCP Server that provides an interactive Python REPL (Read-Eval-Print Loop) environment.

Components

Resources

The server provides access to REPL session history:

  • Custom repl:// URI scheme for accessing session history
  • Each session's history can be viewed as a text/plain resource
  • History shows input code and corresponding output for each execution

Tools

The server implements one tool:

  • python_repl: Executes Python code in a persistent session
    • Takes code (Python code to execute) and session_id as required arguments
    • Maintains separate state for each session
    • Supports both expressions and statements
    • Captures and returns stdout/stderr output

Configuration

Install

Claude Desktop

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

Development/Unpublished Servers Configuration ```json "mcpServers": { "python_local": { "command": "uv", "args": [ "--directory", "/path/to/python_local", "run", "python_local" ] } } ```
Published Servers Configuration ```json "mcpServers": { "python_local": { "command": "uvx", "args": [ "python_local" ] } } ```

Development

Building and Publishing

To prepare the package for distribution:

  1. Sync dependencies and update lockfile:
uv sync
  1. Build package distributions:
uv build

This will create source and wheel distributions in the dist/ directory.

  1. Publish to PyPI:
uv publish

Note: You'll need to set PyPI credentials via environment variables or command flags:

  • Token: --token or UV_PUBLISH_TOKEN
  • Or username/password: --username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORD

Debugging

Since 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.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for python_local MCP server for an interactive Python REPL from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/python-repl)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools