airflow-dev-mcp
This server lets an AI coding assistant drive a development or local Apache Airflow cluster through Airflow's REST API, enabling the full write-a-DAG / run-it / read-the-logs development loop.
DAG Management
list_dags— List registered DAGs with their paused/active/import-error flags, file locations, tags, and scheduling info; filter by pattern or tagsset_dag_paused— Pause or unpause a DAG (new local DAGs start paused by default, blocking execution)get_import_errors— Retrieve DAG parse failures with filenames and full tracebacks — the primary tool for diagnosing why a new DAG isn't showing up
DAG Run Operations
trigger_dag— Manually start a DAG run, optionally with aconfpayload, logical date, and a note; returns thedag_run_idlist_dag_runs— List recent runs for a given DAG or across all DAGs, filterable by stateget_run_status— Get the state of a DAG run plus per-task states (task ID, state, try number, operator, timing, duration)
Task Operations
get_task_logs— Fetch logs for a specific task instance attempt, withtry_number,map_index, andtail_linesoptionsclear_task_instances— Clear task instances for re-execution after a fix; supports dry-run preview, scoped clearing, and resetting DAG run state
Configuration Inspection (Read-Only)
list_variables— Read Airflow Variables (sensitive values masked; no create/modify)list_connections— Read Airflow Connection metadata (passwords never returned; no create/modify)
Supports both Airflow 3 (default) and Airflow 2 via configurable API prefix and auth mode.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@airflow-dev-mcpTrigger the my_etl DAG and check its status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
airflow-dev-mcp
This is an MCP server for driving a local or development Airflow cluster from an AI coding assistant such as Claude Code, Cursor, or any other MCP client. Use it to trigger DAG runs, watch their status, read task logs, and see why a DAG failed to parse, all without leaving your editor.
The server talks to Airflow through its REST API and nothing else. It never touches your
DAG source, filesystem, or database, and there are no config files to manage; everything
is set with environment variables. Both Airflow 3 (/api/v2) and Airflow 2 (/api/v1)
work, and the version is detected automatically.
Configuring your MCP client
Claude Code
The quickest way is claude mcp add, run from your project directory:
claude mcp add airflow-dev \
-e AIRFLOW_URL=http://localhost:8080 \
-e AIRFLOW_USERNAME=admin \
-e AIRFLOW_PASSWORD=admin \
-- uvx airflow-dev-mcpAdd --scope user to make it available in every project, or --scope project to write a
.mcp.json you can commit for your team. The default scope is local to you in the current
project.
Manual configuration
To set it up by hand instead, put the following in a .mcp.json file at your project root:
{
"mcpServers": {
"airflow-dev": {
"command": "uvx",
"args": ["airflow-dev-mcp"],
"env": {
"AIRFLOW_URL": "http://localhost:8080",
"AIRFLOW_USERNAME": "admin",
"AIRFLOW_PASSWORD": "admin"
}
}
}
}For a setup that applies everywhere, put the same mcpServers block in ~/.claude.json.
Other clients
Any client that launches stdio MCP servers works the same way. Have it run
uvx airflow-dev-mcp (or airflow-dev-mcp if you installed it) with the environment
variables below.
Related MCP server: Apache Airflow MCP Server
Configuration
Variable | Default | Description |
|
| Base URL of the cluster, with no path. |
| — | Username, used together with |
| — | Password. |
|
| HTTP timeout, in seconds. |
|
| Set to |
Set AIRFLOW_USERNAME and AIRFLOW_PASSWORD and you are done; the server works out
whether it is talking to Airflow 3 or Airflow 2 on first use and authenticates the right
way.
Tools
Tool | What it does |
| List registered DAGs with their paused, active, and import-error flags. |
| Show parse failures with filename and traceback, so you can see why a new DAG isn't showing up. |
| Pause or unpause a DAG. New local DAGs start paused. |
| Start a manual DAG run, optionally with a |
| Report a run's state and its per-task states (task, state, try number, operator, timing). |
| Return the logs for one task attempt, tailed to the last N lines by default. |
| List recent runs of a DAG, to find a run when you don't have its id. |
| Clear tasks so they re-run. Previews as a dry run by default. |
| Read Airflow Variables. |
| Read Airflow Connections, with passwords omitted. |
Only trigger_dag, set_dag_paused, and clear_task_instances change anything on the
cluster; everything else is read-only. There are no tools that create or modify Variables
or Connections.
License
MIT, see LICENSE.
Contributing
If you are interested in contributing see: CONTRIBUTING.md.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
AlicenseAqualityFmaintenanceAn MCP server that enables AI assistants to interact with Apache Airflow's REST API for DAG management, task monitoring, and system diagnostics. It provides comprehensive tools for triggering workflows, retrieving logs, and inspecting system health across Airflow 2.x and 3.x versions.3113Apache 2.0- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server that wraps the Apache Airflow REST API, enabling clients to manage DAGs, monitor task instances, and handle workflows through a standardized interface. It provides comprehensive access to Airflow features including DAG runs, variables, connections, and XComs.
- AlicenseAqualityAmaintenanceMCP server exposing Apache Airflow REST API operations as tools — list DAGs, inspect runs and task instances, trigger DAG runs, and check failed DAGs and scheduler health72MIT
- FlicenseNot gradedqualityDmaintenanceEnables DAG management, monitoring, debugging, and connection testing for Apache Airflow through the MCP protocol.
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
MCP server for AI dialogue using various LLM models via AceDataCloud
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/BrianLondon/airflow-dev-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server