Documentation
An MCP server that converts Airflow DAGs to Prefect flows.
Getting Started
Install the MCP server and convert your first DAG.
MCP Tools
Five tools: read, lookup, search, validate, scaffold.
Operator Mappings
Airflow→Prefect operator equivalents and patterns.
Philosophy
Deterministic code templating is brittle. Airflow and Prefect are architecturally dissimilar—edge cases are inevitable.
Instead, we give the LLM raw source code and translation knowledge compiled from live sources. It generates the Prefect code. Not a scaffold with TODOs — working code.
Workflow
1
Read DAG
read_dagRaw source code
2
Lookup
lookup_conceptTranslation rules
3
Search Docs
search_prefect_docsLive Prefect docs
optional4
LLM Generates
Complete Prefect flow
5
Validate
validateSyntax + comparison
1
Read DAG
Raw source code
read_dag2
Lookup
Translation rules
lookup_concept3
Search Docsoptional
Live Prefect docs
search_prefect_docs4
LLM Generates
Complete Prefect flow
5
Validate
Syntax + comparison
validateWe read. The LLM generates. We validate.
What the tools provide
| Tool | Returns |
|---|---|
read_dag | Raw source code, file path, size, line count |
lookup_concept | Pre-compiled Airflow→Prefect mappings (operators, patterns, connections) |
search_prefect_docs | Live Prefect documentation search results |
validate | Syntax check, both sources, comparison guidance |
scaffold | Project directory structure following prefecthq/flows conventions |