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.

Unscramble letters, check words in NWL2023, Collins, WOW24 and Words With Friends, and get spoiler-free hints for NYT Connections, Strands, Spelling Bee and more.
Free moving quotes for AI agents from Next Generation Movers, a licensed interstate mover (USDOT 3764697). US long-distance nationwide and local DC/MD/VA. Indicative ballpark price and booking options; optional $0.01 x40

Agent-native crypto ads: reach real crypto users from $0.05, paid in USDC via x402. No account.

DeepMark helps teachers deliver rapid, consistent marking with meaningful feedback for every student — in a fraction of the time. What once took a week, now takes one free period.

The article (der, die, das) of 90,000 German nouns, compounds included, plus a checker that finds wrong articles in German text (“mit der Zug” → dem). Uses dictionary data, not AI guessing. Free, no login.
Comments