astronomer-data
Data engineering plugin bundling Airflow MCP tools with skills for warehouse analysis and DAG work.
- CCM score
- 69 of 100
- GitHub stars
- 464
Own this plugin? Claim it
What it does
- Adds the Airflow MCP server plus skills like
airflow,analyzing-data,debugging-dags, andauthoring-dagsfor pipeline work - Covers warehouse discovery and SQL analysis via
warehouse-init,analyzing-data,checking-freshness, andprofiling-tables - Traces lineage upstream and downstream, and annotates tasks with inlets and outlets through its lineage skills
- Designed for teams running Astro or open-source Airflow 2.x and 3.x alongside a data warehouse
Data engineering plugin - warehouse exploration, pipeline authoring, Airflow integration
Add marketplace
/plugin marketplace add astronomer/agentsRun it inside Claude Code once, then install the plugin below.
Install
/plugin install astronomer-data@astronomerRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceAirflow Human-in-the-Loop Operators
Pause a DAG until a human responds via the Airflow UI or REST API. HITL operators are deferrable — they release their worker slot while waiting.
Requires Airflow 3.1+ (
af config version).UI location: Browse → Required Actions. Respond from the task instance page's Required Actions tab.
Cross-references:
migrating-ai-sdk-to-common-aifor AI/LLM task decorators;airflowfor registry and API discovery commands used below.
Step 1 — Pick the capability you need
| Capability | Class (verify in Step 2) |
|---|---|
| Approve or reject; downstream skips on reject | ApprovalOperator |
| Present N options and return which were chosen | HITLOperator |
| Branch to one or more downstream tasks based on a choice | HITLBranchOperator |
| Collect a form (no approve/select step) | HITLEntryOperator |
| Use the HITL trigger directly (advanced / custom operators) | HITLTrigger |
This is the only place class names are hardcoded. The provider adds, renames, and removes params across releases — do not copy parameter lists from memory. Fetch the current signature before writing code.
Step 2 — Discover the current signatures from the Airflow Registry
Before writing HITL code, run these to see the live roster and constructor params (see the airflow skill for the full af registry reference):
# Every HITL-related module in the standard provider
af registry modules standard \
| jq '.modules[] | select(.import_path | test("\\.hitl\\.")) | {name, type, import_path, short_description, docs_url}'
# Constructor signatures: name, type, default, required, description
af registry parameters standard \
| jq '.classes | to_entries[] | select(.key | test("\\.hitl\\.")) | {fqn: .key, parameters: .value.parameters}'
# Pin to the exact installed provider version
af config providers \
| jq '.providers[] | select(.package_name == "apache-airflow-providers-standard") | .version'
# then: af registry parameters standard --version <VERSION>
If the registry shows a param that this skill does not mention, prefer the registry. If the registry shows a class that is not in Step 1, treat it as additive — the decision table above may be stale.
Step 3 — Canonical example (approval gate)
Starting point for any HITL task. Adapt by swapping the class name and params per Step 2.
from airflow.providers.standard.operators.hitl import ApprovalOperator
from airflow.sdk import dag, task, chain, Param
from pendulum import datetime
@dag(start_date=datetime(2025, 1, 1), schedule="@daily")
def approval_example():
@task
def prepare():
return "Review quarterly report"
approval = ApprovalOperator(
task_id="approve_report",
subject="Report Approval",
body="{{ ti.xcom_pull(task_ids='prepare') }}",
defaults="Approve", # Auto-selected on timeout
params={"comments": Param("", type="string")},
)
@task
def after_approval(result):
print(f"Decision: {result['chosen_options']}")
chain(prepare(), approval)
after_approval(approval.output)
approval_example()
For the other classes in Step 1, the shape is the same (task_id, subject, plus class-specific params). Verify each constructor through Step 2 — for example, HITLBranchOperator requires every option either to match a downstream task id directly or to be resolved via a mapping param surfaced in the registry.
Step 4 — Behavior contracts (stable across versions)
Timeout
- With
defaultsset: task succeeds on timeout, default option(s) selected. - Without
defaults: task fails on timeout.
Markdown + Jinja in body
body supports Markdown and is Jinja-templatable. Render XCom context directly:
body = """**Total Budget:** {{ ti.xcom_pull(task_ids='get_budget') }}
| Category | Amount |
|----------|--------|
| Marketing | $1M |
"""
Callbacks
All HITL operators accept the standard Airflow callback kwargs (on_success_callback, on_failure_callback, etc.).
Notifiers
HITL operators accept a notifiers list. Inside a notifier's notify(context) method, build a link to the pending task with HITLOperator.generate_link_to_ui_from_context(context, base_url=...).
Restricting who can respond
The parameter name and accepted identifier format depend on the active auth manager. Do not hardcode — check which one is active and which kwarg the current provider exposes:
af config show | jq '.auth_manager // .core.auth_manager'
Then look up the current kwarg in Step 2 (at the time of writing it is assigned_users, accepting identifiers in whatever format the active auth manager uses — Astro uses the Astro user ID, FabAuthManager uses email, SimpleAuthManager uses username).
Step 5 — Responding from external integrations
For Slack bots, custom apps, or scripts. Discover the live endpoint rather than hardcoding a path:
af api ls --filter hitl # live endpoint list
af api spec \
| jq '.paths | to_entries[] | select(.key | test("hitl"))' # request/response schemas
The PATCH-to-respond pattern is stable; the exact path is discovered. Typical shape:
import os, requests
HOST = os.environ["AIRFLOW_HOST"]
TOKEN = os.environ["AIRFLOW_API_TOKEN"]
HEADERS = {"Authorization": f"Bearer {TOKEN}"}
# List pending — use the path from `af api ls --filter hitl`
requests.get(f"{HOST}/<path>", headers=HEADERS, params={"state": "pending"})
# Respond — same discovered path family, PATCH
requests.patch(
f"{HOST}/<path>/{dag_id}/{run_id}/{task_id}",
headers=HEADERS,
json={"chosen_options": ["Approve"], "params_input": {"comments": "ok"}},
)
Step 6 — Safety checks
- Airflow version ≥ 3.1 (
af config version). - Constructor kwargs match the current registry output from Step 2 — no
respondents-vs-assigned_usersstyle drift. - For branching: every option resolves to a downstream task id (directly or via the mapping kwarg from Step 2).
- Every value in
defaultsis also inoptions. -
execution_timeoutset;defaultsconfigured if timeout should succeed rather than fail. - API token configured if external responders are part of the flow.
References
The upstream docs URL is surfaced per-module by the registry — do not hardcode:
af registry modules standard \
| jq '.modules[] | select(.import_path | test("\\.hitl\\.")) | {name, docs_url}'
Related skills
- airflow —
af registry,af api,af configcommand reference. - migrating-ai-sdk-to-common-ai — AI/LLM task decorators and GenAI patterns (common-ai provider).
- authoring-dags — general DAG writing best practices.
- testing-dags — iterative test → debug → fix cycles.
Readme
agents
AI agent tooling for data engineering workflows. Includes an MCP server for Airflow, a CLI tool (af) for interacting with Airflow from your terminal, and skills that extend AI coding agents with specialized capabilities for working with Airflow and data warehouses. Works with Claude Code, Cursor, and other agentic coding tools.
Built by Astronomer. Apache 2.0 licensed and compatible with open-source Apache Airflow.
Table of Contents
- Installation
- Features
- Why Astro?
- Configuration
- Usage
- Development
- Troubleshooting
- Contributing
- Roadmap
- License
Installation
Quick Start
npx skills add astronomer/agents --skill '*'
This installs all Astronomer skills into your project via skills.sh. You'll be prompted to select which agents to install to. To also select skills individually, omit the --skill flag.
[!IMPORTANT] Claude Code users: We recommend using the plugin instead (see Claude Code section below) for better integration with MCP servers and hooks.
Compatibility
Skills: Works with 25+ AI coding agents including Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, Cline, and more.
MCP Server: Works with any MCP-compatible client including Claude Desktop, VS Code, and others.
[!NOTE] Open-source Airflow users: The MCP server works with any Airflow 2.x/3.x REST API. Set
AIRFLOW_API_URLto your self-hosted instance. Skills are tool-agnostic and work with any Airflow deployment.
Claude Code
# Add the marketplace and install the plugin
claude plugin marketplace add astronomer/agents
claude plugin install astronomer-data@astronomer
# Upgrading from the old plugin name? Uninstall first:
# claude plugin uninstall data@astronomer && claude plugin marketplace update && claude plugin install astronomer-data@astronomer
The plugin includes the Airflow MCP server that runs via uvx from PyPI. Data warehouse queries are handled by the analyzing-data skill using a background Jupyter kernel.
Cursor
Cursor supports both MCP servers and skills.
MCP Server - Click to install:
Skills - Install to your project:
npx skills add astronomer/agents --skill '*' -a cursor
This installs skills to .cursor/skills/ in your project.
Manual MCP configuration
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"airflow": {
"command": "uvx",
"args": ["astro-airflow-mcp", "--transport", "stdio"]
}
}
}
Enable hooks (session management)
Create .cursor/hooks.json in your project:
{
"version": 1,
"hooks": {
"stop": [
{
"command": "uv run $CURSOR_PROJECT_DIR/.cursor/skills/analyzing-data/scripts/cli.py stop",
"timeout": 10
}
]
}
}
What these hooks do:
stop: Cleans up kernel when session ends
Other MCP Clients
For any MCP-compatible client (Claude Desktop, VS Code, etc.):
# Airflow MCP
uvx astro-airflow-mcp --transport stdio
# With remote Airflow
AIRFLOW_API_URL=https://your-airflow.example.com \
AIRFLOW_USERNAME=admin \
AIRFLOW_PASSWORD=admin \
uvx astro-airflow-mcp --transport stdio
Features
The astronomer-data plugin bundles an MCP server and skills into a single installable package.
MCP Server
| Server | Description |
|---|---|
| Airflow | Full Airflow REST API integration via astro-airflow-mcp: DAG management, triggering, task logs, system health |
Skills
Data Discovery & Analysis
| Skill | Description |
|---|---|
| warehouse-init | Initialize schema discovery - generates .astro/warehouse.md for instant lookups |
| analyzing-data | SQL-based analysis to answer business questions (uses background Jupyter kernel) |
| checking-freshness | Check how current your data is |
| profiling-tables | Comprehensive table profiling and quality assessment |
Data Lineage
| Skill | Description |
|---|---|
| tracing-downstream-lineage | Analyze what breaks if you change something |
| tracing-upstream-lineage | Trace where data comes from |
| annotating-task-lineage | Add manual lineage to tasks using inlets/outlets |
| creating-openlineage-extractors | Build custom OpenLineage extractors for operators |
DAG Development
| Skill | Description |
|---|---|
| airflow | Main entrypoint - routes to specialized Airflow skills |
| setting-up-astro-project (Astro) | Initialize and configure new Astro/Airflow projects |
| managing-astro-local-env (Astro) | Manage local Airflow environment (start, stop, logs, troubleshoot) |
| authoring-dags | Create and validate Airflow DAGs with best practices |
| blueprint | Compose DAGs from YAML using reusable templates with Pydantic validation (airflow-blueprint) |
| testing-dags | Test and debug Airflow DAGs locally |
| debugging-dags | Deep failure diagnosis and root cause analysis |
| deploying-airflow | Deploy Airflow DAGs and projects (Astro, Docker Compose, Kubernetes) |
| airflow-hitl | Human-in-the-loop workflows: approval gates, form input, branching (Airflow 3.1+) |
dbt Integration
| Skill | Description |
|---|---|
| cosmos-dbt-core | Run dbt Core projects as Airflow DAGs using Astronomer Cosmos |
| cosmos-dbt-fusion | Run dbt Fusion projects with Cosmos (Snowflake/Databricks only) |
Migration
| Skill | Description |
|---|---|
| migrating-airflow-2-to-3 | Migrate DAGs from Airflow 2.x to 3.x |
Why Astro?
Astro is Astronomer's managed Airflow platform. It's optional, but a good fit if you want managed deployments, built-in alerting, and centralized observability across environments. If you run open-source Airflow, everything in this repo still applies—you'll just configure your own Airflow URL and infrastructure.
User Journeys
Data Analysis Flow
flowchart LR
init["/astronomer-data:warehouse-init"] --> analyzing["/astronomer-data:analyzing-data"]
analyzing --> profiling["/astronomer-data:profiling-tables"]
analyzing --> freshness["/astronomer-data:checking-freshness"]
- Initialize (
/astronomer-data:warehouse-init) - One-time setup to generatewarehouse.mdwith schema metadata - Analyze (
/astronomer-data:analyzing-data) - Answer business questions with SQL - Profile (
/astronomer-data:profiling-tables) - Deep dive into specific tables for statistics and quality - Check freshness (
/astronomer-data:checking-freshness) - Verify data is up to date before using
DAG Development Flow
For open-source Airflow, use Docker Compose for local dev and the Helm chart for production (see deploying-airflow) instead of Astro setup skills.
flowchart LR
setup["/astronomer-data:setting-up-astro-project"] --> authoring["/astronomer-data:authoring-dags"]
setup --> env["/astronomer-data:managing-astro-local-env"]
authoring --> testing["/astronomer-data:testing-dags"]
testing --> debugging["/astronomer-data:debugging-dags"]
- Setup (
/astronomer-data:setting-up-astro-project) - Initialize project structure and dependencies - Environment (
/astronomer-data:managing-astro-local-env) - Start/stop local Airflow for development - Author (
/astronomer-data:authoring-dags) - Write DAG code following best practices - Test (
/astronomer-data:testing-dags) - Run DAGs and fix issues iteratively - Debug (
/astronomer-data:debugging-dags) - Deep investigation for complex failures
Airflow CLI (af)
The af command-line tool lets you interact with Airflow directly from your terminal. Install it with:
uvx --from astro-airflow-mcp af --help
For frequent use, add an alias to your shell config (~/.bashrc or ~/.zshrc):
alias af='uvx --from astro-airflow-mcp af'
Then use it for quick operations like af health, af dags list, or af runs trigger <dag_id>.
See the full CLI documentation for all commands and instance management.
Telemetry: The
afCLI collects anonymous usage telemetry to help improve the tool. Only the command name is collected (e.g.,dags list), never the arguments or their values. Opt out withaf telemetry disable.
Configuration
Warehouse Connections
Configure data warehouse connections at ~/.astro/agents/warehouse.yml:
my_warehouse:
type: snowflake
account: ${SNOWFLAKE_ACCOUNT}
user: ${SNOWFLAKE_USER}
auth_type: private_key
private_key_path: ~/.ssh/snowflake_key.p8
private_key_passphrase: ${SNOWFLAKE_PRIVATE_KEY_PASSPHRASE}
warehouse: COMPUTE_WH
role: ANALYST
query_tag: claude-code
databases:
- ANALYTICS
- RAW
[!IMPORTANT] How the
databaseslist works:
- Optional for most connectors (
snowflake,postgres,bigquery) but required forsqlalchemy- For schema discovery (
/astronomer-data:warehouse-init): Determines which databases are scanned and included in the generated.astro/warehouse.md. Only databases listed here will be discovered. If omitted, no schema discovery will occur.- For query execution (
/astronomer-data:analyzing-data): The first database in the list becomes the default database context for the connection, but does NOT restrict which databases you can query. You can still access any database you have permissions for using fully-qualified table names (e.g.,OTHER_DB.SCHEMA.TABLE).Example: If you configure
databases: [ANALYTICS, RAW]:
ANALYTICSbecomes the default database for queries- You can still query
PRODwithSELECT * FROM PROD.PUBLIC.USERS- Only
ANALYTICSandRAWwill appear in warehouse schema documentation (run/astronomer-data:warehouse-init --refreshafter addingPRODto include it)
[!NOTE] The
accountfield requires your Snowflake account identifier (e.g.,orgname-accountnameorxy12345.us-east-1), not your account name. Find this in your Snowflake console under Admin > Accounts.
Store credentials in ~/.astro/agents/.env:
SNOWFLAKE_ACCOUNT=myorg-myaccount # Use your Snowflake account identifier (format: orgname-accountname or accountname.region)
SNOWFLAKE_USER=myuser
SNOWFLAKE_PRIVATE_KEY_PASSPHRASE=your-passphrase-here # Only required if using an encrypted private key
Supported databases:
| Type | Package | Description |
|---|---|---|
snowflake | Built-in | Snowflake Data Cloud |
postgres | Built-in | PostgreSQL |
bigquery | Built-in | Google BigQuery |
sqlalchemy | Any SQLAlchemy driver | Auto-detects packages for 25+ databases (see below) |
Auto-detected SQLAlchemy databases
The connector automatically installs the correct driver packages for:
| Database | Dialect URL |
|---|---|
| PostgreSQL | postgresql:// or postgres:// |
| MySQL | mysql:// or mysql+pymysql:// |
| MariaDB | mariadb:// |
| SQLite | sqlite:/// |
| SQL Server | mssql+pyodbc:// |
| Oracle | oracle:// |
| Redshift | redshift:// |
| Snowflake | snowflake:// |
| BigQuery | bigquery:// |
| DuckDB | duckdb:/// |
| Trino | trino:// |
| ClickHouse | clickhouse:// |
| CockroachDB | cockroachdb:// |
| Databricks | databricks:// |
| Amazon Athena | awsathena:// |
| Cloud Spanner | spanner:// |
| Teradata | teradata:// |
| Vertica | vertica:// |
| SAP HANA | hana:// |
| IBM Db2 | db2:// |
For unlisted databases, install the driver manually and use standard SQLAlchemy URLs.
Example configurations
# PostgreSQL
my_postgres:
type: postgres
host: localhost
port: 5432
user: analyst
password: ${POSTGRES_PASSWORD}
database: analytics
application_name: claude-code
# BigQuery
my_bigquery:
type: bigquery
project: my-gcp-project
credentials_path: ~/.config/gcloud/service_account.json
location: US
labels:
team: data-eng
env: prod
# SQLAlchemy (any supported database)
my_duckdb:
type: sqlalchemy
url: duckdb:///path/to/analytics.duckdb
databases: [main]
# SQLAlchemy with connect_args (passed to the DBAPI driver)
my_pg_sqlalchemy:
type: sqlalchemy
url: postgresql://${PG_USER}:${PG_PASSWORD}@localhost/analytics
databases: [analytics]
connect_args:
application_name: claude-code
# Redshift (via SQLAlchemy)
my_redshift:
type: sqlalchemy
url: redshift+redshift_connector://${REDSHIFT_USER}:${REDSHIFT_PASSWORD}@${REDSHIFT_HOST}:5439/${REDSHIFT_DATABASE}
databases: [my_database]
Airflow
The Airflow MCP auto-discovers your project when you run Claude Code from an Airflow project directory (contains airflow.cfg or dags/ folder).
For remote instances, set environment variables:
| Variable | Description |
|---|---|
AIRFLOW_API_URL | Airflow webserver URL |
AIRFLOW_USERNAME | Username |
AIRFLOW_PASSWORD | Password |
AIRFLOW_AUTH_TOKEN | Bearer token (alternative to username/password) |
Usage
Skills are invoked automatically based on what you ask. You can also invoke them directly with /astronomer-data:<skill-name>.
Getting Started
-
Initialize your warehouse (recommended first step):
/astronomer-data:warehouse-initThis generates
.astro/warehouse.mdwith schema metadata for faster queries. -
Ask questions naturally:
- "What tables contain customer data?"
- "Show me revenue trends by product"
- "Create a DAG that loads data from S3 to Snowflake daily"
- "Why did my etl_pipeline DAG fail yesterday?"
Development
See CLAUDE.md for plugin development guidelines.
Local Development Setup
# Clone the repo
git clone https://github.com/astronomer/agents.git
cd agents
# Test with local plugin
claude --plugin-dir .
# Or install from local marketplace
claude plugin marketplace add .
claude plugin install astronomer-data@astronomer
Adding Skills
Create a new skill in skills/<name>/SKILL.md with YAML frontmatter:
---
name: my-skill
description: When to invoke this skill
---
# Skill instructions here...
After adding skills, reinstall the plugin:
claude plugin uninstall astronomer-data@astronomer && claude plugin marketplace update && claude plugin install astronomer-data@astronomer
Troubleshooting
Common Issues
| Issue | Solution |
|---|---|
| Skills not appearing | Reinstall plugin: claude plugin uninstall astronomer-data@astronomer && claude plugin marketplace update && claude plugin install astronomer-data@astronomer |
Installed as data@astronomer (old name) | Uninstall old name and reinstall: claude plugin uninstall data@astronomer && claude plugin marketplace update && claude plugin install astronomer-data@astronomer |
| Warehouse connection errors | Check credentials in ~/.astro/agents/.env and connection config in warehouse.yml |
| Airflow not detected | Ensure you're running from a directory with airflow.cfg or a dags/ folder |
Contributing
Contributions welcome! Please read our Code of Conduct and Contributing Guide before getting started.
Roadmap
Skills we're likely to build:
DAG Operations
- CI/CD pipelines for DAG deployment
- Performance optimization and tuning
- Monitoring and alerting setup
- Data quality and validation workflows
Astronomer Open Source
- DAG Factory - Generate DAGs from YAML
- Other open source projects we maintain
Conference Learnings
- Reviewing talks from Airflow Summit, Coalesce, Data Council, and other conferences to extract reusable skills and patterns
Broader Data Practitioner Skills
- Churn prediction, data modeling, ML training, and other workflows that span DE/DS/analytics roles
Don't see a skill you want? Open an issue or submit a PR!
License
Apache 2.0
Made with :heart: by Astronomer

