What kind of Python code can be executed?
Any valid Python code can be run inline via the `code` parameter or from a file via `scriptPath`. The server applies memory limits, timeouts, and concurrency restrictions to ensure safe execution.
@bsmi021
Basic information
No overview available yet
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-python-executor": {
"command": "node",
"args": [
"path/to/python-executor/build/index.js"
],
"env": {
"PREINSTALLED_PACKAGES": "numpy pandas matplotlib scikit-learn",
"MAX_MEMORY_MB": "512",
"EXECUTION_TIMEOUT_MS": "30000",
"MAX_CONCURRENT_EXECUTIONS": "5",
"LOG_LEVEL": "info",
"LOG_FORMAT": "json"
}
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
MCP Python Executor is a Model Context Protocol (MCP) server that allows AI models and other MCP clients to execute Python code and manage Python packages. It enforces safety constraints, resource limits, and provides health checks and structured logging, making it suitable for controlled code execution environments.
Configure the server in your MCP settings with the command node path/to/python-executor/build/index.js. Customize behavior via environment variables such as PREINSTALLED_PACKAGES, MAX_MEMORY_MB, EXECUTION_TIMEOUT_MS, and MAX_CONCURRENT_EXECUTIONS. Then use the provided tools—execute_python to run inline or file-based Python code, and install_packages to install Python packages.
Any valid Python code can be run inline via the `code` parameter or from a file via `scriptPath`. The server applies memory limits, timeouts, and concurrency restrictions to ensure safe execution.
The server runs on Node.js and requires a Python environment. The specific Python version is not stated in the README; the server attempts to use the system’s default Python.
Set the `PREINSTALLED_PACKAGES` environment variable to a space-separated list of package names (e.g., `numpy pandas matplotlib scikit-learn`). These are installed on server startup using pip.
You can configure per‑execution memory limit (`MAX_MEMORY_MB`, default 512), timeout (`EXECUTION_TIMEOUT_MS`, default 30000), and maximum concurrent executions (`MAX_CONCURRENT_EXECUTIONS`, default 5). No authentication or transport details are specified in the README.
Logging level and format are controlled by `LOG_LEVEL` and `LOG_FORMAT` environment variables, supporting `debug`, `info`, `error` levels and `json` or `text` formats.

Model Context Protocol Servers

Request dedicated senior developers to work on your project, write job descriptions, and prep technical interviews — all without leaving your Claude chat. Just describe what you need, and Lemon.io MCP does the rest. 1–3

A free remote MCP server for The Living Bread. Bible passages read word for word from a stored public domain text with an evidence label, keyword search and cross references, real churches, gatherings and prayer groups w

A good sequence diagram can solve almost any communication problem in engineering. Volley lets your agent write them as plain text, with the real request and response payloads on every arrow. It checks its own syntax wi

See and control a real Windows PC you own — from any MCP client, locally or remotely. Observe (UIA + screenshots), click/type/drag/scroll, launch apps, owner Live View. BYOH: your machine, your key.
Comments