mcp_safe_local_python_executorStdio 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
Overview
Key features
- Exposes run_python tool
- Safer execution of Python code compared to direct eval()
- Ran via uv in Python venv
- No file I/O ops are allowed
- Restricted list of imports
Pricing
- Model
- Free
- Category
- MCP Servers
- Rating
- No reviews yet
Use cases
Code Interpreter for Claude Desktop
This tool can be used as a Code Interpreter plugin in Claude Desktop, allowing users to execute Python code generated by LLMs.
Python Executor for LLM Apps
The mcp_safe_local_python_executor can be used with any MCP compatible client, providing a safe and easy way to execute Python code generated by LLMs.
Pros & Cons
Pros
- Easy to set up compared to Docker or VM
- Provides basic isolation and security for running Python code
- Exposes a 'run_python' tool for LLM apps
- Runs in a Python virtual environment with restricted imports
Cons
- Not as secure as using a VM or Docker container
- Requires careful consideration when executing code generated by LLMs
Reviews
Sign in to leave a review.
No reviews yet. Be the first!
Q&A
Can I use it with LLM apps?
Yes, it exposes a 'run_python' tool for LLM apps like Claude Desktop or any other MCP compatible client.
Asked by Uma Krishnan · Feb 21, 2026
How does it compare to direct Python eval?
The mcp_safe_local_python_executor offers safer execution of Python code compared to direct use of Python eval.
Asked by Rosalind Frost · Feb 9, 2026
What security features are included?
The tool provides basic isolation and security by restricting file I/O operations and limiting imports, but it is not as secure as using a VM or Docker container.
Asked by Idris Suleiman · Jan 18, 2026
Is Docker required?
No, Docker is not required. This tool provides a custom Python runtime without needing Docker or a VM.
Asked by Yaw Owusu · Jan 8, 2026
Ask a question
MCP Servers alternatives
Playwright MCP
MCP Servers
Open-source MCP server that lets LLMs drive real browsers via Playwright and accessibility snapshots.
Pydantic AI
MCP Servers
Python agent framework from the Pydantic team for building type-safe GenAI apps.
Cognee
MCP Servers
Adaptive memory layer that helps AI agents learn from context over time.
Inbox Zero
MCP Servers
AI email assistant that organizes, drafts replies, and helps you reach inbox zero faster.
Screenpipe
MCP Servers
Open-source 24/7 local screen and audio recording for building context-aware AI apps
AgentKit
MCP Servers
TypeScript library for building and orchestrating AI agents with tools, memory, and multi-agent workflows.
onchain-mcp
MCP Servers
Bringing the bankless onchain API to MCP
markitdown
MCP Servers
Python tool for converting files and office documents to Markdown.
Trending now
AdCrier
Marketing & Advertising
Sponsored answers, paid per click.
Biology AI
Education AI
Accurate Homework Help with Full Explanations
Reducto AI
AI Agent Development Platforms
Document intelligence API that parses, splits, OCRs, and extracts structured data from complex PDFs, slides, and spreadsheets.
Pin AI
Workflow automation
Agentic AI recruiter that automates sourcing, screening, and outreach to accelerate hiring.










