Airflow Unfactor
БесплатноНе проверенAn MCP server that converts Apache Airflow DAGs into Prefect flows. It provides tools to read DAGs, lookup translation knowledge, validate code, search Prefect
Описание
An MCP server that converts Apache Airflow DAGs into Prefect flows. It provides tools to read DAGs, lookup translation knowledge, validate code, search Prefect docs, scaffold projects, deploy, and generate migration reports.
README
An MCP server that converts Apache Airflow DAGs into Prefect flows. Point it at a DAG, and the LLM generates idiomatic Prefect code. Not a template with TODOs — working code. Built with FastMCP.
Install
Install in Cursor Install in VS Code
Claude Code — one line:
claude mcp add airflow-unfactor -- uvx airflow-unfactor
Claude Desktop and other clients — see manual config below.
Then ask your LLM: "Convert the DAG in dags/my_etl.py to a Prefect flow."
How It Works
The server exposes seven tools over MCP. The LLM reads raw DAG source code, looks up translation knowledge, and generates the Prefect flow.
| Tool | What It Does |
|---|---|
read_dag |
Returns raw DAG source code with metadata (path, size, line count) |
lookup_concept |
Airflow→Prefect translation knowledge — operators, patterns, connections |
validate |
Syntax-checks generated code and returns both sources for comparison |
search_prefect_docs |
Searches live Prefect docs for anything not in the pre-compiled knowledge |
scaffold |
Creates a Prefect project directory structure (not code) |
generate_deployment |
Writes prefect.yaml deployment configuration from DAG metadata |
generate_migration_report |
Writes MIGRATION.md with conversion decisions and a before-production checklist |
No AST parsing. No template engine. The LLM reads the code directly, just like a developer would.
Manual config
The buttons above and the claude mcp add command both register the server with uvx, which downloads it on first run — no separate pip install needed. To install the package directly anyway: pip install airflow-unfactor or uv pip install airflow-unfactor.
Claude Desktop — ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"airflow-unfactor": {
"command": "uvx",
"args": ["airflow-unfactor"]
}
}
}
Claude Code — .mcp.json in your project
{
"mcpServers": {
"airflow-unfactor": {
"command": "uvx",
"args": ["airflow-unfactor"]
}
}
}
Cursor — MCP settings
{
"mcpServers": {
"airflow-unfactor": {
"command": "uvx",
"args": ["airflow-unfactor"]
}
}
}
Example
Airflow DAG:
from airflow import DAG
from airflow.operators.python import PythonOperator
def extract():
return {"users": [1, 2, 3]}
def transform(ti):
data = ti.xcom_pull(task_ids="extract")
return [u * 2 for u in data["users"]]
with DAG("my_etl", ...) as dag:
t1 = PythonOperator(task_id="extract", python_callable=extract)
t2 = PythonOperator(task_id="transform", python_callable=transform)
t1 >> t2
Generated Prefect flow:
from prefect import flow, task
@task
def extract():
return {"users": [1, 2, 3]}
@task
def transform(data):
return [u * 2 for u in data["users"]]
@flow(name="my_etl")
def my_etl():
data = extract()
result = transform(data)
return result
The >> dependency chain becomes explicit data passing through return values. XCom is gone. It's just Python.
Translation Knowledge
The server ships with 78 pre-compiled Airflow→Prefect translation entries covering operators, patterns, connections, and core concepts. These are compiled by Colin from live Airflow source and Prefect documentation.
When the pre-compiled knowledge doesn't cover something, search_prefect_docs queries the Prefect documentation MCP server at docs.prefect.io in real time.
Documentation
Full docs: gabcoyne.github.io/airflow-unfactor
Development
git clone https://github.com/gabcoyne/airflow-unfactor.git
cd airflow-unfactor
uv sync
# Run tests
uv run pytest
# Lint
uv run ruff check --fix
# Compile translation knowledge
cd colin && colin run
License
MIT — see LICENSE.
Установить Airflow Unfactor в Claude Desktop, Claude Code, Cursor
unyly install airflow-unfactorСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add airflow-unfactor -- uvx airflow-unfactorFAQ
Airflow Unfactor MCP бесплатный?
Да, Airflow Unfactor MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Airflow Unfactor?
Нет, Airflow Unfactor работает без API-ключей и переменных окружения.
Airflow Unfactor — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Airflow Unfactor в Claude Desktop, Claude Code или Cursor?
Открой Airflow Unfactor на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Airflow Unfactor with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
