MCP Directory

pydantic/pydantic-ai/mcp-run-python

GitHub
Developer Tools

Run Python code in a secure sandbox via MCP tool calls

Direct install

Run the underlying MCP server directly — without Agent-CoreX routing.

uvx pydantic-ai

Use with Agent-CoreX

Agent-CoreX intelligently routes which tools from pydantic/pydantic-ai/mcp-run-python your AI agent actually needs per request — reducing token usage and cost.

agent-corex.json

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

Route pydantic/pydantic-ai/mcp-run-python intelligently

Connect in 2 minutes. Only pay for the tools your agent actually uses.

Installation Guide

Use with Agent-CoreX

Recommended: intelligent tool routing, lower costs

uvx agent-corex mcp add pydantic-ai

Agent-CoreX selects only the tools your agent needs, cutting token usage by up to 60%.

Direct Install

Use pydantic/pydantic-ai/mcp-run-python directly without routing

uvx pydantic-ai

New to Agent-CoreX? View setup guide →

pydantic/pydantic-ai/mcp-run-python MCP Server — Agent-CoreX