Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ€– Coding Agents
  3. MCP Safe Local Python Executor
MCP Safe Local Python Executor logo
Health: ActiveRecent health check succeeded.Last checked 9/11/2026, 2:01:59 PM

MCP Safe Local Python Executor

User RatingsBe the first to rate and review this MCP server!
View Repository48 GitHub StarsTotal stargazers on GitHub for the source repository (48 stars).Visit Website
code-executionpythonmcpsecurity

Runs LLM-generated Python locally through a restricted executor exposed as an MCP tool, without Docker or a VM.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β€” we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "maxim-saplin-mcp-safe-local-python-executor": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Claim listing AlternativesπŸ€– More in Coding Agents

Overview

The maxim-saplin/mcp_safe_local_python_executor MCP server exposes Hugging Face Smolagents' LocalPythonExecutor through a stdio MCP tool. It provides a `run_python` tool for executing generated Python with no file I/O and a restricted import list. The server runs locally through `uv` and does not require Docker or a virtual machine. Reach for it when an MCP client needs basic local code execution for calculations or data manipulation, while recognizing that a container or VM may provide stronger isolation.

Use cases

β€’Calculate mathematical results with generated Python
β€’Generate number sequences such as prime lists
β€’Solve equations using the local interpreter
β€’Add a restricted code interpreter to an MCP client

Key features

β€’Exposes a run_python MCP tool
β€’Uses Smolagents LocalPythonExecutor
β€’Runs locally over stdio with uv
β€’Blocks file I/O operations
β€’Restricts available Python imports

Capabilities & Tool Schemas

Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Safe Local Python Executor.

Extracted Tool Capabilities
Exposes a run_python MCP tool
Uses Smolagents LocalPythonExecutor
Runs locally over stdio with uv
Blocks file I/O operations
Restricts available Python imports

How MCP Safe Local Python Executor works

What maxim-saplin/mcp_safe_local_python_executor does

The maxim-saplin/mcp_safe_local_python_executor MCP server makes a restricted Python runtime available to MCP-compatible applications. It wraps Hugging Face Smolagents' LocalPythonExecutor rather than invoking the regular Python interpreter directly. The exposed run_python tool is intended for code generated by an LLM and supports tasks such as calculations, generating number sequences, and solving equations.

The project is designed for local use. It does not depend on Docker or a virtual machine, and it can add a Python execution tool to clients such as Claude Desktop and Cursor. The maxim-saplin/mcp_safe_local_python_executor MCP server is therefore relevant when an agent needs an embedded code interpreter for straightforward computation without sending code to a third-party runtime.

How it works

The server communicates over MCP's stdio transport. When started, it uses LocalPythonExecutor from the Smolagents framework to process Python supplied through the MCP tool. This executor is intended to provide more control than directly evaluating arbitrary Python code.

Execution disallows file I/O operations. Imports are limited to the following modules: collections, datetime, itertools, math, queue, random, re, stat, statistics, time, and unicodedata. This restriction makes the runtime more constrained than a normal local Python environment, so scripts that depend on other packages, filesystem access, or broader operating-system functionality are not suitable.

The restrictions should not be treated as equivalent to a VM or container boundary. The project documentation describes the local executor as a security and convenience compromise, and recommends stronger isolation approaches when the risk of running generated code warrants them.

Setup and configuration

Install uv, clone the repository, and change into the project directory. Running uv run mcp_server.py creates the virtual environment as needed and installs the listed dependencies, including Smolagents and MCP. The same command starts the stdio server.

For Claude Desktop, add an MCP server entry whose command is uv, with arguments that select the cloned project directory and run mcp_server.py. The directory value must point to the local checkout; the example path in the project documentation is a placeholder. Restart Claude Desktop after saving the configuration. The Python executor should then appear as an available tool.

The maxim-saplin/mcp_safe_local_python_executor MCP server does not document API keys, OAuth credentials, or required environment variables. It is operated from the local Python environment created by uv.

