List all DAGs in the Airflow instance
Get details of a specific DAG
Pause a DAG
Unpause a DAG
Update a DAG's properties
Delete a DAG
List runs for a specific DAG
Trigger a new DAG run
Get details of a specific DAG run
List tasks for a specific DAG
Get details of a specific task
List all Airflow variables
Create a new Airflow variable
Get an Airflow variable
Update an Airflow variable
Delete an Airflow variable
List all Airflow connections
Create a new Airflow connection
Get an Airflow connection
Update an Airflow connection
Delete an Airflow connection
Test an Airflow connection
Get the health status of the Airflow instance
Get the version of the Airflow instance
This MCP server provides a standardized way to interact with Apache Airflow through the Model Context Protocol. It wraps Apache Airflow's REST API, allowing MCP clients to manage DAGs, DAG runs, tasks, variables, connections, pools, and more in a consistent manner. The implementation uses the official Apache Airflow client library to ensure compatibility and maintainability.
The Apache Airflow MCP server enables seamless integration between MCP clients and Apache Airflow instances. This server implementation wraps the Apache Airflow REST API, providing a standardized interface for workflow management operations.
You can install the Apache Airflow MCP server using pip:
pip install mcp-server-apache-airflow
Alternatively, you can use the Docker image:
docker pull yangkyeongmo/mcp-server-apache-airflow
The server requires the following environment variables to connect to your Apache Airflow instance:
AIRFLOW_HOST
: The URL of your Apache Airflow instance (e.g., http://localhost:8080
)AIRFLOW_USERNAME
: Your Airflow usernameAIRFLOW_PASSWORD
: Your Airflow passwordAIRFLOW_API_VERSION
(optional): The API version to use (defaults to v1
)After installation, you can run the server directly:
python -m mcp_server_apache_airflow
docker run -p 3000:3000 \
-e AIRFLOW_HOST=http://your-airflow-host:8080 \
-e AIRFLOW_USERNAME=your_username \
-e AIRFLOW_PASSWORD=your_password \
yangkyeongmo/mcp-server-apache-airflow
To use this MCP server with your MCP client, add the server configuration to your client's settings. The server exposes a comprehensive set of Airflow functionality, including:
The server handles authentication with your Airflow instance using the provided credentials. No additional authentication setup is required beyond providing the environment variables.
If you encounter connection issues:
For more detailed logs, you can set the log level to DEBUG.