MCP Airflow API server

MCP Airflow API server

mcp-airflow-api•bycall518

A Model Context Protocol server that lets MCP clients inspect and operate Apache Airflow through its REST API, supporting both Airflow 2.x API v1 and Airflow 3.x API v2.

License: MIT•Runtime: Awaiting documentation review•Category: cloud devops

WHAT IT DOES

  • •Browses Airflow resources such as DAGs, DAG runs, task instances, pools, variables, connections, and cluster health.
  • •Triggers, pauses, and manages supported Airflow resources using the configured account's permissions.
  • •Offers local stdio or Streamable HTTP transport, with optional Bearer authentication for HTTP.
  • •Supports Airflow 2.x via REST API v1 and Airflow 3.x via REST API v2, with asset tools only on v2.

BEST FOR

  • •Operators who want to ask natural-language questions about DAG runs and failed task instances through an MCP client.
  • •Users who need to trigger DAGs from a chat client such as Claude Desktop or OpenWebUI.
  • •Teams checking Airflow cluster health through a conversational MCP interface.

ABOUT MCP-AIRFLOW-API

MCP Airflow API server is cataloged as an MCP server attributed to call518. A Model Context Protocol server that lets MCP clients inspect and operate Apache Airflow through its REST API, supporting both Airflow 2.x API v1 and Airflow 3.x API v2. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Airflow API server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which Airflow versions does the server support?

It supports Airflow 2.x through REST API v1 and Airflow 3.x through REST API v2, with asset tools available only on v2; the version is selected with AIRFLOW_API_VERSION.

Can the server change Airflow state?

Yes, it can change Airflow state when the configured account permits it, so the documentation recommends reviewing tool calls and using a least-privilege Airflow account.

上游原版 README

在 GitHub 查看同一版本原文

README.md · cc77effc27b5 · 采集于 2026-11-13 13:25:30 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP-Airflow-API

Use Claude, OpenWebUI, and other MCP clients to inspect and operate Apache Airflow through its REST API.

License: MIT PyPI Docker Pulls Release workflow

What is MCP-Airflow-API?

MCP-Airflow-API turns plain-language requests into Apache Airflow REST API calls. One server supports Airflow 2.x API v1 and Airflow 3.x API v2, selected with AIRFLOW_API_VERSION.

  • Inspect DAGs, DAG runs, task instances, pools, variables, connections, and cluster health.
  • Trigger, pause, and manage supported Airflow resources using the permissions of the configured Airflow account.
  • Use local stdio or Streamable HTTP transport.
  • Run with Claude Desktop, OpenWebUI, any MCP client, or the optional MCPO OpenAPI compatibility proxy.

Example requests:

Show the currently running DAGs.
List failed task instances from the last 24 hours.
Trigger the example_etl DAG with today's processing date.
Show assets updated by data_ingestion.  # Airflow 3.x only

More requests to try: see Example queries by area for DAGs, task instances, XComs, pools, variables, configuration, monitoring, assets, datasets, users, plugins, and providers.

Quick Start

Choose one path. Both require an Airflow account and network access to its API. For a test cluster, see Airflow-Docker-Compose.

Option A: Claude Desktop with MCPB

  1. Download mcp-airflow-api-<version>.mcpb from the latest GitHub Release.
  2. In Claude Desktop, open Settings → Extensions → Advanced settings → Install Extension… and select the bundle.
  3. Choose API v1 for Airflow 2.x or v2 for Airflow 3.x, then enter the API base URL, user name, and password.
  4. Ask: Show the health of my Airflow cluster.

The base URL excludes the version suffix, for example http://localhost:8080/api. See the Claude Desktop guide for uvx, source, and remote alternatives.

Option B: OpenWebUI with Docker Compose

Requirements: Git, Docker with the Compose plugin, and a model provider for OpenWebUI whose model supports tool calling.

1. Configure

git clone https://github.com/call518/MCP-Airflow-API.git
cd MCP-Airflow-API
cp .env.example .env
cp mcp-config.json.http mcp-config.json.http.local
chmod 600 mcp-config.json.http.local
openssl rand -hex 32   # use the output as WEBUI_SECRET_KEY
vi .env                # set WEBUI_SECRET_KEY and the AIRFLOW_* values

2. Start

docker compose up -d
docker compose ps      # wait until mcp-server is healthy

The default stack exposes only localhost:

  • OpenWebUI: http://localhost:3002
  • MCP server: http://localhost:18002/mcp
  • Optional MCPO/OpenAPI proxy: http://localhost:8002

3. Connect a model provider

