mcp-airflow-api

v3.8.3
mcp-airflow-api Checked 1 day ago Published 20 days ago

Model 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.

ParameterTypeDescription
fetch_allbooleanIf True, fetches all DAGs regardless of limit/offset
id_containsFilter DAGs by ID containing this string
limitintegerMaximum number of DAGs to return (default: 20)
name_containsFilter DAGs by display name containing this string
offsetintegerNumber of DAGs to skip for pagination (default: 0)

get_dag Get Dag

[Tool Role]: Retrieves detailed information for a specific DAG.

ParameterTypeDescription
dag_id *stringThe 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.

ParameterTypeDescription
fetch_allbooleanFetch every DAG page; ignores limit and offset when True. Default: False.
id_containsOptional substring to match against DAG identifiers. Default: None.
is_activeOptional active-status filter; None includes both statuses. Default: None.
is_pausedOptional paused-status filter; None includes both statuses. Default: None.
limitintegerMaximum number of records to request per page. Default: 100.
name_containsOptional substring to match against DAG display names. Default: None.
offsetintegerNumber 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.

ParameterTypeDescription
dag_id *stringExact 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).

ParameterTypeDescription
dag_id *stringExact 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).

ParameterTypeDescription
dag_id *stringExact 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.

ParameterTypeDescription
dag_id *stringExact DAG identifier, as returned by list_dags; not its display name.

list_tasks List Tasks

[Tool Role]: Lists all tasks within the specified DAG.

ParameterTypeDescription
dag_id *stringExact 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.

ParameterTypeDescription
dag_id *stringExact DAG identifier, as returned by list_dags; not its display name.

list_event_logs List Event Logs

[Tool Role]: Lists event logs from Airflow.

ParameterTypeDescription
dag_idExact DAG identifier, as returned by list_dags; not its display name. Default: None.
limitintegerMaximum number of records to request per page. Default: 20.
offsetintegerNumber of records to skip for pagination. Default: 0.

get_event_log Get Event Log

[Tool Role]: Retrieves a specific event log entry.

ParameterTypeDescription
event_log_id *integerNumeric 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.

ParameterTypeDescription
limitintegerMaximum number of records to request per page. Default: 20.
offsetintegerNumber of records to skip for pagination. Default: 0.

get_import_error Get Import Error

[Tool Role]: Retrieves a specific import error.

ParameterTypeDescription
import_error_id *integerNumeric 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.

ParameterTypeDescription
dag_id *stringExact DAG identifier, as returned by list_dags; not its display name.
limitintegerMaximum number of recent DAG runs to analyze (default: 10).

dag_task_duration Dag Task Duration

[Tool Role]: Analyzes task durations within a DAG run.

ParameterTypeDescription
dag_id *stringExact DAG identifier, as returned by list_dags; not its display name.
dag_run_idDAG 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.

ParameterTypeDescription
dag_id *stringExact DAG identifier, as returned by list_dags; not its display name.
end_date *stringInclusive run start-time upper bound in ISO 8601 format.
start_date *stringInclusive 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.

ParameterTypeDescription
section_name *stringExact Airflow configuration section name, such as core.

search_config_options Search Config Options

[Tool Role]: Searches for configuration options matching a term.

ParameterTypeDescription
search_term *stringCase-insensitive substring to find in option names or values.

list_pools List Pools

[Tool Role]: Lists all pools in Airflow.

ParameterTypeDescription
limitintegerMaximum number of records to request per page. Default: 20.
offsetintegerNumber of records to skip for pagination. Default: 0.

get_pool Get Pool

[Tool Role]: Gets details for a specific pool.

ParameterTypeDescription
pool_name *stringExact Airflow pool name, such as default_pool.

list_task_instances_all List Task Instances All

[Tool Role]: Lists task instances with comprehensive filtering options.

ParameterTypeDescription
dag_idExact DAG identifier, as returned by list_dags; not its display name. Default: None.
dag_run_idExact DAG run identifier for the selected DAG. Default: None.
duration_gteOptional minimum task duration in seconds. Default: None.
duration_lteOptional maximum task duration in seconds. Default: None.
end_date_gteOptional inclusive task end time lower bound, in ISO 8601 format. Default: None.
end_date_lteOptional inclusive task end time upper bound, in ISO 8601 format. Default: None.
execution_date_gteOptional inclusive execution date (v1) or logical date (v2) lower bound, in ISO 8601 format. Default: None.
execution_date_lteOptional inclusive execution date (v1) or logical date (v2) upper bound, in ISO 8601 format. Default: None.
limitintegerMaximum number of records to request per page. Default: 100.
offsetintegerNumber of records to skip for pagination. Default: 0.
poolOptional list of Airflow pool names to filter task instances. Default: None.
start_date_gteOptional inclusive task start time lower bound, in ISO 8601 format. Default: None.
start_date_lteOptional inclusive task start time upper bound, in ISO 8601 format. Default: None.
stateOptional list of task states, such as ["failed", "running"]. Default: None.
task_idExact 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.

