airflow
v1.4.1Airflow MCP — list DAGs/runs/task instances, tail logs, trigger and clear (write-gated)
Values you need
| Variable | What it is | |
|---|---|---|
AIRFLOW_API_URL | required | Airflow host base, e.g. 'http://airflow.example.com:8080'. Server prepends /api/v2 internally; trailing /api/v1 or /api/v2 is stripped if supplied. |
AIRFLOW_USERNAME | required | Airflow username (used to mint a JWT via SimpleAuthManager /auth/token). |
AIRFLOW_PASSWORD | required secret | Airflow password (used to mint a JWT via SimpleAuthManager /auth/token). |
AIRFLOW_ALLOW_WRITE | optional | Set to 'true' to enable trigger-dag and clear-task tools. Default read-only. Default: false |
AIRFLOW_TOOLS | optional | Comma-separated category allowlist (airflow,meta). |
AIRFLOW_DISABLE | optional | Comma-separated category disablelist. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add airflow -e 'AIRFLOW_API_URL=<AIRFLOW_API_URL>' -e 'AIRFLOW_PASSWORD=<AIRFLOW_PASSWORD>' -e 'AIRFLOW_USERNAME=<AIRFLOW_USERNAME>' -- npx -y @us-all/airflow-mcp@1.4.1Add to
claude_desktop_config.json{
"mcpServers": {
"airflow": {
"args": [
"-y",
"@us-all/airflow-mcp@1.4.1"
],
"command": "npx",
"env": {
"AIRFLOW_API_URL": "<AIRFLOW_API_URL>",
"AIRFLOW_PASSWORD": "<AIRFLOW_PASSWORD>",
"AIRFLOW_USERNAME": "<AIRFLOW_USERNAME>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"airflow": {
"args": [
"-y",
"@us-all/airflow-mcp@1.4.1"
],
"command": "npx",
"env": {
"AIRFLOW_API_URL": "<AIRFLOW_API_URL>",
"AIRFLOW_PASSWORD": "<AIRFLOW_PASSWORD>",
"AIRFLOW_USERNAME": "<AIRFLOW_USERNAME>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "AIRFLOW_API_URL",
"id": "airflow-api-url",
"password": true,
"type": "promptString"
},
{
"description": "AIRFLOW_PASSWORD",
"id": "airflow-password",
"password": true,
"type": "promptString"
},
{
"description": "AIRFLOW_USERNAME",
"id": "airflow-username",
"password": true,
"type": "promptString"
}
],
"servers": {
"airflow": {
"args": [
"-y",
"@us-all/airflow-mcp@1.4.1"
],
"command": "npx",
"env": {
"AIRFLOW_API_URL": "${input:airflow-api-url}",
"AIRFLOW_PASSWORD": "${input:airflow-password}",
"AIRFLOW_USERNAME": "${input:airflow-username}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.airflow]
command = "npx"
args = ["-y", "@us-all/airflow-mcp@1.4.1"]
env = { "AIRFLOW_API_URL" = "<AIRFLOW_API_URL>", "AIRFLOW_PASSWORD" = "<AIRFLOW_PASSWORD>", "AIRFLOW_USERNAME" = "<AIRFLOW_USERNAME>" }For AI agents
- Ask the user for: AIRFLOW_API_URL, AIRFLOW_USERNAME, AIRFLOW_PASSWORD. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: airflow-list-dags, airflow-list-runs, airflow-get-task-instances, airflow-get-task-logs, airflow-trigger-dag, airflow-clear-task, airflow-list-assets, airflow-get-asset, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json