Airflow MCP Monitor
Provides read-only monitoring of Apache Airflow DAGs, including listing active DAGs, fetching recent runs, and analyzing execution history.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Airflow MCP Monitorlist active DAGs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Airflow MCP Monitor
A FastMCP-based Model Context Protocol server for monitoring Apache Airflow DAGs. Provides read-only real-time access to DAG status, execution history, and performance metrics. Agents using this server cannot modify, trigger, or pause any DAGs.
Security Note: This server is intentionally read-only for safe integration with untrusted clients and AI agents.
Features
List Active DAGs: Query all active DAGs with metadata (description, owner, schedule)
Recent Runs: Fetch recent execution runs for specific DAGs with timing and status
Execution History: Analyze DAG performance over configurable time periods with success rates and average durations
Stdio Transport: Lightweight stdio-based MCP interface for seamless integration with Claude and other MCP clients
READ-ONLY Access: Safe monitoring interface with no write operations—agents can only read DAG status and metrics
Related MCP server: MCP-Airflow-API
⚠️ Read-Only Server
This is a READ-ONLY MCP server. Agents and clients using this server have no write access to Airflow. All tools provide monitoring and analysis capabilities only:
✓ Query DAG status and metadata
✓ View execution history and performance metrics
✓ Monitor recent runs and logs
✗ No ability to pause/resume DAGs
✗ No ability to trigger DAG runs
✗ No ability to modify DAG configurations
✗ No ability to clear task states
Safe for integration with untrusted agents and AI models without risk of accidental modifications.
Requirements
Python 3.11+
Apache Airflow instance with API access
Docker & Docker Compose (for containerized deployment)
Installation
Local Setup
# Clone and navigate to project directory
cd "Python Scripts"
# Create virtual environment
python -m venv .venv
# Activate virtual environment
# On Windows:
.venv\Scripts\activate
# On macOS/Linux:
source .venv/bin/activate
# Install dependencies
pip install -r requirements.txtEnvironment Configuration
Create a .env file in the project root:
AIRFLOW_URL=
AIRFLOW_USERNAME=
AIRFLOW_PASSWORD=Usage
Local Execution
python airflow_mcp.pyThe MCP server will start and communicate via stdin/stdout using the Model Context Protocol.
Docker Deployment
docker-compose up -dThe containerized MCP server will initialize and be ready to accept stdio connections:
docker-compose logs -fAPI Tools
All tools are READ-ONLY monitoring operations:
list_active_dags()
Returns all active DAGs with metadata.
Returns:
dag_id: Unique DAG identifierdescription: DAG descriptionowner: DAG ownerschedule_interval: Schedule intervalis_paused: Pause statusnext_dagrun: Next scheduled run time
get_recent_runs(dag_id, limit=10)
Fetch recent execution runs for a DAG.
Parameters:
dag_id(str): Target DAG IDlimit(int): Number of runs to fetch (default: 10)
Returns:
execution_date: Run execution timestampstate: Run state (success/failed/running)start_date: Run start timeend_date: Run end timeduration: Total execution duration
get_execution_history(dag_id, days=7)
Get DAG performance metrics over a time period.
Parameters:
dag_id(str): Target DAG IDdays(int): Lookback period in days (default: 7)
Returns:
success_count: Successful runsfailed_count: Failed runssuccess_rate: Success percentageavg_duration_seconds: Average run duration
Configuration
Variable | Description | Example |
| Airflow instance base URL |
|
| API authentication username |
|
| API authentication password |
|
Project Structure
Python Scripts/
├── airflow_mcp.py # Main MCP server application
├── requirements.txt # Python dependencies
├── .env.example # Environment template
├── Dockerfile # Container image definition
├── docker-compose.yml # Multi-container orchestration
├── .dockerignore # Docker build exclusions
└── README.md # This fileDocker Deployment
The application includes Docker support with Python 3.11. See docker-compose.yml for configuration options.
Troubleshooting
Connection Error: Verify AIRFLOW_URL and credentials in .env
API 403 Errors: Ensure Airflow user has API permissions
Timeout Issues: Increase timeout in get_client() or check network connectivity
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/RakhaHafishSetiawan/airflow-monitor-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server