Back to MCP Servers
🔌

pydantic/pydantic-ai/mcp-run-python

MIT

🐍 🏠 - Run Python code in a secure sandbox via MCP tool calls

PythonAI & LLMs

Install

npx -y pydantic-pydantic-ai-mcp-run-python

claude_desktop_config.json

claude_desktop_config.json
{
  "mcpServers": {
    "pydantic-pydantic-ai-mcp-run-python": {
      "command": "npx",
      "args": [
        "-y",
        "pydantic-pydantic-ai-mcp-run-python"
      ]
    }
  }
}

Add this to your Claude Desktop config file. Find it at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS.