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
Basic information
MCP Server to run python code locally
Add this server to your MCP-compatible client using the configuration below.
{
"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.

A good sequence diagram can solve almost any communication problem in engineering. Volley lets your agent write them as plain text, with the real request and response payloads on every arrow. It checks its own syntax wi
MCP Toolbox for Databases is an open source MCP server for databases.
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
Open-source MCP to use Blender with any LLM
Painless E2E Automation for Mobile and Web
Comments