Safe Local Python Executor
@maxim-saplin
Safe Local Python Executor について
Stdio MCP Server wrapping custom Python runtime (LocalPythonExecutor) from Hugging Faces' `smolagents` framework. The runtime combines the ease of setup (compared to docker, VM, cloud runtimes) while providing safeguards and limiting operations/imports that are allowed inside the
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"safe-local-python-executor": {
"command": "uv",
"args": [
"--directory",
"/path/to/mcp_local_python_executor/",
"run",
"mcp_server.py"
]
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is Safe Local Python Executor?
Safe Local Python Executor is an MCP server (stdio transport) that wraps Hugging Face's LocalPythonExecutor to provide a safer Python runtime for executing code generated by LLMs locally, without needing Docker or a VM. It is intended for LLM apps like Claude Desktop, Cursor, or any MCP-compatible client.
How to use Safe Local Python Executor?
Install via Smithery (npx -y @smithery/cli install @maxim-saplin/mcp_safe_local_python_executor --client claude) or manually: install uv, clone the repo, and run uv run mcp_server.py. Then configure Claude Desktop by adding the tool to its configuration file with the command uv and appropriate arguments.
Key features of Safe Local Python Executor
- Exposes
run_pythontool for safe code execution - Runs locally with no Docker or VM required
- Restricts imports to a safe list (collections, math, etc.)
- No file I/O operations allowed
- Uses Hugging Face's LocalPython
「クラウドとインフラ」の他のコンテンツ
Azure DevOps MCP Server
Tiberriver256An MCP server for Azure DevOps
Supabase MCP Server
coleam00Supabase MCP server created in Python.
Sample Serverless MCP Servers
aws-samplesSample implementations of AI Agents and MCP Servers running on AWS Serverless compute
container-use
daggerDevelopment environments for coding agents. Enable multiple agents to work safely and independently with your preferred stack.
MCP Server Kubernetes
Flux159MCP Server for kubernetes management commands
コメント