airflow-dev-mcp
An MCP server that enables AI coding assistants to interact with a local Airflow cluster via its REST API for triggering DAG runs, monitoring status, reading logs, and diagnosing errors.
README
airflow-dev-mcp
An MCP server that lets an AI coding assistant (Claude Code, Cursor, and other MCP clients) drive a development or local Airflow cluster through Airflow's REST API. It can trigger DAG runs, watch their status, read task logs, and diagnose parse errors.
It talks to Airflow over HTTP only. There's no dependency on your Airflow source tree,
no filesystem or database access, and no local config files. All configuration is set through environment
variables. It support both Airflow 3 (via /api/v2, the default) and
Airflow 2 (/api/v1).
Airflow-dev-mcp is designed for the write-a-DAG / run-it / read-the-logs loop against a development and/or local environment. Pointing it at a production cluster is not recommended.
Install & run
The package ships a single console command, airflow-dev-mcp, which starts the MCP
server on stdio. Installation requires uv.
_Note: most users will skip this and just add it to their coding environment (See: below)
To download and validate the package, run:
uvx airflow-dev-mcp --check # fetch + run a one-shot connectivity check
It can be installed as a persistent tool but typical installation is to
just have your coding agent call it through uvx (See: Configure your
MCP client below). If you do want to install it system wide, use one of the
two following commands
uv tool install airflow-dev-mcp
# or
pipx install airflow-dev-mcp
Configure your MCP client
Claude Code
The easiest way is the claude mcp add CLI, which writes the config to the correct
place for you. 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-mcp
Add --scope user to make it available in every project, or --scope project to write
a checked-in .mcp.json you can commit for your team (the default scope is local to you
in the current project).
To configure it by hand instead, create a .mcp.json file in the project root — this
is the file Claude Code reads for project-scoped MCP servers.
{
"mcpServers": {
"airflow-dev": {
"command": "uvx",
"args": ["airflow-dev-mcp"],
"env": {
"AIRFLOW_URL": "http://localhost:8080",
"AIRFLOW_USERNAME": "admin",
"AIRFLOW_PASSWORD": "admin"
}
}
}
}
For a user-global setup, put the same mcpServers block in ~/.claude.json instead.
Other MCP clients
Any client that launches stdio MCP servers works the same way: run the command
airflow-dev-mcp (or uvx airflow-dev-mcp) with the environment variables below.
Configuration
All configuration is via environment variables:
| Variable | Default | Description |
|---|---|---|
AIRFLOW_URL |
http://localhost:8080 |
Base URL of the cluster, no path. |
AIRFLOW_API_PREFIX |
/api/v2 |
API path prefix. Use /api/v1 for Airflow 2.x. |
AIRFLOW_USERNAME |
— | Username. Used together with AIRFLOW_PASSWORD. |
AIRFLOW_PASSWORD |
— | Password. |
AIRFLOW_TOKEN |
— | Explicit bearer token; skips username/password entirely. |
AIRFLOW_AUTH_MODE |
auto |
auto, jwt, or basic (see below). |
AIRFLOW_TOKEN_ENDPOINT |
/auth/token |
Path used to exchange credentials for a JWT. |
AIRFLOW_TIMEOUT |
30 |
HTTP timeout, in seconds. |
AIRFLOW_VERIFY_SSL |
true |
Set false to skip TLS verification (self-signed dev certs). |
Authentication
- Airflow 3.x (the default local/MWAA-style image): leave
AIRFLOW_AUTH_MODE=auto. The server posts your username/password to/auth/token, caches the returned JWT, and sends it as a bearer token on every request. - Airflow 2.x: set
AIRFLOW_API_PREFIX=/api/v1andAIRFLOW_AUTH_MODE=basic(2.x uses HTTP basic auth against the REST API). - Pre-issued token: set
AIRFLOW_TOKENand omit the username/password.
Tools
| Tool | What it does |
|---|---|
trigger_dag |
Start a manual DAG run, optionally with a conf payload. Returns the dag_run_id. |
get_run_status |
State of a run plus per-task states (task, state, try number, operator, timing). |
get_task_logs |
Logs for one task attempt, tailed to the last N lines by default. |
list_dag_runs |
Recent runs of a DAG — find a run when you don't already have its id. |
clear_task_instances |
Clear tasks so they re-run. Defaults to a dry-run preview. |
list_dags |
Registered DAGs with their paused / import-error / active flags. |
get_import_errors |
Parse failures with filename and traceback — why a new DAG isn't showing up. |
set_dag_paused |
Pause or unpause a DAG (new local DAGs start paused). |
list_variables |
Read Airflow Variables (read-only). |
list_connections |
Read Airflow Connections, minus passwords (read-only). |
The four list_* tools, get_run_status, get_task_logs, and get_import_errors are
strictly read-only. trigger_dag, set_dag_paused, and clear_task_instances change
cluster state. There are deliberately no tools that create or modify Variables or
Connections.
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。