CM

call518/mcp-airflow-api

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

54 stars 14 forks 质量 75 趋势 20MIT

call518/mcp-airflow-api 是从 https://github.com/call518/mcp-airflow-api. 导入的 MCP 服务器候选

概览

call518/mcp-airflow-api 是从 https://github.com/call518/mcp-airflow-api. 导入的 MCP 服务器候选

概述(AI 翻译)

用于自然语言管理 Apache Airflow 的革命性开源工具


架构与内部(DeepWiki)


📋 概述

你是否曾想过,如果你能用自然语言而不是复杂的REST API调用或网页界面操作来管理Apache Airflow工作流程,那该有多棒?MCP-Airflow-API是实现这一目标的革命性开源项目。


🎯 什么是MCP-Airflow-API?

MCP-Airflow-API 是一款利用 模型上下文协议(MCP) 将 Apache Airflow REST API 操作转化为自然语言工具的 MCP 服务器。该项目隐藏了 API 结构的复杂性,并通过自然语言命令实现了 Airflow 集群的直观管理。

🆕 多版本 API 支持(全新!)

现在支持Airflow API v1(2.x)和v2(3.0+),并通过环境变量动态选择版本:

  • API v1:与Airflow 2.x集群(54个工具)完全兼容 - 文档
  • API v2:Airflow 3.0+ 增强功能,包括用于数据感知调度的资产管理(56 个注册工具)- 文档

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MCP-Airflow-API

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

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-.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
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →