High-risk tools in MCP Python Interpreter
3 of the 10 tools in MCP Python Interpreter are classified as high risk. This page profiles those tools specifically, with recommended policy actions and the attack patterns that target them.
Every operation listed below is an action PolicyLayer recommends controlling at the transport layer. Open any tool to see the full profile, risk score, and YAML policy snippet.
Tools at high risk
-
run_python_codeExecuterun_python_code
-
run_python_fileExecuteExecute a Python file (always uses subprocess for file execution). Args: file_path: Path to the Python file to execute environment: Name of the Python e...
-
install_packageExecuteInstall a Python package in the specified environment. Args: package_name: Name of the package to install environment: Name of the Python environment ...
Attacks that target this class
High-risk tools in any server share these documented attack patterns. Each links to the full case and the defensive policy.