Tools and capabilities

  • Exposes one documented MCP tool, run_python.
  • Executes Python through Smolagents' restricted local executor.
  • Supports basic calculations and other code that stays within the permitted runtime.
  • Blocks file I/O operations.
  • Allows imports only from the documented module list.
  • Works with Claude Desktop, Cursor, and other MCP-compatible clients.

Limitations and notes

This is not a general-purpose Python environment. The import allowlist and disabled file operations prevent many scripts from running, and the documentation does not claim complete security isolation. Generated code still runs on the user's machine, so users should assess the risks of allowing an agent to execute code locally. A Docker container or VM may be a better choice when stronger separation is required, although those approaches add setup and resource costs.

The maxim-saplin/mcp_safe_local_python_executor MCP server is provided as a local stdio process rather than a hosted execution service. Its documented installation flow requires the repository and uv; no hosted endpoint or external execution account is described.

Getting started with this maxim-saplin/mcp_safe_local_python_executor MCP server

Always refer to the official documentation for the most accurate and up-to-date information.

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Coding Agents View all alternatives
  • Cli MCP Server logoCli MCP Server

    Command line interface with secure execution and customizable security policies

    πŸ€– Coding Agents3 views
    Compare vs Cli MCP Server β†’
  • MCP Shell Server logoMCP Shell Server

    A secure shell command execution server implementing the Model Context Protocol (MCP)

    πŸ€– Coding Agents3 views
    Compare vs MCP Shell Server β†’
  • Term MCP Deepseek logoTerm MCP Deepseek

    A MCP‑like server using the DeepSeek API for Terminal

    πŸ€– Coding Agents3 views
    Compare vs Term MCP Deepseek β†’
  • Codemcp logoCodemcp

    Coding agent with basic read, write and command line tools.

    πŸ€– Coding Agents4 views
    Compare vs Codemcp β†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars
48
Stargazers on the source repository.
npm downloads
33k
Package downloads in the last 30 days.
Last commit
1y ago
Most recent push to the default branch.
Directory activity
3 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about MCP Safe Local Python Executor

Install uv, clone the repository, enter its directory, and run `uv run mcp_server.py`. The command creates a virtual environment and installs the dependencies.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Safe Local Python Executor AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/maxim-saplin-mcp-safe-local-python-executor?style=directory)](https://allmcps.com/mcp/maxim-saplin-mcp-safe-local-python-executor)
HTML Embed
<a href="https://allmcps.com/mcp/maxim-saplin-mcp-safe-local-python-executor"><img src="https://allmcps.com/api/badge/maxim-saplin-mcp-safe-local-python-executor?style=directory" alt="MCP Safe Local Python Executor on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ€–Coding Agents
PricingFree
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
AuthNo auth required
ClientsClaude Desktop, Cursor
Last updatedSep 7, 2026
9/13 checks healthy over the last 32d
Views3
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars48
GitHub Star CountTotal stargazers on GitHub representing community popularity (48 stars).
Last commit1y ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Jul 17, 2025
npm downloads33,418/mo
Monthly npm DownloadsAverage monthly package installs recorded from npm registry statistics.
45Quality signal: Fair Β· 45/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools17/30
Adoption & activity7/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 20d ago via OSV.dev Β· @smithery/cli (npm)

β˜… FeaturedAllMCPs Server logo

AllMCPs Server

The official MCP server for AllMCPs.com - submit and manage tools directly from your AI. The open directory for MCP servers. Connect Claude, Cursor, Windsurf, and AI agents to databases, tools, files, and APIs. Explore 10,000+ servers. AllMCPs is the premier, open directory for discovering, evaluating, and installing Model Context Protocol (MCP) servers to equip AI agents and LLMs with real-world superpowers.

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ€– Coding Agents β†’Best MCP servers for Coding Agents β†’Alternatives to MCP Safe Local Python Executor β†’Install in Claude DesktopInstall in CursorInstall in VS Code