mcp_safe_local_python_executor
🔌 MCP Servermaxim-saplin
MCP server for safe local Python execution using HF Smolagents LocalPythonExecutor.
This project implements an MCP server that wraps the LocalPythonExecutor from Hugging Face's Smolagents library. The server exposes tools for executing Python code safely, with configurable timeout, restricted built-in functions, and controlled output. It is ideal for integrating code execution capabilities into AI workflows via the Model Context Protocol (MCP), supporting clients like Claude Desktop. The executor runs locally, ensuring data privacy and minimal latency.
💡Highlights
- ├─Safe Python sandbox
- ├─Based on HF Smolagents
- └─MCP-compatible
🎯For
- ├─AI developers
- ├─MCP users
- └─Python developers