mcp-python-interpreter

mcp-python-interpreter

37

The MCP Python Interpreter is a server that allows large language models to manage and execute Python code in different environments. It features robust file handling and package management capabilities with a focus on security.

How do I install the MCP Python Interpreter?

You can install it using pip with the command pip install mcp-python-interpreter or using uv with uv install mcp-python-interpreter.

What are the security features of the MCP Python Interpreter?

It includes isolated working directories, file size limits, and prevents writes outside the working directory to ensure safe operations.

Can I manage Python packages with this server?

Yes, you can list installed packages and install new ones in any available Python environment.

What file operations are supported?

You can read and write text and binary files, with syntax highlighting for source code and hex representation for binary files.

Is it possible to execute Python scripts using this server?

Yes, you can run Python code or scripts in any available environment using the server.