mcp_safe_local_python_executor
通过MCP实现的LLM安全本地Python执行器. mcp_safe_local_python_executor is a Model Context Protocol (MCP) server maintained by maxim-saplin. It connects to MCP-compatible clients such as Claude Desktop, Cursor, Cline, and other agents that speak the protocol. It exposes 1 tool, including run_python, that an agent can call directly. It is categorized under AI/LLM, Tool/Python and Integration/Claude.
什么是MCP
这是一个模型上下文协议(MCP)服务器,为LLM生成的代码提供安全的本地Python执行环境。它在Hugging Face的LocalPythonExecutor基础上封装了基础隔离/安全功能。
如何使用MCP
通过uv安装,在Claude Desktop配置文件中配置MCP服务器,重启Claude后即可使用Python执行器工具(显示为锤子图标)。该服务器运行在受限的Python虚拟环境中,仅支持有限模块导入且禁止文件I/O操作。
MCP的用途
无需Docker/虚拟机即可安全执行LLM生成的Python代码,作为Claude Desktop及其他MCP兼容客户端的代码解释器。适用于数学计算、数据处理和方程求解等场景,同时保障系统安全。
AIMCP authority
DR and traffic signal for the AIMCP public domain.
Frequently asked questions
What is the mcp_safe_local_python_executor MCP server?
mcp_safe_local_python_executor is a Model Context Protocol server from maxim-saplin. It lets MCP-compatible AI clients call its tools over a standard interface, so agents like Claude, Cursor, and Cline can use it without custom integration.
How do I connect mcp_safe_local_python_executor to my AI client?
Add mcp_safe_local_python_executor to your client's MCP configuration using the stdio or SSE connection shown in the usage examples on this page, then restart the client to load the server.
What tools does mcp_safe_local_python_executor provide?
mcp_safe_local_python_executor provides 1 tool: run_python.
Is mcp_safe_local_python_executor free to use?
mcp_safe_local_python_executor is listed on AIMCP for free. Any API keys or accounts required by the underlying service are set by its provider.
Vernclaw Plugins for OpenClaw
Ready-to-use connectors for SEO data, social reading & content generation. Pay-as-you-go credits with audit logs.
