Incident Response MCP for Apache Airflow

v1.0.2
io.github.madamak/apache-airflow-mcp-server Checked 2 days ago Published 4 months ago

Diagnose Airflow failures from UI links with bounded logs and optional recovery actions.

Values you need

VariableWhat it is
AIRFLOW_MCP_HOSTrequired Base URL of the Airflow instance.
AIRFLOW_MCP_TOKENoptional secret Bearer token. Provide this or both username and password; it takes precedence when set.
AIRFLOW_MCP_USERNAMEoptional Basic-auth username. Required with password when token is omitted.
AIRFLOW_MCP_PASSWORDoptional secret Basic-auth password. Required with username when token is omitted.
AIRFLOW_MCP_API_VERSIONoptional The directory install uses the Airflow 3 client. See the README for Airflow 2 setup.
AIRFLOW_MCP_READ_ONLYoptional Expose only read tools unless write access is deliberately selected. Default: true

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add apache-airflow-mcp-server -e 'AIRFLOW_MCP_HOST=<AIRFLOW_MCP_HOST>' -- uvx --from apache-airflow-mcp-server==1.0.2 airflow-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "apache-airflow-mcp-server": {
      "args": [
        "--from",
        "apache-airflow-mcp-server==1.0.2",
        "airflow-mcp"
      ],
      "command": "uvx",
      "env": {
        "AIRFLOW_MCP_HOST": "<AIRFLOW_MCP_HOST>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "apache-airflow-mcp-server": {
      "args": [
        "--from",
        "apache-airflow-mcp-server==1.0.2",
        "airflow-mcp"
      ],
      "command": "uvx",
      "env": {
        "AIRFLOW_MCP_HOST": "<AIRFLOW_MCP_HOST>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "AIRFLOW_MCP_HOST",
      "id": "airflow-mcp-host",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "apache-airflow-mcp-server": {
      "args": [
        "--from",
        "apache-airflow-mcp-server==1.0.2",
        "airflow-mcp"
      ],
      "command": "uvx",
      "env": {
        "AIRFLOW_MCP_HOST": "${input:airflow-mcp-host}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.apache-airflow-mcp-server]
command = "uvx"
args = ["--from", "apache-airflow-mcp-server==1.0.2", "airflow-mcp"]
env = { "AIRFLOW_MCP_HOST" = "<AIRFLOW_MCP_HOST>" }

For AI agents

  1. Ask the user for: AIRFLOW_MCP_HOST. 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_instances, airflow_describe_instance, airflow_resolve_url, airflow_list_dags, airflow_get_dag, airflow_list_dag_runs, airflow_get_dag_run, airflow_list_task_instances, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json