AcademyMCP serversDevelopment

Safe local Python executor for MCP clients

Development and data teams that let an AI assistant run small Python snippets.

  • Listedour rating
  • 48gitHub stars
  • MITlicence
  • 15 months agolast update
claude mcp add safe-local-python-executor -- uv --directory /path/to/mcp_local_python_executor/ run mcp_server.py
README.md

Loading the file...

What it does

An MCP server that exposes a run_python tool for running Python code locally. It is built on the LocalPythonExecutor from Hugging Face's smolagents, limits imports to a short list of standard modules and blocks file input and output. It is a basic isolation layer, and a VM or container gives stronger separation.

Use cases

  1. 01Let an assistant run quick math or date checks
  2. 02Evaluate small Python snippets from an AI client
  3. 03Run generated snippets in a restricted environment

Questions about
Safe local Python executor for MCP clients.

What is Safe local Python executor for MCP clients used for?

Development and data teams that let an AI assistant run small Python snippets. An MCP server that exposes a run_python tool for running Python code locally. It is built on the LocalPythonExecutor from Hugging Face's smolagents, limits imports to a short list of standard modules and blocks file input and output. It is a basic isolation layer, and a VM or container gives stronger separation.

How do I install Safe local Python executor for MCP clients?

Run this in your terminal: claude mcp add safe-local-python-executor -- uv --directory /path/to/mcp_local_python_executor/ run mcp_server.py

Is Safe local Python executor for MCP clients open source?

Yes. The code is on GitHub (maxim-saplin/mcp_safe_local_python_executor) under the MIT licence.

Is Safe local Python executor for MCP clients safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.