P

Python REPL

An MCP server that provides an interactive Python REPL environment
2.5 points
68

What is the Python Local MCP Server?

The Python Local MCP Server is a Python-based interactive REPL (Read-Eval-Print Loop) environment that allows users to execute Python code and access the history through a custom protocol.

How to use the Python Local MCP Server?

Users can run code sessions through the provided tools and view the history through the specified URI scheme.

Applicable Scenarios

Suitable for scenarios where users need to quickly test Python code, conduct development and debugging, or require persistent code execution sessions.

Main Features

Interactive Python REPLSupports users to input Python code and obtain real-time execution results.
Session HistoryThe history of each session can be viewed as a text resource.
Multi-session SupportMaintains multiple independent session states to ensure data isolation.

Advantages and Limitations

Advantages
Quick execution of Python code
Easy to integrate into other tools
Supports multiple operating system platforms
Limitations
Requires local environment support
Has certain dependence on the network environment

How to Use

Installation and Configuration
Ensure that Python and related dependencies are installed, and set up the server according to the instructions in the configuration file.
Start the Server
Start the server using the configuration file and ensure that the listening port is working properly.
Run Code
Run Python code through the tool and obtain the results.

Usage Examples

Execute Simple Python CodeUsers want to execute simple expressions in the Python environment.
View Session HistoryUsers want to review the previously executed code and its results.

Frequently Asked Questions

How to install the Python Local MCP Server?
How to view the session history?

Related Resources

MCP Inspector
A tool for debugging MCP servers.
Official Documentation
Detailed user manuals and technical documents.
Installation
Copy the following command to your Client for configuration
"mcpServers": {
    "python_local": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/python_local",
        "run",
        "python_local"
      ]
    }
  }

"mcpServers": {
    "python_local": {
      "command": "uvx",
      "args": [
        "python_local"
      ]
    }
  }
Note: Your key is sensitive information, do not share it with anyone.
Featured MCP Services
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
838
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
151
4.5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
99
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
1.7K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
6.7K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
573
5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
5.2K
4.7 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
761
4.8 points
AIbase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIbase