# Connect Prefect to Your AI Agent (Universal MCP)

> Use your AI to run deployments, monitor systems, and schedule jobs in Prefect — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http prefect https://api.universalmcp.app/mcp/prefect`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/prefect` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "prefect", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: Prefect | Category: Manufacturing & Supply Chain (Prefect) | Auth: Guided local/on-prem connector setup | Deployment: hybrid
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Flow run logs, Deployment config, Rerun actions; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://universalmcp.app/mcp/prefect | Guide: https://universalmcp.app/mcp/prefect
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (17 actions: 8 Read, 9 Write)
Perform over 10 actions across data quality, workflow orchestration, MCP servers, and data assets. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Data Quality (5):** Run Data Quality Checks (read), Monitor Data Freshness (read), Set Data Quality Alert (write), Review Flow Run Logs (read), Track Supply Chain Data Flows (read)
- **Workflow Orchestration (4):** Schedule Pipeline Run (write), Review Durable Task Status (read), Retry Failed Workflow (write), Coordinate Agentic Workflow (write)
- **MCP Servers (4):** Build MCP Server (write), Host MCP Server (write), Configure MCP Gateway Access (write), Verify Agent Tool Outcomes (read)
- **Data Assets (4):** Model Data as Assets (write), Search Data Catalog (read), Trace Asset Lineage (read), Build ETL Pipeline (write)

## Example Prompts for Prefect
- **Failure triage:** "Group today's failed Prefect flow runs by error type so I can see which task causes most of the ETL failures."
- **Deployment health:** "Which Prefect deployments have the most retries this week, and how long do their runs take compared to last week?"
- **Run history:** "List the Prefect flow runs for the freight-report deployment with their start times and final states this month."
- **Draft rerun plan:** "Draft a Prefect rerun plan for the three failed carrier-sync runs and save it for approval before anything executes."
