maxim-saplin/mcp_safe_local_python_executor
by Various
Stdio MCP Server wrapping custom Python runtime (LocalPythonExecutor) from Hugging Faces' smolagents framework. The runtime combines the ease of setup (compared to docker, VM, clou
MCP
maxim-saplin/mcp_safe_local_python_executor
Added 1 June 2026
Overview
A stdio MCP server that wraps the LocalPythonExecutor from Hugging Face's smolagents framework. It provides a Python runtime that is easier to set up than Docker, VM, or cloud alternatives, while restricting allowed operations and imports to enforce safety.
Best for
Best for
Developers who need basic safe local execution of Python code in MCP-based workflows
Use cases
- Execute untrusted Python snippets locally without full sandboxing overhead
- Integrate safe code execution into MCP-based tools and agents
- Protect host systems by limiting imports and operations in ad-hoc scripts
Notes
A stdio MCP server that wraps the LocalPythonExecutor from Hugging Face’s smolagents framework. It provides a Python runtime that is easier to set up than Docker, VM, or cloud alternatives, while restricting allowed operations and imports to enforce safety.
44 stars on GitHub. Last updated 2025-07-17. Licensed MIT.
Use cases
- Execute untrusted Python snippets locally without full sandboxing overhead
- Integrate safe code execution into MCP-based tools and agents
- Protect host systems by limiting imports and operations in ad-hoc scripts
Pros
- Lightweight setup compared to Docker or remote runtimes
- Built-in restrictions reduce risk from malicious or buggy code
- Leverages a proven framework from Hugging Face
Cons
- Not a full sandbox; sophisticated attacks may bypass restrictions
- Limited to a single machine; no multi-node or distributed execution
- Few stars and contributors indicate a small community
Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.
Pros
- Lightweight setup compared to Docker or remote runtimes
- Built-in restrictions reduce risk from malicious or buggy code
- Leverages a proven framework from Hugging Face
Cons
- Not a full sandbox; sophisticated attacks may bypass restrictions
- Limited to a single machine; no multi-node or distributed execution
- Few stars and contributors indicate a small community
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.