Provides comprehensive tools for managing Amazon MWAA environments and Apache Airflow operations, including DAG management, workflow execution monitoring, task instance tracking, and accessing Airflow connections and variables.
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., "@MWAA MCP Serverlist all DAGs in the production environment"
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.
MWAA MCP Server
Model Context Protocol (MCP) server for Amazon Managed Workflows for Apache Airflow (MWAA).
This MCP server provides comprehensive tools for managing MWAA environments and interacting with Apache Airflow through a unified interface. It enables AI assistants to help with workflow orchestration, DAG management, and operational tasks.
Features
MWAA Environment Management
List and describe environments - View all MWAA environments and their configurations
Create and update environments - Deploy new environments or modify existing ones
Delete environments - Clean up unused environments
Generate access tokens - Create CLI and web UI access tokens
Airflow Operations
DAG Management - List, view, and trigger DAGs
DAG Runs - Monitor and manage workflow executions
Task Instances - Track individual task status and logs
Connections & Variables - View Airflow connections and variables
Import Errors - Diagnose DAG parsing issues
Expert Guidance
Best Practices - Get MWAA and Airflow best practices
DAG Design - Expert guidance on workflow design patterns
Prerequisites
AWS Credentials: Configure AWS credentials with appropriate permissions for MWAA
Python: Python 3.10 or higher
uv: Install uv for package management (recommended)
Installation
Configuration
Environment Variables
AWS_PROFILE- AWS credential profile to use (default: uses AWS credential chain)AWS_REGION- AWS region for MWAA operations (default: us-east-1)MWAA_MCP_READONLY- Set to "true" for read-only modeFASTMCP_LOG_LEVEL- Logging level: ERROR, WARNING, INFO, DEBUG (default: ERROR)
MCP Client Configuration
Add to your MCP client configuration file:
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
%APPDATA%\Claude\claude_desktop_config.json (Windows)
or docker after a successful docker build -t mwaa-mcp-server .:
Other MCP Clients
Refer to your MCP client's documentation for configuration details.
Usage Examples
Environment Management
DAG Operations
Monitoring and Troubleshooting
Best Practices
Required AWS Permissions
The IAM user or role needs the following permissions:
MWAA Permissions
Additional Permissions for Write Operations
Development
Setup Development Environment
Running Tests
Building Docker Image
Troubleshooting
Common Issues
Authentication Errors
Verify AWS credentials are configured correctly
Check IAM permissions for MWAA operations
Ensure the correct AWS region is specified
Connection Timeouts
Check VPC and security group configurations
Verify MWAA environment is in AVAILABLE state
Ensure your network can reach MWAA endpoints
Import Errors in DAGs
Use the
get_import_errorstool to diagnoseCheck CloudWatch logs for detailed error messages
Verify all dependencies are in requirements.txt
Contributing
We welcome contributions! Please see our Contributing Guide for details.
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.