mcp-airflow-api
v3.8.3Model Context Protocol (MCP) server for Apache Airflow API integration.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_dags List Dags
[Tool Role]: Lists all DAGs registered in the Airflow cluster with pagination support.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | If True, fetches all DAGs regardless of limit/offset |
id_contains | Filter DAGs by ID containing this string | |
limit | integer | Maximum number of DAGs to return (default: 20) |
name_contains | Filter DAGs by display name containing this string | |
offset | integer | Number of DAGs to skip for pagination (default: 0) |
get_dag Get Dag
[Tool Role]: Retrieves detailed information for a specific DAG.
| Parameter | Type | Description |
|---|---|---|
dag_id * | string | The DAG ID to get details for |
get_dags_detailed_batch Get Dags Detailed Batch
[Tool Role]: Retrieves detailed information for multiple DAGs in batch with latest run information.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | Fetch every DAG page; ignores limit and offset when True. Default: False. |
id_contains | Optional substring to match against DAG identifiers. Default: None. | |
is_active | Optional active-status filter; None includes both statuses. Default: None. | |
is_paused | Optional paused-status filter; None includes both statuses. Default: None. | |
limit | integer | Maximum number of records to request per page. Default: 100. |
name_contains | Optional substring to match against DAG display names. Default: None. | |
offset | integer | Number of records to skip for pagination. Default: 0. |
running_dags Running Dags
[Tool Role]: Lists all currently running DAG runs in the Airflow cluster.
failed_dags Failed Dags
[Tool Role]: Lists all recently failed DAG runs in the Airflow cluster.
trigger_dag Trigger Dag
[Tool Role]: Triggers a new DAG run for a specified Airflow DAG.
| Parameter | Type | Description |
|---|---|---|
dag_id * | string | Exact DAG identifier, as returned by list_dags; not its display name. |
pause_dag Pause Dag
[Tool Role]: Pauses the specified Airflow DAG (prevents scheduling new runs).
| Parameter | Type | Description |
|---|---|---|
dag_id * | string | Exact DAG identifier, as returned by list_dags; not its display name. |
unpause_dag Unpause Dag
[Tool Role]: Unpauses the specified Airflow DAG (allows scheduling new runs).
| Parameter | Type | Description |
|---|---|---|
dag_id * | string | Exact DAG identifier, as returned by list_dags; not its display name. |
dag_graph Dag Graph
[Tool Role]: Retrieves task graph structure for the specified DAG.
| Parameter | Type | Description |
|---|---|---|
dag_id * | string | Exact DAG identifier, as returned by list_dags; not its display name. |
list_tasks List Tasks
[Tool Role]: Lists all tasks within the specified DAG.
| Parameter | Type | Description |
|---|---|---|
dag_id * | string | Exact DAG identifier, as returned by list_dags; not its display name. |
dag_code Dag Code
[Tool Role]: Retrieves the source code for the specified DAG.
| Parameter | Type | Description |
|---|---|---|
dag_id * | string | Exact DAG identifier, as returned by list_dags; not its display name. |
list_event_logs List Event Logs
[Tool Role]: Lists event logs from Airflow.
| Parameter | Type | Description |
|---|---|---|
dag_id | Exact DAG identifier, as returned by list_dags; not its display name. Default: None. | |
limit | integer | Maximum number of records to request per page. Default: 20. |
offset | integer | Number of records to skip for pagination. Default: 0. |
get_event_log Get Event Log
[Tool Role]: Retrieves a specific event log entry.
| Parameter | Type | Description |
|---|---|---|
event_log_id * | integer | Numeric identifier of the event log entry. |
all_dag_event_summary All Dag Event Summary
[Tool Role]: Provides summary of event logs across all DAGs.
list_import_errors List Import Errors
[Tool Role]: Lists import errors in Airflow.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of records to request per page. Default: 20. |
offset | integer | Number of records to skip for pagination. Default: 0. |
get_import_error Get Import Error
[Tool Role]: Retrieves a specific import error.
| Parameter | Type | Description |
|---|---|---|
import_error_id * | integer | Numeric identifier of the DAG import error. |
all_dag_import_summary All Dag Import Summary
[Tool Role]: Provides summary of import errors across all DAGs.
dag_run_duration Dag Run Duration
[Tool Role]: Analyzes DAG run durations and performance metrics.
| Parameter | Type | Description |
|---|---|---|
dag_id * | string | Exact DAG identifier, as returned by list_dags; not its display name. |
limit | integer | Maximum number of recent DAG runs to analyze (default: 10). |
dag_task_duration Dag Task Duration
[Tool Role]: Analyzes task durations within a DAG run.
| Parameter | Type | Description |
|---|---|---|
dag_id * | string | Exact DAG identifier, as returned by list_dags; not its display name. |
dag_run_id | DAG run identifier; omitted or empty selects the latest run. |
dag_calendar Dag Calendar
[Tool Role]: Shows DAG schedule and execution calendar for a date range.
| Parameter | Type | Description |
|---|---|---|
dag_id * | string | Exact DAG identifier, as returned by list_dags; not its display name. |
end_date * | string | Inclusive run start-time upper bound in ISO 8601 format. |
start_date * | string | Inclusive run start-time lower bound in ISO 8601 format. |
get_health Get Health
[Tool Role]: Checks Airflow cluster health status.
get_version Get Version
[Tool Role]: Gets Airflow version information.
get_config Get Config
[Tool Role]: Retrieves Airflow configuration.
list_config_sections List Config Sections
[Tool Role]: Lists all configuration sections with summary.
get_config_section Get Config Section
[Tool Role]: Gets all options within a specific configuration section.
| Parameter | Type | Description |
|---|---|---|
section_name * | string | Exact Airflow configuration section name, such as core. |
search_config_options Search Config Options
[Tool Role]: Searches for configuration options matching a term.
| Parameter | Type | Description |
|---|---|---|
search_term * | string | Case-insensitive substring to find in option names or values. |
list_pools List Pools
[Tool Role]: Lists all pools in Airflow.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of records to request per page. Default: 20. |
offset | integer | Number of records to skip for pagination. Default: 0. |
get_pool Get Pool
[Tool Role]: Gets details for a specific pool.
| Parameter | Type | Description |
|---|---|---|
pool_name * | string | Exact Airflow pool name, such as default_pool. |
list_task_instances_all List Task Instances All
[Tool Role]: Lists task instances with comprehensive filtering options.
| Parameter | Type | Description |
|---|---|---|
dag_id | Exact DAG identifier, as returned by list_dags; not its display name. Default: None. | |
dag_run_id | Exact DAG run identifier for the selected DAG. Default: None. | |
duration_gte | Optional minimum task duration in seconds. Default: None. | |
duration_lte | Optional maximum task duration in seconds. Default: None. | |
end_date_gte | Optional inclusive task end time lower bound, in ISO 8601 format. Default: None. | |
end_date_lte | Optional inclusive task end time upper bound, in ISO 8601 format. Default: None. | |
execution_date_gte | Optional inclusive execution date (v1) or logical date (v2) lower bound, in ISO 8601 format. Default: None. | |
execution_date_lte | Optional inclusive execution date (v1) or logical date (v2) upper bound, in ISO 8601 format. Default: None. | |
limit | integer | Maximum number of records to request per page. Default: 100. |
offset | integer | Number of records to skip for pagination. Default: 0. |
pool | Optional list of Airflow pool names to filter task instances. Default: None. | |
start_date_gte | Optional inclusive task start time lower bound, in ISO 8601 format. Default: None. | |
start_date_lte | Optional inclusive task start time upper bound, in ISO 8601 format. Default: None. | |
state | Optional list of task states, such as ["failed", "running"]. Default: None. | |
task_id | Exact task identifier within the selected DAG. Default: None. |
get_task_instance_details Get Task Instance Details
[Tool Role]: Gets detailed information for a specific task instance.
| Parameter | Type | Description |
|---|---|---|
dag_id * | string | Exact DAG identifier, as returned by list_dags; not its display name. |
dag_run_id * | string | Exact DAG run identifier for the selected DAG. |
task_id * | string | Exact task identifier within the selected DAG. |
list_task_instances_batch List Task Instances Batch
[Tool Role]: Lists task instances in batch with date and state filtering.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of records to request per page. Default: 100. |
offset | integer | Number of records to skip for pagination. Default: 0. |
start_date_gte | Optional inclusive task start time lower bound, in ISO 8601 format. Default: None. | |
start_date_lte | Optional inclusive task start time upper bound, in ISO 8601 format. Default: None. | |
state | Optional list of task states, such as ["failed", "running"]. Default: None. |
get_task_instance_extra_links Get Task Instance Extra Links
[Tool Role]: Gets extra links for a task instance.
| Parameter | Type | Description |
|---|---|---|
dag_id * | string | Exact DAG identifier, as returned by list_dags; not its display name. |
dag_run_id * | string | Exact DAG run identifier for the selected DAG. |
task_id * | string | Exact task identifier within the selected DAG. |
get_task_instance_logs Get Task Instance Logs
[Tool Role]: Retrieves logs for a specific task instance.
| Parameter | Type | Description |
|---|---|---|
dag_id * | string | Exact DAG identifier, as returned by list_dags; not its display name. |
dag_run_id * | string | Exact DAG run identifier for the selected DAG. |
task_id * | string | Exact task identifier within the selected DAG. |
try_number | integer | Task attempt number whose logs to retrieve (default: 1). Default: 1. |
list_variables List Variables
[Tool Role]: Lists all variables in Airflow.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of records to request per page. Default: 20. |
offset | integer | Number of records to skip for pagination. Default: 0. |
get_variable Get Variable
[Tool Role]: Gets the value of a specific variable.
| Parameter | Type | Description |
|---|---|---|
variable_key * | string | Exact key of the Airflow variable. |
list_xcom_entries List Xcom Entries
[Tool Role]: Lists XCom entries for a specific task instance.
| Parameter | Type | Description |
|---|---|---|
dag_id * | string | Exact DAG identifier, as returned by list_dags; not its display name. |
dag_run_id * | string | Exact DAG run identifier for the selected DAG. |
task_id * | string | Exact task identifier within the selected DAG. |
limit | integer | Maximum number of records to request per page. Default: 20. |
offset | integer | Number of records to skip for pagination. Default: 0. |
get_xcom_entry Get Xcom Entry
[Tool Role]: Gets a specific XCom entry.
| Parameter | Type | Description |
|---|---|---|
dag_id * | string | Exact DAG identifier, as returned by list_dags; not its display name. |
dag_run_id * | string | Exact DAG run identifier for the selected DAG. |
task_id * | string | Exact task identifier within the selected DAG. |
xcom_key * | string | Exact XCom key for the selected task instance. |
list_connections List Connections
[Tool Role]: Lists all connections in Airflow.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of records to request per page. Default: 20. |
offset | integer | Number of records to skip for pagination. Default: 0. |
get_connection Get Connection
[Tool Role]: Gets details for a specific connection.
| Parameter | Type | Description |
|---|---|---|
connection_id * | string | Exact Airflow connection identifier. |
create_connection Create Connection
[Tool Role]: Creates a new connection.
| Parameter | Type | Description |
|---|---|---|
connection_data * | object | Connection JSON body with connection_id and conn_type; optional host, login, password, schema, port, and extra fields. Obtain credentials from a secret store; do not hardcode them. |
update_connection Update Connection
[Tool Role]: Updates an existing connection.
| Parameter | Type | Description |
|---|---|---|
connection_data * | object | Connection JSON body containing fields to update, such as host, login, password, schema, port, or extra. Obtain credentials from a secret store; do not hardcode them. |
connection_id * | string | Exact Airflow connection identifier. |
delete_connection Delete Connection
[Tool Role]: Deletes a connection.
| Parameter | Type | Description |
|---|---|---|
connection_id * | string | Exact Airflow connection identifier. |
list_users List Users
[Tool Role]: Lists all users in the Airflow system (v1 API only).
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of records to request per page. Default: 20. |
offset | integer | Number of records to skip for pagination. Default: 0. |
get_user Get User
[Tool Role]: Gets details of a specific user (v1 API only).
| Parameter | Type | Description |
|---|---|---|
username * | string | Exact Airflow username (API v1 only). |
list_permissions List Permissions
[Tool Role]: Lists all permissions available in the Airflow system (v1 API only).
list_roles List Roles
[Tool Role]: Lists all roles in the Airflow system (v1 API only).
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of records to request per page. Default: 20. |
offset | integer | Number of records to skip for pagination. Default: 0. |
list_plugins List Plugins
[Tool Role]: Lists all installed plugins in the Airflow system.
list_providers List Providers
[Tool Role]: Lists all provider packages installed in the Airflow system.
get_provider Get Provider
[Tool Role]: Gets details of a specific provider package.
| Parameter | Type | Description |
|---|---|---|
provider_name * | string | Exact provider package name, such as apache- airflow-providers-http. |
list_datasets List Datasets
[Tool Role]: Lists all datasets in the Airflow system (v1 API only - v2 uses Assets).
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of records to request per page. Default: 20. |
offset | integer | Number of records to skip for pagination. Default: 0. |
uri_pattern | Optional dataset URI pattern passed to the API (v1 only). Default: None. |
get_dataset Get Dataset
[Tool Role]: Gets details of a specific dataset (v1 API only - v2 uses Assets).
| Parameter | Type | Description |
|---|---|---|
dataset_uri * | string | Dataset URI, such as s3://bucket/path; API v1 only. |
list_dataset_events List Dataset Events
[Tool Role]: Lists dataset events for data lineage tracking (v1 API only - v2 uses Assets).
| Parameter | Type | Description |
|---|---|---|
dataset_uri | Dataset URI, such as s3://bucket/path; API v1 only. Default: None. | |
limit | integer | Maximum number of records to request per page. Default: 20. |
offset | integer | Number of records to skip for pagination. Default: 0. |
source_dag_id | Optional identifier of the DAG that produced the events. Default: None. |
get_dataset_events Get Dataset Events
[Tool Role]: Gets events for a specific dataset (v1 API only - v2 uses Assets).
| Parameter | Type | Description |
|---|---|---|
dataset_uri * | string | Dataset URI, such as s3://bucket/path; API v1 only. |
limit | integer | Maximum number of records to request per page. Default: 20. |
offset | integer | Number of records to skip for pagination. Default: 0. |