beginner⏱️ 18-28 minutes📅 Updated June 2026

Step-by-step guide to integrate Airflow MCP server with Windsurf Editor. Includes list_dags and trigger_dag.

Airflow + Windsurf Editor: Complete MCP Integration

Airflow is a MCP server that A MCP Server that connects to Apache Airflow using official python client..

When integrated with Windsurf Editor, you can:

  • List all available DAGs in Airflow
  • Manually trigger a DAG run
  • Get DAG run history and status

This guide provides step-by-step instructions to set up Airflow in Windsurf Editor, including configuration, examples, and troubleshooting.

What You'll Achieve

After completing this setup:

  • Airflow will be fully integrated and operational
  • You can use Airflow tools directly in Windsurf Editor
  • All Airflow capabilities will be available for your workflows
  • Access to 5 different tools

Prerequisites

Before starting, ensure you have:

  • Airflow webserver host URL
  • Airflow authentication username
  • Airflow authentication password
  • Windsurf Editor installed and configured
  • Compatible operating system (Desktop App)

Installation

Step 1: Install Airflow

Configuration

Step 2: Configure Windsurf Editor

  1. Locate your configuration file:

    • Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
    • macOS: ~/.codeium/windsurf/mcp_config.json
    • Linux: ~/.codeium/windsurf/mcp_config.json
  2. Add server configuration:

{
  "mcpServers": {
    "airflow": {
      "command": "airflow",
      "args": []
    }
  }
}

Note: If Airflow requires environment variables, add them to the server configuration:
"env": {
  "AIRFLOW_HOST": "http://localhost:8080",
        "AIRFLOW_USERNAME": "admin",
        "AIRFLOW_PASSWORD": "admin_password",
        "AIRFLOW_READ_ONLY": "true"
}

  1. Restart Windsurf Editor

Completely quit and restart Windsurf Editor to load the new configuration.

Examples

Once configured, you can use Airflow in Windsurf Editor:

Pipeline Monitoring

undefined

Ask Windsurf Editor: "Check status of all DAGs and recent failures"

Expected Result: undefined

Manual DAG Execution

undefined

Ask Windsurf Editor: "Trigger monthly_report DAG with date parameter"

Expected Result: undefined

Troubleshooting Failed Tasks

undefined

Ask Windsurf Editor: "Show failed tasks in data_pipeline and their error logs"

Expected Result: undefined

Testing Your Setup

  1. Launch Windsurf Editor
  2. Verify Airflow is available in the tools list
  3. Test basic Airflow functionality

Troubleshooting

Common Issues

Tools Not Appearing

Symptoms: Cascade does not see new tools, Hammer icon missing

Cause: Configuration syntax error or server failed to start.

Solution:

  • Check the JSON configuration for syntax errors.
  • Verify the command (e.g., npx, python) is in your system PATH.
  • Check Windsurf logs for MCP connection errors.

Environment Variables

Symptoms: Authentication failed, Permission denied

Cause: Missing API keys in configuration.

Solution:

  • Ensure env block is correctly defined inside the server config.
  • Restart Windsurf after changing environment variables.

Airflow not appearing in Windsurf Editor

Symptoms: Server not listed, Tools not available

Cause: Configuration or installation issue

Solution:

  • Verify configuration syntax
  • Check Airflow installation
  • Restart Windsurf Editor
  • Check logs for error messages

Next Steps

Now that Airflow is integrated with Windsurf Editor:

  • Explore all Airflow capabilities through Windsurf Editor
  • Check out other MCP servers that work with Windsurf Editor
  • Join the MCP community for tips and support
  • Consider contributing to Airflow development

Need Help?

Related Resources

More Integrations

Explore other MCP servers that work with Windsurf Editor

Need Help?

Join the MCP community for support and discussions

Airflow + Windsurf Editor: MCP Setup Guide (2026)