airflow-mcp-server
airflow-mcp-server:用于控制 Airflow 的 MCP 服务器
在 Glama 上查找
概述
用于通过 Airflow API 控制 Airflow 的模型上下文协议服务器。
Related MCP server: Apache Airflow MCP Server
演示视频
https://github.com/user-attachments/assets/f3e60fff-8680-4dd9-b08e-fa7db655a705
设置
与 Claude Desktop 一起使用
{
"mcpServers": {
"airflow-mcp-server": {
"command": "uvx",
"args": [
"airflow-mcp-server",
"--base-url",
"http://localhost:8080",
"--auth-token",
"<jwt_token>"
]
}
}
}笔记:
将
base_url设置为根 Airflow URL(例如,http://localhost:8080)。请勿在基本 URL 中包含
/api/v2。服务器将自动从${base_url}/openapi.json获取 OpenAPI 规范。身份验证仅需要 JWT 令牌。Airflow 3.0 不再支持 Cookie 和基本身份验证。
操作模式
服务器支持两种运行模式:
安全模式(
--safe):仅允许只读操作(GET 请求)。当您想阻止对 Airflow 实例进行任何修改时,此功能非常有用。不安全模式(
--unsafe):允许所有操作,包括修改。这是默认模式。
以安全模式启动:
airflow-mcp-server --safe要明确以不安全模式启动(尽管这是默认模式):
airflow-mcp-server --unsafe注意事项
验证
Airflow 3.0 仅支持 JWT 身份验证。您必须提供有效的
AUTH_TOKEN。
页面限制
默认值为 100 个项目,但您可以使用airflow.cfg文件中 [api] 部分中的maximum_page_limit选项进行更改。
任务
[x] Airflow 3 准备就绪
[x] 解析 OpenAPI 规范
[x] 安全/不安全模式实现
[x] 使用 list_tools 解析正确的描述。
[x] Airflow 配置获取(专门针对页面限制)
[ ] 环境变量可选(环境变量可能不适合 Airflow 插件)
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Maintenance
Related MCP Connectors
MCP server for Product Management
MCP Server for an Agent Task Marketplace
Related MCP Servers
- AlicenseCqualityBmaintenanceMonitor and manage Apache Airflow clusters through natural language queries via MCP tools: DAG inspection, task monitoring, health checks, and cluster analytics without API complexity. * Guide: https://call518.medium.com/mcp-airflow-api-a-model-context-protocol-mcp-server-for-apache-airflow-5dfdfb25354MIT
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server that wraps the Apache Airflow REST API, enabling clients to manage DAGs, monitor task instances, and handle workflows through a standardized interface. It provides comprehensive access to Airflow features including DAG runs, variables, connections, and XComs.MIT
- AlicenseAqualityCmaintenanceAirflow MCP server — read DAGs, runs, task instances, log tails; trigger and clear (write-gated).861 npm2MIT
- AlicenseAqualityCmaintenanceMCP server exposing Apache Airflow REST API operations as tools — list DAGs, inspect runs and task instances, trigger DAG runs, and check failed DAGs and scheduler health72MIT