MCP Server — yzfly/mcp-python-interpreter

MCP server for Python code execution and environment management

Local serverstdioPython

What is the MCP Server?

MCP server for Python code execution and environment management

What it actually does

A Model Context Protocol (MCP) server that allows LLMs to interact with Python environments, read and write files, execute Python code, and manage development workflows.

  • Environment Management — List and use different Python environments (system and conda)
  • Code Execution — Run Python code or scripts in any available environment
  • Package Management — List installed packages and install new ones
  • File Operations —
  • Read files of any type (text, source code, binary)
  • Write text and binary files

Configuration

  • Make sure you have uv installed. If not, install it using: - For Windows:

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.

How to install the MCP Server

claude mcp add python-interpreter-1 --env MCP_ALLOW_SYSTEM_ACCESS=your-value -- uvx mcp-python-interpreter

Configuration

  • Make sure you have uv installed. If not, install it using: - For Windows:
VariableDescriptionRequired
MCP_ALLOW_SYSTEM_ACCESSConfiguration value read at startup.Optional

Example prompts to try

  • “Use MCP to Prerequisites.”

Frequently asked questions

MCP server for Python code execution and environment management Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.