airflow
v1.4.1Airflow MCP — list DAGs/runs/task instances, tail logs, trigger and clear (write-gated)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
airflow-list-dags
List Airflow DAGs (active by default) with optional tag filter and dag_id substring search
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
limit | integer | |
onlyActive | boolean | Filter out paused DAGs (Airflow 3.x: is_paused=false) |
search | string | Substring match on dag_id (case-insensitive) |
tag | string | Filter to DAGs that carry this tag |
airflow-list-runs
List recent runs of one Airflow DAG, optionally filtered by state, ordered newest first
| Parameter | Type | Description |
|---|---|---|
dagId * | string | Airflow DAG id |
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
limit | integer | |
state | string | Filter by state (success | running | failed | queued | up_for_retry | ...) |
airflow-get-task-instances
List task instances for a specific Airflow DAG run with state, try_number, duration
| Parameter | Type | Description |
|---|---|---|
dagId * | string | |
dagRunId * | string | dag_run_id (e.g. 'scheduled__2026-05-06T00:00:00+00:00') |
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
airflow-get-task-logs
Fetch the tail (last N kB) of an Airflow task instance log for a specific try_number
| Parameter | Type | Description |
|---|---|---|
dagId * | string | |
dagRunId * | string | |
taskId * | string | |
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
tailKb | integer | Return only the last N kilobytes of log |
tryNumber | integer |
airflow-trigger-dag
Trigger a new Airflow DAG run with optional conf payload and note. Write-gated by AIRFLOW_ALLOW_WRITE.
| Parameter | Type | Description |
|---|---|---|
dagId * | string | |
conf | object | DAG run conf payload |
dagRunId | string | Optional run id; auto-generated if omitted |
logicalDate | string | Optional logical_date (ISO 8601) — Airflow 3.x replacement for execution_date |
note | string | Optional note attached to the run |
airflow-clear-task
Clear specific task instances in an Airflow DAG run (re-run them); supports include_upstream / include_downstream. Write-gated by AIRFLOW_ALLOW_WRITE.
| Parameter | Type | Description |
|---|---|---|
dagId * | string | |
dagRunId * | string | |
taskIds * | array | List of task_ids to clear (and re-run) |
includeDownstream | boolean | |
includeUpstream | boolean |
airflow-list-assets
List Airflow 3.x assets (replaces the legacy 'dataset' concept) with optional URI substring filter and DAG-id filter. Returns producing tasks + consuming DAGs per asset — the cross-DAG lineage answer to 'who writes this, who reads this?'
| Parameter | Type | Description |
|---|---|---|
dagIds | array | Filter to assets produced or consumed by any of these DAG ids. Combines producer/consumer relationships. |
limit | integer | |
offset | integer | |
orderBy | string | Order-by field, e.g. 'id' or '-id' (descending). |
uriPattern | string | Substring match on the asset URI (Airflow's `uri_pattern` query param). Example: 's3://my-bucket/' |
airflow-get-asset
Get one Airflow 3.x asset by numeric id, including producing tasks and consuming DAGs and the asset's extra metadata blob.
| Parameter | Type | Description |
|---|---|---|
assetId * | integer | Airflow asset numeric id |
airflow-list-asset-events
List Airflow 3.x asset materialization events (newest first by default). Each event names the source DAG/task/run plus any downstream DAG runs the materialization triggered. Filterable by assetId, sourceDagId, sourceRunId, sourceTaskId, and a timestamp window — pair with dbt-mcp lineage to trace cross-tool data flow.
| Parameter | Type | Description |
|---|---|---|
assetId | integer | Filter by asset id |
limit | integer | |
offset | integer | |
orderBy | string | Order-by field; default '-timestamp' is most useful for 'what changed recently?' |
sourceDagId | string | Filter to events produced by this DAG |
sourceRunId | string | Filter to events produced by this DAG run |
sourceTaskId | string | Filter to events produced by this task id |
timestampGte | string | ISO-8601 lower bound on event timestamp (inclusive). |
timestampLte | string | ISO-8601 upper bound on event timestamp (inclusive). |
airflow-list-import-errors
List DAG files that failed to parse (import errors) with filename, timestamp, and stack trace — the first thing to check when a DAG is 'missing' from list-dags. Newest first.
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
limit | integer | Max import errors to return |
airflow-list-dag-warnings
List non-fatal DAG warnings (e.g. references to a non-existent pool, duplicate task ids) optionally filtered by dagId or warningType. Newest first.
| Parameter | Type | Description |
|---|---|---|
dagId | string | Restrict to a single DAG id |
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
limit | integer | Max warnings to return |
warningType | string | Filter by warning type (e.g. 'non-existent pool') |
airflow-list-pools
List Airflow pools with slot utilization (slots / occupied / running / queued / open) — diagnose why tasks are stuck queued due to pool capacity.
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
limit | integer | Max pools to return |
airflow-list-variables
List Airflow Variable keys + descriptions (values omitted to avoid leaking secrets) — see what configuration knobs exist.
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
limit | integer | Max variables to return |
airflow-list-connections
List Airflow connections (connection_id / conn_type / host / schema / login / port) — diagnose which external targets DAGs talk to. Passwords are never returned by the API.
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
limit | integer | Max connections to return |
airflow-list-event-logs
List the Airflow event-log audit trail (newest first): DAG run / task state changes, config edits, etc. Filterable by dagId, taskId, runId, event.
| Parameter | Type | Description |
|---|---|---|
dagId | string | Restrict to a single DAG id |
event | string | Filter by event name (e.g. 'success', 'failed', 'cli_task_run') |
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
limit | integer | Max event-log rows to return |
runId | string | Restrict to a single DAG run id |
taskId | string | Restrict to a single task id |
dag-health-rollup
Aggregated DAG health: success-rate over the last N runs + count breakdown (succeeded/failed/queued) + average duration + last-failed-run id + (optional) failing task instances. Replaces the airflow-list-runs + airflow-get-task-instances combo for 'is this DAG healthy right now?'.
| Parameter | Type | Description |
|---|---|---|
dagId * | string | Airflow DAG id |
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
includeFailingTasks | boolean | If true, fetch task instances for the most recent failed run |
recentRuns | integer |
search-tools
Discover available Airflow MCP tools by natural language query.
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural language query. Discover available Airflow MCP tools — call this first to find the right tool. |
category | string | Restrict search to a specific category |
limit | number | Max results (default 20) |