Incident Response MCP for Apache Airflow
v1.0.2Diagnose Airflow failures from UI links with bounded logs and optional recovery actions.
Values you need
| Variable | What it is | |
|---|---|---|
AIRFLOW_MCP_HOST | required | Base URL of the Airflow instance. |
AIRFLOW_MCP_TOKEN | optional secret | Bearer token. Provide this or both username and password; it takes precedence when set. |
AIRFLOW_MCP_USERNAME | optional | Basic-auth username. Required with password when token is omitted. |
AIRFLOW_MCP_PASSWORD | optional secret | Basic-auth password. Required with username when token is omitted. |
AIRFLOW_MCP_API_VERSION | optional | The directory install uses the Airflow 3 client. See the README for Airflow 2 setup. |
AIRFLOW_MCP_READ_ONLY | optional | 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-mcpAdd 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
- Ask the user for: AIRFLOW_MCP_HOST. 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_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, ….
- 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