Details
- Marketplace
- astronomer/agents
- Author
- Astronomer
- Category
- Community
- Keywords
- data-engineering, airflow, snowflake, bigquery, jupyter, astronomer
- Listed since
- Apr 7, 2026
Questions
What does the astronomer-data plugin add to Claude Code?
The astronomer-data plugin bundles an Airflow MCP server with Astronomer data engineering skills. Its skills cover warehouse schema discovery, SQL analysis through a background Jupyter kernel, data freshness checks, table profiling and downstream lineage tracing.
How do I install the astronomer-data plugin in Claude Code?
Run /plugin marketplace add astronomer/agents first, then run /plugin install astronomer-data@astronomer inside Claude Code. The install adds the Airflow MCP server, which runs through uvx from PyPI.
Where does astronomer-data stand in its category on Claude Marketplaces?
It is listed in the Data Science & Analytics category, alongside ruflo-graph-intelligence and big-data-cloud-automation. It focuses on data engineering work such as warehouse exploration, pipeline authoring and Airflow integration.
Does astronomer-data work with open-source Apache Airflow?
Yes, the plugin is compatible with open-source Apache Airflow. The MCP server works with any Airflow 2.x or 3.x REST API, and you can point AIRFLOW_API_URL at a self-hosted instance.
Similar to astronomer-data
More Data Science & Analyticsdata-engineeringanthropics/claude-plugins-official48.1K starsData engineering plugin - warehouse exploration, pipeline authoring, Airflow integration
dataanthropics/claude-plugins-official48.1K starsData engineering for Apache Airflow and Astronomer. Author DAGs with best practices, debug pipeline failures, trace data lineage, profile tables, migrate Airflo
data-engineerarmanzeroeight/fastagent-plugins29 starsComprehensive data engineering toolkit combining ETL pipelines, data quality, and data architecture. Includes data architect agent for holistic data engineering
data-data-engineering-analyticsmarslanalvi/SkillsStack5 starsData pipelines (Airflow, dbt, Spark), analytics, dashboards and metrics
analytics-pipeline-orchestrationgtmagents/gtm-agents451 starsAnalytics pipeline orchestrator covering instrumentation, modeling, and dashboards
bigquerygoogle/skills24.7K starsData Analytics skills for BigQuery.