mcp-python-executor

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 startup
  • MAX_MEMORY_MB: Maximum memory limit per execution
  • EXECUTION_TIMEOUT_MS: Maximum execution time in milliseconds
  • MAX_CONCURRENT_EXECUTIONS: Maximum number of concurrent executions
  • LOG_LEVEL: Logging level
  • LOG_FORMAT: Log format