MCP server for LLM-assisted conversion of Apache Airflow DAGs to Prefect flows
This MCP server has 7 tools for Airflow-to-Prefect migration. While the tools address a legitimate domain need and most have descriptions, there are significant quality gaps: (1) Inconsistent schema visibility, only 2 of 7 tools have input schemas visible in the provided source code; (2) Descriptions vary widely in quality, from detailed (read_dag, lookup_concept) to generic (validate); (3) Several tools lack critical parameter metadata; (4) No documented output schemas across any tool; (5) Error handling guidance is absent; (6) Tool compositions assume implicit multi-step workflows without clear chaining documentation. The server appears well-intentioned but falls short of production quality standards. Most tools cluster in the 35-50 range due to schema visibility and missing output documentation.
Write prefect.yaml deployment configuration from DAG metadata. Call after generating flow.py. Produces a complete prefect.yaml with YAML anchors, schedule config, parameter defaults, and TODO stubs for work pool and pull step configuration.
Write MIGRATION.md — human-readable record of a DAG conversion. Call as the final step after generate_deployment. Documents every conversion decision, produces a before-production checklist with Prefect doc links, and suggests adding the Prefect MCP server.
Look up Airflow→Prefect translation knowledge for a concept. Searches Colin-compiled knowledge for operators, patterns, connections, and core concepts. Falls back to built-in mappings if Colin output is not available.
Read an Airflow DAG file and return raw source with metadata. Accepts a file path or inline content. Returns the source code, file path, size, and line count. The LLM reads the code directly.
Generate a Prefect project directory structure. Creates the project skeleton following prefecthq/flows conventions. Does NOT generate flow code - that's for the LLM to do.
Output schemas undocumented across all 7 tools. LLMs cannot plan downstream operations or extract fields without knowing what structure to expect. read_dag claims to return 'JSON with source, file_path, file_size_bytes, line_count' in docstring but no formal schema is declared.
Input schema visibility incomplete. Source code snippet shows only 2 tools (scaffold, generate_deployment) with visible input parameters in server.py. For lookup_concept, search_prefect_docs, and validate, the @mcp.tool decorator is cut off; schemas cannot be verified. Scoring these tools required assuming schemas exist based on docstrings.
Error handling and recovery guidance absent. No tool describes what to do on failure. E.g., search_prefect_docs says 'Returns search results or an error with suggestion to run 'colin run'' but does not document the error structure or recovery steps in the tool itself.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 55 | 2026-07-28+ | v2 |
| 2026-03-09 | C | 61 | - | v1 |
Search current Prefect documentation via the Prefect MCP server. For real-time queries beyond what Colin pre-compiled. Returns search results or an error with suggestion to run 'colin run'.
Validate a converted Prefect flow against the original Airflow DAG. Returns both source files for comparison plus a syntax check on the generated code. You perform the structural comparison.
validate tool description is generic. 'Validate a converted Prefect flow against the original Airflow DAG. Returns both source files for comparison plus a syntax check on the generated code.' does not explain WHEN to call it, WHAT constitutes a valid conversion, or WHAT the agent should do if validation fails.
Tool composition and chaining IDs not clearly documented. The server instructions mention 7 sequential steps (read_dag → lookup_concept → search_prefect_docs → [generate] → validate → scaffold → generate_deployment → generate_migration_report) but tools do not explicitly declare what IDs/references they require from prior steps. For example, validate accepts 'original_dag' and 'converted_flow' as 'path or inline content' but does not indicate whether a prior tool should return a path vs. content.
lookup_concept parameter 'concept' lacks enum or constraint documentation. The description says 'The Airflow concept to look up (e.g. "PythonOperator", "XCom", "TaskGroup", "postgres_default")' but does NOT state whether these are the only valid values or representative examples. LLMs will hallucinate invalid concept names.
scaffold parameter descriptions could be more precise. 'schedule_interval' says 'Cron string, preset (@daily etc.), seconds, or None.' Does not specify the exact format (e.g., is seconds an integer? can you pass '60s' or only a number?). Missing type info invites invalid inputs.
generate_deployment and generate_migration_report both write files to disk (WRITE risk) but lack dry-run or confirmation patterns. No guidance on what to do if the directory already exists or a file is unwritable. Agents cannot safely explore the impact before committing.