mcp-python-interpreter
If you are the rightful owner of mcp-python-interpreter and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The MCP Python Interpreter is a server that enables interaction between LLMs and Python environments, facilitating code execution, file management, and development workflows.
The MCP Python Interpreter is a versatile Model Context Protocol server designed to bridge the gap between large language models (LLMs) and Python environments. It provides a robust platform for executing Python code, managing packages, and handling files, all within a secure and isolated environment. This server is particularly useful for developers and data scientists who need to automate workflows, test code snippets, or manage Python environments efficiently. With features like environment management, code execution, and comprehensive file operations, the MCP Python Interpreter ensures that users can seamlessly integrate Python capabilities into their projects. The server also emphasizes security by restricting file operations to a specified directory and implementing size limits, making it a reliable tool for both novice and experienced users.
Features
- Environment Management: List and manage different Python environments, including system and conda.
- Code Execution: Execute Python code or scripts in any available environment.
- Package Management: List and install Python packages in specific environments.
- File Operations: Read and write text and binary files with security and size constraints.
- Python Prompts: Use templates for common Python tasks like function creation and debugging.
Tools
list_python_environments
List all available Python environments (system and conda).
list_installed_packages
List packages installed in a specific environment.
install_package
Install a Python package in a specific environment.
run_python_code
Execute Python code in a specific environment.
run_python_file
Execute a Python file in a specific environment.
read_file
Read contents of any file type, with size and safety limits.
write_file
Create or overwrite files with text or binary content.
write_python_file
Create or overwrite a Python file specifically.
list_directory
List Python files in a directory.