Apache Airflow 的 MCP 服务器实现
一个为 Apache Airflow 实现的 Model Context Protocol (MCP) 服务器,支持与 MCP 客户端无缝集成。
快速入门
- 安装依赖
- 确保已安装
apache-airflow-client
。
- 确保已安装
- 配置环境变量
- 设置以下环境变量:
AIRFLOW_HOST=
AIRFLOW_USERNAME= AIRFLOW_PASSWORD=
- 设置以下环境变量:
AIRFLOW_HOST=
- 运行服务器
- 使用以下命令启动服务: make run
- 或者指定端口和传输类型: make run --port=8000 --transport=sse
- 通过 Smithery 安装
- 运行以下命令以自动安装: npx -y @smithery/cli install @yangkyeongmo/mcp-server-apache-airflow --client claude
- 选择 API 组
- 启动时可通过
--apis
参数选择启用的 API 组,例如:--apis "dag,dagrun"
。
- 启动时可通过
- Claude Desktop 配置
- 在
claude_desktop_config.json
文件中添加配置: { "mcpServers": { "mcp-server-apache-airflow": { "command": "uvx", "args": ["mcp-server-apache-airflow"], "env": { "AIRFLOW_HOST": "https://your-airflow-host", "AIRFLOW_USERNAME": "your-username", "AIRFLOW_PASSWORD": "your-password" } } } }
- 在