# Connect Airflow to Your AI Agent (Universal MCP)

> Use your AI to schedule jobs, monitor systems, and track issues in Airflow — and much more.

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

## Key Facts
- Software: Airflow | Category: Other B2B Software (Apache Software Foundation) | Auth: Guided workspace authorization
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across DAG run history, Task reruns, Connection secrets; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://universalmcp.app/mcp/airflow | Guide: https://universalmcp.app/mcp/airflow
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (72 actions: 44 Read, 28 Write)
Perform over 70 actions across task instances & logs, connections & variables, users & access control, monitoring & diagnostics, dags & scheduling, DAG runs & triggers, and datasets & xcoms. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Task Instances & Logs (12):** Get Mapped Task Instance (read), Get Task Instance (read), Get Task Logs (read), List Mapped Task Instances (read), List Task Extra Links (read), List Task Instances (read), Search Task Instances (read), Bulk Update Task States (write), Clear Task Instances (write), Update Mapped Task State (write), Update Task Instance Note (write), Update Task Instance State (write)
- **Connections & Variables (11):** Check Connection Status (read), Get Connection (read), Get Variable (read), List Connections (read), List Variables (read), Create Connection (write), Create Variable (write), Delete Connection (write), Delete Variable (write), Update Connection (write), Update Variable (write)
- **Users & Access Control (11):** Get Role (read), Get User (read), List Permissions (read), List Roles (read), List Users (read), Create Role (write), Create User (write), Delete Role (write), Delete User (write), Update Role (write), Update User (write)
- **Monitoring & Diagnostics (10):** Check Instance Health (read), Get Airflow Version (read), Get Configuration (read), Get Event Log (read), Get Import Error (read), List DAG Warnings (read), List Event Logs (read), List Import Errors (read), List Installed Providers (read), List Loaded Plugins (read)
- **DAGs & Scheduling (9):** Get DAG Details (read), Get DAG Source Code (read), Get DAG Structure (read), Get Task Definition (read), List DAG Tasks (read), List DAGs (read), Bulk Update DAG Pause (write), Delete DAG (write), Update DAG Pause State (write)
- **DAG Runs & Triggers (8):** Get DAG Run (read), List DAG Runs (read), Search DAG Runs (read), Clear DAG Run (write), Create DAG Run (write), Delete DAG Run (write), Update DAG Run Note (write), Update DAG Run State (write)
- **Datasets & XComs (6):** Get Dataset (read), Get XCom Entry (read), List Dataset Events (read), List Datasets (read), List Upstream Dataset Events (read), List XCom Entries (read)
- **Pools & Concurrency (5):** Get Pool (read), List Pools (read), Create Pool (write), Delete Pool (write), Update Pool Slots (write)

## Example Prompts for Airflow
- **Failure summary:** "Summarize failed Apache Airflow DAG runs from the last night with task names and error messages."
- **Duration trend:** "Which Apache Airflow tasks have grown slowest over the past two weeks compared with their baseline?"
- **Connection check:** "List Apache Airflow connections that failed their last test and when they were last used."
- **Draft rerun plan:** "Draft a rerun plan for failed Apache Airflow tasks and hold it for data lead approval first."