ParameterTypeDescription
dag_id *stringExact DAG identifier, as returned by list_dags; not its display name.
dag_run_id *stringExact DAG run identifier for the selected DAG.
task_id *stringExact 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.

ParameterTypeDescription
limitintegerMaximum number of records to request per page. Default: 100.
offsetintegerNumber of records to skip for pagination. Default: 0.
start_date_gteOptional inclusive task start time lower bound, in ISO 8601 format. Default: None.
start_date_lteOptional inclusive task start time upper bound, in ISO 8601 format. Default: None.
stateOptional list of task states, such as ["failed", "running"]. Default: None.

get_task_instance_logs Get Task Instance Logs

[Tool Role]: Retrieves logs for a specific task instance.

ParameterTypeDescription
dag_id *stringExact DAG identifier, as returned by list_dags; not its display name.
dag_run_id *stringExact DAG run identifier for the selected DAG.
task_id *stringExact task identifier within the selected DAG.
try_numberintegerTask attempt number whose logs to retrieve (default: 1). Default: 1.

list_variables List Variables

[Tool Role]: Lists all variables in Airflow.

ParameterTypeDescription
limitintegerMaximum number of records to request per page. Default: 20.
offsetintegerNumber of records to skip for pagination. Default: 0.

get_variable Get Variable

[Tool Role]: Gets the value of a specific variable.

ParameterTypeDescription
variable_key *stringExact key of the Airflow variable.

list_xcom_entries List Xcom Entries

[Tool Role]: Lists XCom entries for a specific task instance.

ParameterTypeDescription
dag_id *stringExact DAG identifier, as returned by list_dags; not its display name.
dag_run_id *stringExact DAG run identifier for the selected DAG.
task_id *stringExact task identifier within the selected DAG.
limitintegerMaximum number of records to request per page. Default: 20.
offsetintegerNumber of records to skip for pagination. Default: 0.

get_xcom_entry Get Xcom Entry

[Tool Role]: Gets a specific XCom entry.

ParameterTypeDescription
dag_id *stringExact DAG identifier, as returned by list_dags; not its display name.
dag_run_id *stringExact DAG run identifier for the selected DAG.
task_id *stringExact task identifier within the selected DAG.
xcom_key *stringExact XCom key for the selected task instance.

list_connections List Connections

[Tool Role]: Lists all connections in Airflow.

ParameterTypeDescription
limitintegerMaximum number of records to request per page. Default: 20.
offsetintegerNumber of records to skip for pagination. Default: 0.

get_connection Get Connection

[Tool Role]: Gets details for a specific connection.

ParameterTypeDescription
connection_id *stringExact Airflow connection identifier.

create_connection Create Connection

[Tool Role]: Creates a new connection.

ParameterTypeDescription
connection_data *objectConnection 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.

ParameterTypeDescription
connection_data *objectConnection 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 *stringExact Airflow connection identifier.

delete_connection Delete Connection

[Tool Role]: Deletes a connection.

ParameterTypeDescription
connection_id *stringExact Airflow connection identifier.

list_users List Users

[Tool Role]: Lists all users in the Airflow system (v1 API only).

ParameterTypeDescription
limitintegerMaximum number of records to request per page. Default: 20.
offsetintegerNumber of records to skip for pagination. Default: 0.

get_user Get User

[Tool Role]: Gets details of a specific user (v1 API only).

ParameterTypeDescription
username *stringExact 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).

ParameterTypeDescription
limitintegerMaximum number of records to request per page. Default: 20.
offsetintegerNumber 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.

ParameterTypeDescription
provider_name *stringExact 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).

ParameterTypeDescription
limitintegerMaximum number of records to request per page. Default: 20.
offsetintegerNumber of records to skip for pagination. Default: 0.
uri_patternOptional 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).

ParameterTypeDescription
dataset_uri *stringDataset 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).

ParameterTypeDescription
dataset_uriDataset URI, such as s3://bucket/path; API v1 only. Default: None.
limitintegerMaximum number of records to request per page. Default: 20.
offsetintegerNumber of records to skip for pagination. Default: 0.
source_dag_idOptional 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).

ParameterTypeDescription
dataset_uri *stringDataset URI, such as s3://bucket/path; API v1 only.
limitintegerMaximum number of records to request per page. Default: 20.
offsetintegerNumber of records to skip for pagination. Default: 0.