by yzfly
MCP Python Interpreter: run python code. Python-mcp-server, mcp-python-server, Code Executor
# Add to your Claude Code skills
git clone https://github.com/yzfly/mcp-python-interpreterGuides for using mcp servers skills like mcp-python-interpreter.
Last scanned: 5/30/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-30T17:03:21.411Z",
"npmAuditRan": true,
"pipAuditRan": true
}mcp-python-interpreter is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by yzfly. MCP Python Interpreter: run python code. Python-mcp-server, mcp-python-server, Code Executor. It has 101 GitHub stars.
Yes. mcp-python-interpreter passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/yzfly/mcp-python-interpreter" and add it to your Claude Code skills directory (see the Installation section above).
mcp-python-interpreter is primarily written in Python. It is open-source under yzfly on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh mcp-python-interpreter against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
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.
You can install the MCP Python Interpreter using pip:
pip install mcp-python-interpreter
Or with uv:
uv install mcp-python-interpreter
claude_desktop_config.json:{
"mcpServers": {
"mcp-python-interpreter": {
"command": "uvx",
"args": [
"mcp-python-interpreter",
"--dir",
"/path/to/your/work/dir",
"--python-path",
"/path/to/your/python"
],
"env": {
"MCP_ALLOW_SYSTEM_ACCESS": 0
},
}
}
}
For Windows:
{
"mcpServers": {
"python-interpreter": {
"command": "uvx",
"args": [
"mcp-python-interpreter",
"--dir",
"C:\\path\\to\\your\\working\\directory",
"--python-path",
"/path/to/your/python"
],
"env": {
"MCP_ALLOW_SYSTEM_ACCESS": "0"
},
}
}
}
The --dir parameter is required and specifies where all files will be saved and executed. This helps maintain security by isolating the MCP server to a specific directory.
uv installed. If not, install it using:
curl -LsSf https://astral.sh/uv/install.sh | sh
powershell -ExecutionPolicy Bypass -Command "iwr -useb https://astral.sh/uv/install.ps1 | iex"
The Python Interpreter provides the following tools:
Here are some examples of what you can ask Claude to do with this MCP server:
The MCP Python Interpreter now supports comprehensive file operations:
This MCP server has access to your Python environments and file system. Key security features include:
Always be cautious about running code or file operations that you don't fully understand.
MIT