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.
@Alec2435
基本信息
MCP Server to run python code locally
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"python_mcp": {
"command": "uv",
"args": [
"sync"
]
}
}
}Executes Python code in a persistent session
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.
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.
repl:// resource for session historypython_repl toolIt provides an interactive Python REPL environment accessible through the MCP protocol, enabling AI assistants to run Python code and retrieve session history.
The server provides one tool, `python_repl`, which takes `code` (Python code to execute) and `session_id` (to identify the session) as required arguments.
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.
Each session is identified by a `session_id` and maintains separate state, allowing multiple independent REPL sessions to run concurrently.
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.

Connect your AI assistant to your own YOUB endurance training account. Read recorded activities with full analysis, planned sessions, race goals, wellness (HRV, sleep, resting HR) and your athletic profile. Create or mov
Open-source MCP to use Blender with any LLM
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。

Request dedicated senior developers to work on your project, write job descriptions, and prep technical interviews — all without leaving your Claude chat. Just describe what you need, and Lemon.io MCP does the rest. 1–3
评论