airflow

v1.4.1
io.github.us-all/airflow Checked 1 day ago Published 5 months ago

Airflow MCP — list DAGs/runs/task instances, tail logs, trigger and clear (write-gated)

Values you need

VariableWhat it is
AIRFLOW_API_URLrequired 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_USERNAMErequired Airflow username (used to mint a JWT via SimpleAuthManager /auth/token).
AIRFLOW_PASSWORDrequired secret Airflow password (used to mint a JWT via SimpleAuthManager /auth/token).
AIRFLOW_ALLOW_WRITEoptional Set to 'true' to enable trigger-dag and clear-task tools. Default read-only. Default: false
AIRFLOW_TOOLSoptional Comma-separated category allowlist (airflow,meta).
AIRFLOW_DISABLEoptional 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.1
Add 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

  1. 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.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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, ….
  5. 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