Back to MCP Servers

Pydantic Ai

Run Python code in a secure sandbox via MCP tool calls

code-executionpythonai

Installation

npx -y pydantic-ai

Configuration

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

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