airflow

v1.4.1
io.github.us-all/airflow Checked 1 day ago Published 5 months ago

Airflow 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

ParameterTypeDescription
extractFieldsstringComma-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…
limitinteger
onlyActivebooleanFilter out paused DAGs (Airflow 3.x: is_paused=false)
searchstringSubstring match on dag_id (case-insensitive)
tagstringFilter to DAGs that carry this tag

airflow-list-runs

List recent runs of one Airflow DAG, optionally filtered by state, ordered newest first

ParameterTypeDescription
dagId *stringAirflow DAG id
extractFieldsstringComma-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…
limitinteger
statestringFilter 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

ParameterTypeDescription
dagId *string
dagRunId *stringdag_run_id (e.g. 'scheduled__2026-05-06T00:00:00+00:00')
extractFieldsstringComma-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

ParameterTypeDescription
dagId *string
dagRunId *string
taskId *string
extractFieldsstringComma-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…
tailKbintegerReturn only the last N kilobytes of log
tryNumberinteger

airflow-trigger-dag

Trigger a new Airflow DAG run with optional conf payload and note. Write-gated by AIRFLOW_ALLOW_WRITE.

ParameterTypeDescription
dagId *string
confobjectDAG run conf payload
dagRunIdstringOptional run id; auto-generated if omitted
logicalDatestringOptional logical_date (ISO 8601) — Airflow 3.x replacement for execution_date
notestringOptional 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.

ParameterTypeDescription
dagId *string
dagRunId *string
taskIds *arrayList of task_ids to clear (and re-run)
includeDownstreamboolean
includeUpstreamboolean

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?'

ParameterTypeDescription
dagIdsarrayFilter to assets produced or consumed by any of these DAG ids. Combines producer/consumer relationships.
limitinteger
offsetinteger
orderBystringOrder-by field, e.g. 'id' or '-id' (descending).
uriPatternstringSubstring 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.

ParameterTypeDescription
assetId *integerAirflow 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.

ParameterTypeDescription
assetIdintegerFilter by asset id
limitinteger
offsetinteger
orderBystringOrder-by field; default '-timestamp' is most useful for 'what changed recently?'
sourceDagIdstringFilter to events produced by this DAG
sourceRunIdstringFilter to events produced by this DAG run
sourceTaskIdstringFilter to events produced by this task id
timestampGtestringISO-8601 lower bound on event timestamp (inclusive).
timestampLtestringISO-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.

ParameterTypeDescription
extractFieldsstringComma-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…
limitintegerMax 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.

ParameterTypeDescription
dagIdstringRestrict to a single DAG id
extractFieldsstringComma-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…
limitintegerMax warnings to return
warningTypestringFilter 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.

ParameterTypeDescription
extractFieldsstringComma-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…
limitintegerMax pools to return

airflow-list-variables

List Airflow Variable keys + descriptions (values omitted to avoid leaking secrets) — see what configuration knobs exist.

ParameterTypeDescription
extractFieldsstringComma-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…
limitintegerMax 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.

ParameterTypeDescription
extractFieldsstringComma-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…
limitintegerMax 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.

ParameterTypeDescription
dagIdstringRestrict to a single DAG id
eventstringFilter by event name (e.g. 'success', 'failed', 'cli_task_run')
extractFieldsstringComma-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…
limitintegerMax event-log rows to return
runIdstringRestrict to a single DAG run id
taskIdstringRestrict 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?'.

ParameterTypeDescription
dagId *stringAirflow DAG id
extractFieldsstringComma-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…
includeFailingTasksbooleanIf true, fetch task instances for the most recent failed run
recentRunsinteger

search-tools

Discover available Airflow MCP tools by natural language query.

ParameterTypeDescription
query *stringNatural language query. Discover available Airflow MCP tools — call this first to find the right tool.
categorystringRestrict search to a specific category
limitnumberMax results (default 20)