{"type":"mcp_server","name":"mcp-server-apache-airflow","description":"This repository provides a Model Context Protocol (MCP) server implementation for Apache Airflow, enabling standardized interaction with Airflow through the MCP. It wraps Airflow's REST API, allowing MCP clients to","category":"System Tools","language":"Python","stars":168,"forks":3,"owner":"yangkyeongmo","github_url":"https://github.com/yangkyeongmo/mcp-server-apache-airflow","homepage":"https://pypi.org/project/mcp-server-apache-airflow/","setup":"## Setup\n\n### Dependencies\n\nThis project depends on the official Apache Airflow client library (`apache-airflow-client`). It will be automatically installed when you install this package.\n\n### Environment Variables\n\nSet the following environment variables:\n```\nAIRFLOW_HOST=<your-airflow-host>\nAIRFLOW_USERNAME=<your-airflow-username>\nAIRFLOW_PASSWORD=<your-airflow-password>\n```\n\n### Usage with Claude Desktop\n\nAdd to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"mcp-server-apache-airflow\": {\n      \"command\": \"uvx\",\n      \"args\": [\"mcp-server-apache-airflow\"],\n      \"env\": {\n        \"AIRFLOW_HOST\": \"https://your-airflow-host\",\n        \"AIRFLOW_USERNAME\": \"your-username\",\n        \"AIRFLOW_PASSWORD\": \"your-password\"\n      }\n    }\n  }\n}\n```\n\nAlternative configuration using `uv`:\n\n```json\n{\n  \"mcpServers\": {\n    \"mcp-server-apache-airflow\": {\n      \"command\": \"uv\",\n      \"args\": [\n        \"--directory\",\n        \"/path/to/mcp-server-apache-airflow\",\n        \"run\",\n        \"mcp-server-apache-airflow\"\n      ],\n      \"env\": {\n        \"AIRFLOW_HOST\": \"https://your-airflow-host\",\n        \"AIRFLOW_USERNAME\": \"your-username\",\n        \"AIRFLOW_PASSWORD\": \"your-password\"\n      }\n    }\n  }\n}\n```\n\nReplace `/path/to/mcp-server-apache-airflow` with the actual path where you've cloned the repository.\n\n### Selecting the API groups\n\nYou can select the API groups you want to use by setting the `--apis` flag.\n\n```bash\nuv run mcp-server-apache-airflow --apis \"dag,dagrun\"\n```\n\nThe default is to use all APIs.\n\nAllowed values are:\n\n- config\n- connections\n- dag\n- dagrun\n- dagstats\n- dataset\n- eventlog\n- importerror\n- monitoring\n- plugin\n- pool\n- provider\n- taskinstance\n- variable\n- xcom\n\n### Manual Execution\n\nYou can also run the server manually:\n```bash\nmake run\n```\n\n`make run` accepts following options:\n\nOptions:\n- `--port`: Port to listen on for SSE (default: 8000)\n- `--transport`: Transport type (stdio/sse, default: stdio)\n\nOr, you could run the sse server directly, which accepts same parameters:\n```bash\nmake run-sse\n```\n\n### Installing via Smithery\n\nTo install Apache Airflow MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@yangkyeongmo/mcp-server-apache-airflow):\n\n```bash\nnpx -y @smithery/cli install @yangkyeongmo/mcp-server-apache-airflow --client claude\n```","tools":"## Available Tools\n\n1.  DAG Management (Provides functionalities to manage DAGs, including listing, getting details, pausing, unpausing, updating, deleting, getting source, patching, and reparsing).\n2.  DAG Runs (Provides functionalities to manage DAG Runs, including listing, creating, getting details, updating, deleting, getting batch, clearing, setting notes, and getting upstream dataset events).\n3.  Tasks (Provides functionalities to manage DAG Tasks, including listing, getting details, getting task instance, listing task instances, updating task instance, clearing task instances, and setting task instances state).\n4.  Variables (Provides functionalities to manage Airflow Variables, including listing, creating, getting, updating, and deleting).\n5.  Connections (Provides functionalities to manage Airflow Connections, including listing, creating, getting, updating, deleting, and testing).\n6.  Pools (Provides functionalities to manage Airflow Pools, including listing, creating, getting, updating, and deleting).\n7.  XComs (Provides functionalities to manage XComs, including listing and getting XCom entries).\n8.  Datasets (Provides functionalities to manage Datasets, including listing, getting, getting dataset events, creating dataset event, and managing queued events).\n9.  Monitoring (Provides functionalities for monitoring, including getting health).\n10. DAG Stats (Provides functionalities to get DAG statistics).\n11. Config (Provides functionalities to get Airflow configuration).\n12. Plugins (Provides functionalities to get Airflow plugins).\n13. Providers (Provides functionalities to list Airflow providers).\n14. Event Logs (Provides functionalities to manage Event Logs, including listing and getting).\n15. System (Provides functionalities to get import errors, import error details, health status, and version).","faq":null,"created_at":"2025-02-13T04:09:06+00:00","updated_at":"2025-03-27T23:37:36+00:00","source_url":"https://model-context-protocol.com/servers/mcp-server-airflow-model-context-protocol","related_articles":[]}