mcp-python-interpreter
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.
MCP Python Interpreter
A Model Context Protocol (MCP) server that enables interaction between large language models (LLMs) and Python environments, allowing for file operations, code execution, and management of development workflows.
Features
- Environment Management: Utilize different Python environments (system and conda)
- Code Execution: Execute Python scripts and code
- Package Management: Handle package installations and listings
- File Operations: Read and write to various file types, including text and binary files
- Python Prompts: Use templates for common Python tasks
Installation
Install via pip or uv package manager.
Usage with Claude Desktop
Provides steps to integrate the interpreter with Claude Desktop, including configuration for both generic and Windows environments.
Available Tools
Includes environment and package management, code execution, and file operations tools.
File Handling Capabilities
Supports reading and writing of files with limitations on size and safety.
Security Considerations
Highlights security measures like isolated directories and file size limits.