mcp-python-executor
2
The MCP Python Executor is a server designed for executing Python code safely while managing packages. It includes features like resource monitoring and structured logging to enhance development efficiency.
MCP Python Executor
A Model Context Protocol (MCP) server for executing Python code and managing Python packages.
Features
- Execute Python code with safety constraints
- Install and manage Python packages
- Pre-configure commonly used packages
- Resource monitoring and limits
- Health checks and metrics
- Structured logging
Environment Variables
PREINSTALLED_PACKAGES
: List of Python packages to install on startupMAX_MEMORY_MB
: Maximum memory limit per executionEXECUTION_TIMEOUT_MS
: Maximum execution time in millisecondsMAX_CONCURRENT_EXECUTIONS
: Maximum number of concurrent executionsLOG_LEVEL
: Logging levelLOG_FORMAT
: Log format