Python Local MCP Server

Runs Python code locally within an interactive REPL environment.

Local serverstdioPython★ 55

What is the Python Local MCP Server?

Runs Python code locally within an interactive REPL environment.

The short version

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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
python_replExecutes Python code in a persistent session

How to install the Python Local MCP Server

{
  "mcpServers": {
    "python_local": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/python_local",
        "run",
        "python_local"
      ]
    }
  }
}

Maintainer configuration example. Replace example paths and credential placeholders before connecting.

Example prompts to try

  • “Use Python Local to python repl.”
  • “Use Python Local to Resources.”
  • “Use Python Local to Tools.”

Frequently asked questions

Python Local is an MCP server that provides an interactive Python REPL (Read-Eval-Print Loop) environment. It allows you to run Python code locally and interact with it in real-time.