M

mcp_safe_local_python_executor

By maxim-saplin·Visit Source
Safe local Python executor for LLMs via MCP
April 16, 2025
Today
0 Clicks

What is this MCP

This is a Model Context Protocol (MCP) server that provides a secure local Python execution environment for LLM-generated code, wrapping Hugging Face's LocalPythonExecutor with basic isolation/security features.

How to use this MCP

Install via uv, configure the MCP server in Claude Desktop's config file, and restart Claude to access the Python executor tool (appears as a hammer icon). The server runs in a restricted Python venv with limited imports and no file I/O operations.

What this MCP can be used for

Enables safe execution of LLM-generated Python code locally without Docker/VMs, functioning as a code interpreter for Claude Desktop and other MCP-compatible clients. Useful for mathematical calculations, data processing, and equation solving while maintaining security.

Repository Info
Stars:
45
Forks:
12
Watchers:
45
Last Updated: 5 days ago
Sponsored

Vernclaw Plugins for OpenClaw

Ready-to-use connectors for SEO data, social reading & content generation. Pay-as-you-go credits with audit logs.