These steps apply to both the direct MCP connection and MCPO.

  1. Open http://localhost:3002 and create the administrator account.

  2. Under Settings → Admin → Connections, add an OpenAI connection with URL https://api.openai.com/v1, Auth Bearer with your OpenAI API key, and API Type set to Chat Completions, then save it. For another provider, see the OpenWebUI guide.

  3. The Quick Start calls tools through Chat Completions with model reasoning turned off, using this default already present in .env.example:

    DEFAULT_MODEL_PARAMS={"reasoning_effort":"none"}
    

    This value requires API Type: Chat Completions. With Responses, OpenWebUI still sends reasoning_effort, and every request fails with Unsupported parameter: 'reasoning_effort'. If the open-webui-data volume already exists, set the same value under Settings → Admin → Models → Model Defaults → Model Parameters because its saved database value takes precedence. To keep model reasoning through Responses instead, see the OpenWebUI guide.

4. Connect the MCP server

  1. Under Settings → Admin → Tools → Integrations → External Tool Servers, add a connection of type MCP (Streamable HTTP) with the internal Docker URL http://mcp-server:8000/mcp and authentication None. Do not use the host URL from inside the Docker network.
  2. In a new chat, enable the connection under Integrations → Tools and ask: Use mcp-airflow-api to show the Airflow cluster health.

MCPO is optional. OpenWebUI connects directly to MCP; MCPO exists for OpenAPI clients. Start without it using docker compose up -d mcp-server open-webui.

See the OpenWebUI guide for MCPO setup, authentication, OpenAI reasoning models, and troubleshooting.

Other installation methods

MethodCommand or guide
PyPI with uvxuvx --python 3.12 mcp-airflow-api
Claude Desktop JSON configurationClaude Desktop guide
Local developmentuv sync --frozen && uv run mcp-airflow-api
Streamable HTTPuv run mcp-airflow-api --type streamable-http
OpenWebUI and MCPOOpenWebUI guide

Configuration

VariableRequiredDescription
AIRFLOW_API_VERSIONNov1 for Airflow 2.x (default), v2 for Airflow 3.x
AIRFLOW_API_BASE_URLYesAPI root without /v1 or /v2, such as http://localhost:8080/api
AIRFLOW_API_USERNAMEYesAirflow API user name
AIRFLOW_API_PASSWORDYesAirflow API password
MCP_LOG_LEVELNoDEBUG, INFO, WARNING, ERROR, or CRITICAL
FASTMCP_TYPENostdio (default) or streamable-http
FASTMCP_HOSTHTTP onlyBind address; defaults to 127.0.0.1
FASTMCP_PORTHTTP onlyListen port; defaults to 8000
REMOTE_AUTH_ENABLEHTTP onlyEnable Bearer authentication
REMOTE_SECRET_KEYWhen auth enabledBearer token shared with MCP clients

See Configuration and security for Docker port settings, authentication, and client examples.

Safety and security

  • The server can change Airflow state when the configured account permits it. Review tool calls and use a least-privilege Airflow account.
  • Keep .env and mcp-config.json.*.local files out of Git. Tracked examples contain placeholders only.
  • Compose binds HTTP ports to 127.0.0.1 by default. Before exposing the MCP server remotely, enable Bearer authentication and put it behind HTTPS.
  • MCPB runs locally over stdio and does not use the HTTP Bearer settings.

Compatibility

  • Python 3.12 or newer
  • Airflow 2.x through REST API v1
  • Airflow 3.x through REST API v2; asset tools are v2-only
  • Claude Desktop MCPB, generic stdio/Streamable HTTP MCP clients, OpenWebUI, and optional MCPO/OpenAPI clients

Exact endpoint availability still depends on the Airflow version and the configured account's permissions.

Documentation

GuideContents
Claude DesktopMCPB, uvx, source, and remote connections
OpenWebUIModel provider, direct MCP, optional MCPO, OpenAI API type and reasoning models, troubleshooting
Configuration and securityEnvironment variables, ports, Bearer authentication
Usage guideExample queries by area
API coverageDetailed tool and Airflow endpoint coverage

Development

uv sync --frozen
uv run pytest -ra

Run locally over stdio:

AIRFLOW_API_VERSION=v1 \
AIRFLOW_API_BASE_URL=http://localhost:8080/api \
AIRFLOW_API_USERNAME=airflow \
AIRFLOW_API_PASSWORD=airflow \
uv run mcp-airflow-api

Build an MCPB without including local configuration or credentials:

scripts/build-mcpb.sh 0.0.0 /tmp/mcp-airflow-api-mcpb-check
unzip -l /tmp/mcp-airflow-api-mcpb-check/mcp-airflow-api-0.0.0.mcpb

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Airflow API server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-airflow-api)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related cloud devops MCP Servers

Alternative and complementary servers in the same category

View all in cloud devops →
Huawei MCP Server
mcp-server-huaweiclouddeveloper•huaweiclouddeveloper

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

Repository stats unavailable
Cloud & DevOps
Coolify MCP Server
coolify-mcp-server•wrediam

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

Repository stats unavailable
Cloud & DevOps

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.

Repository stats unavailable
Cloud & DevOps