Feedback

Safe Local Python Executor MCP Server

@maxim-saplin Claim

Basic information

Runtime
python
License
MIT
Transports
stdio
Author
maxim-saplin
Submitted by
Community
Quality
55
Stars
44

About Safe Local Python Executor MCP Server

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

Safe Local Python Executor is a MCP server in the Cloud & Infrastructure category listed in the AddMCP.net directory, published by maxim-saplin. Supported transport: stdio. Runtime: python. License: MIT. The repository has 44 GitHub stars. Source code is hosted on github.com. Related topics: llm-tool, python-executor, safe-local-python-executor.

Setup

{
    "mcpServers": {
        "safe-local-python-executor": {
            "command": "uv",
            "args": [
                "--directory",
                "/path/to/mcp_local_python_executor/",
                "run",
                "mcp_server.py"
            ]
        }
    }
}

Safe Local Python Executor MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "safe-local-python-executor": {
            "command": "uv",
            "args": [
                "--directory",
                "/path/to/mcp_local_python_executor/",
                "run",
                "mcp_server.py"
            ]
        }
    }
}

Safe Local Python Executor MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

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_python tool 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

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