Back to MCP Servers

Safe Local Python Executor

Safe Python interpreter based on HF Smolagents `LocalPythonExecutor`

coding-agentspythonagent

Installation

npx -y mcp_safe_local_python_executor

Configuration

{
  "mcpServers": {
    "mcp_safe_local_python_executor": {
      "command": "npx",
      "args": ["-y", "mcp_safe_local_python_executor"]
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes
View source on GitHub