hydra-etl
Hydra ETL MCP server lets an AI assistant discover, inspect, validate, write, and—when explicitly requested—run Hydra ETL jobs and workflows.
List valid transformation operations, connector types, workflow actions, jobs, and workflows.
Describe operation schemas and read existing job/workflow YAML before modifying it.
Preview CSV, JSON, and Parquet data to learn columns or verify results.
Validate jobs and workflows with the official Hydra validator; explain validation errors in plain language.
Write job manifests and workflow YAML only after validation, without running them.
Check whether a job matches the user’s request using deterministic rules.
Find similar real example jobs before writing unusual pipelines.
Run jobs or workflows to write real data only when the user explicitly asks.
Allows creating Hydra ETL pipelines that read from or write to MariaDB databases.
Allows creating Hydra ETL pipelines that read from or write to MongoDB databases.
Allows creating Hydra ETL pipelines that read from or write to MySQL databases.
Allows creating Hydra ETL pipelines that read from or write to PostgreSQL databases.
Hydra ETL
Your data pipelines are described, not programmed.
Website · Video tutorials · Docs & playground · MCP server · VS Code extension · Changelog
Hydra is an open-source declarative ETL engine. You write what a pipeline is in YAML;
Hydra validates it before touching any data, then runs it. The same manifests run from
the terminal, a REST API, or a visual editor in your browser, with one pip install and nothing else to deploy.
Try it without installing anything
Two sandboxes run Hydra in your browser. Nothing is installed on your machine, and nothing is left behind when you close the tab.
Guided labs — no account needed
Killercoda gives you a Linux terminal inside your browser, next to a short lesson that tells you exactly what to type. Each lab takes ten to fifteen minutes and checks your work as you go. There is nothing to sign up for.
Start with Meet hdrctl to see what a job is, then Parameters and secrets to run one pipeline against two databases.
A full environment, with the visual editor
GitHub Codespaces starts a real machine in the cloud and opens an editor in your browser. It needs a free GitHub account, and it runs within GitHub's free monthly allowance.
This one comes with a MySQL database already running beside it and a working
pipeline. Once it opens, type ./tour — a five-minute walkthrough that
shows you each command before running it. It is the only thing you have to type.
Unlike the labs, this environment includes Hydra Studio, the visual editor, so you can see the same pipeline as a diagram and run it from there.
Related MCP server: Datris MCP Server
Quick start
pip install "hydra-etl[server]"
hdrctl serve --open # Studio + API on http://localhost:5678Or stay in the terminal:
hdrctl init my_project # or `hdrctl init .` in an empty folder
hdrctl run my_project --dry-run # validate the whole project, run nothing
hdrctl run my_project # run every workflow (or `hdrctl run .` from inside)
hdrctl validate my_project/jobs/job1 # strict validation of one job, no data touched
hdrctl run my_project/jobs/job1 # run one job aloneA project is a set of workflows; a workflow is a set of jobs and actions.
A complete example, files only, runs in a few seconds:
examples/end-to-end-retail: a master project runs two sub-projects
in parallel, reads back their results, then ranks the top customers with a job and writes a report.
init scaffolds a full project:
my_project
├── .gitignore keeps .hydra/secrets and .env out of git
├── .hydra/ project marker, Studio data, and secrets (name=value, git-ignored)
├── Data/ input data
├── environments/ parameter values per environment (dev.yaml, prod.yaml…)
├── jobs/
│ └── job1/
│ ├── README.md
│ ├── data/input.csv
│ ├── destinations.yaml
│ ├── pipeline.yaml
│ ├── sources.yaml
│ └── transformations.yaml
├── outputs/ files produced by the jobs
├── parameters.yaml project parameters, used as {{ param:NAME }}
├── README.md
├── scripts/ scripts called by workflow actions
└── workflows/
├── thread.yaml execution order of the workflows
└── workflow1.yamlSix job templates are available with --template (basic, csv, mysql, postgres, api,
mongodb). workflows/thread.yaml lists the workflows in stages, each sequential or parallel,
with an optional delay_after, and per workflow an active flag, an optional delay_before and
an optional timeout:
version: "1.0"
thread:
- mode: sequential
delay_after: 30s # optional pause before the next stage
workflows:
- name: workflow1
timeout: 30m # optional: beyond it, the workflow fails
- name: workflow2
active: false # skipped, without removing it
- mode: parallel
workflows:
- name: export-a
- name: export-b
delay_before: 23s # starts 23 s after the stage (staggered start)
loops: # optional
- from: export-b # when export-b finishes…
to: workflow1 # …go back to workflow1
times: 3 # 3 passes in total
delay: 5m # optional pause before each repeatdelay_before waits before starting a workflow: in a sequential stage, after the previous
workflow; in a parallel stage, after the stage starts. Same format as delay_after (500ms,
30s, 5m, 1h, or seconds). Fallback conditions are checked after the wait. In a parallel
stage, a failed workflow cancels the starts still waiting.
timeout is the longest a workflow may run (same format, more than 0). Beyond it, the workflow
is stopped at the next step or batch — an all-or-nothing load is cancelled, an action already
started finishes (it has its own timeout) — and counts as failed:
✗ Workflow 'load_crm' failed (30.0s): timed out after 30s. It also applies to each backup run
in its place.
A loop can link any two workflows of the thread (to comes before from, or is the same
workflow); loops must not overlap.
A workflow can declare a fallback: one or more backup workflows, kept outside the thread, that take its place when a condition is true just before the start, or after it fails:
- name: load_crm
fallback:
use: [load_crm_backup] # tried in order
when: "not source_available('crm_db')" # checked just before the start
on_failure: true # also after a failurewhen uses a small closed language (never Python eval): source_available('name'),
destination_available('name'), file_exists('path'), file_size('path'), file_age('path'),
url_ok('url'), secret_defined('name'), db.load('name'), previous.status, previous.rows,
with and, or, not, comparisons, durations (30s, 24h) and sizes (5MB).
hdrctl workflow add load_crm_backup --fallback-for load_crm creates a backup workflow and
declares it. hdrctl run . --dry-run checks the fallbacks (files, jobs, names used by when)
and warns when a backup writes somewhere else than the workflow it replaces.
At run time, when is checked just before the workflow starts. Each check is quick, reads
no data and has a time limit (HYDRA_PROBE_TIMEOUT, 15 s by default). If the condition is
true, the first backup runs in its place (same stage, same loop pass) and the reason is
shown: ↪ Fallback: load_crm → load_crm_backup — source_available('crm_db') = false (connection refused). If a check cannot answer (time limit, missing file for file_size…), the planned
workflow runs (on_probe_error: keep, the default) or the backup does (replace). An inactive
workflow is not checked. hdrctl run . --use-fallback load_crm forces the switch, to rehearse a
recovery.
With on_failure: true, a workflow that fails (or exceeds its timeout) is replaced by its
first backup only if it left nothing published: no load published and no outside action
done (webhook, email, bash, python… except those marked undo: none), or everything
undone by rollback: true. The backup then cannot write the same data twice. If the backup
fails too, the next one in use runs. Otherwise the project stops and says why:
⛔ load_crm: fallback load_crm_backup not started — step 'load1' had already published its data.
hdrctl run . --dry-run warns when a workflow with on_failure publishes in several steps
without rollback: true.
In Studio, Settings › Project settings (button Project settings on the project page)
edits the same file (Execution order → Define), draws it (Preview) and checks it
(Check); the project page keeps the workflows and a Run project button.
The life-buoy button of a workflow edits its fallback: backup workflows (one taken from the
thread leaves it), the when condition, checked as you type, with a helper that inserts a
function and a source or destination of the project, and on_probe_error. Preview draws
each backup as a dashed block under its workflow, with the condition on the link; Check
shows the warnings; the run page tells which workflow ran, the backup or not, and why: a
workflow replaced after a failure shows replaced by …, a stopped one timed out, a blocked
switch fallback blocked with the reason. The max field of a workflow line sets its
timeout (⏳ in the Preview).
The wait field of each workflow line sets its delay_before; Preview shows it as a
clock above the block and the run page as a waited … badge on the step.
hdrctl run <project> checks the thread, every active workflow and the job folders they use
before starting anything, then runs the stages in order. A failed workflow stops the project;
in a parallel stage the workflows already started finish first. Without thread.yaml, every
workflows/*.yaml runs one after the other, in alphabetical order. Parameters come from the
project's parameters.yaml, environments/<env>.yaml (--env) and -P KEY=VALUE, in that
order of precedence. Workflow triggers (schedule, webhook) are ignored by hdrctl run;
they apply under hdrctl serve.
No Node, no build step, no database, no message broker. Python 3.9+ on Linux, macOS or Windows.
Why Hydra
Validate before you run.
hdrctl validatechecks sources, steps, types and destinations deterministically, before any data is read or written.Declarative, visual, zero deployment. YAML manifests, a browser editor that outputs the same YAML, and a single Python process. No cluster, no JVM, no container required.
Built for CI/CD. Manifests are versioned and reviewed like code;
hdrctlscaffolds, validates, tests and runs from a terminal or a CI job.Built-in scheduler. DAG workflows with dependencies, parallel branches, delayed retries, cron triggers, conditional guards and eleven actions (webhook, email, Bash, PowerShell, SSH, Python…).
One job, many environments.
{{ param: }},{{ env: }}and${SECRET:}keep the manifest identical across dev, staging and production.Two engines per operation. pandas or DuckDB, chosen step by step, with optional Rust acceleration (see Native acceleration).
AI-ready, whatever the model. An MCP server lets any MCP client (Claude, Cursor, VS Code…) write pipelines, and Hydra refuses to run them until they are valid: the guarantee does not depend on the model.
How it compares
Hydra | Airflow | dbt | Airbyte | NiFi / Apache Hop | |
Pipelines defined in | YAML | Python | SQL + YAML | UI / config | UI flows |
Scope | Extract, transform, load | Orchestration | Transform in the warehouse | Extract & load | Extract, transform, load |
Visual editor | Included | Monitoring UI | Not in dbt Core | Included | Included |
To get started |
| Scheduler, webserver, metadata DB | A data warehouse | Docker / Kubernetes | JVM |
Hydra is not a replacement for all of these. It targets file-and-database pipelines that should stay readable and run without extra infrastructure.
What you get
Component | Description |
Engine | Declarative jobs: one source, N transformations, one destination |
CLI |
|
API | FastAPI, with interactive docs at |
Studio | Visual editor for jobs and workflows; opens an existing project folder |
Workflows | Multi-job DAG with dependencies, actions, retries and runtime parameters |
MCP | Natural-language pipeline authoring, validated by Hydra |
Connectors (sources and destinations):
CSV | JSON | Parquet | MySQL / MariaDB | PostgreSQL | SQL Server | SQLite | MongoDB | Web API |
Also PostgreSQL CDC, a source that reads the inserts, updates and deletes of a table through logical replication and keeps a mirror up to date (examples/postgres-cdc-mirror), and Snowflake, as a read-only source: exact numbers, dates, time zones and JSON on the way out (pip install "hydra-etl[snowflake]").
CSV, JSON and SQLite are built in; the other connectors are one pip install extra away.
Transformation engines: pandas and DuckDB.
Who it is for
Data engineers and analysts who need repeatable file-and-database pipelines without standing up infrastructure for them.
Teams where pipelines must stay readable by people who do not write Python: a YAML manifest reviewed in a pull request, not a script.
Developers embedding ETL in a product, who want a CLI and a REST API over the same engine.
A job in four files
A job is a folder. Four manifests describe it, and each one answers a single question.
sources.yaml: where the data comes from
version: "1.0"
sources:
src_input:
type: csv
extract:
table: ./input.csvtransformations.yaml: how it is reshaped
version: "1.0"
steps:
- cast:
mapping:
amount: float
- filter:
expr: "amount > 0"
- aggregate:
by: [name]
agg:
total: { func: sum, col: amount }A CSV carries no types, so cast comes before any numeric comparison.
destinations.yaml: where it goes
version: "1.0"
destinations:
dest_output:
type: csv
load:
table: ./output.csv
mode: replace # append | replace | upsert
# atomic: true # all-or-nothing (see below)All-or-nothing load. A job writes its destination in one go: nothing is visible before the end, and a failure (or Ctrl+C) leaves the destination as it was. It is on by default where it costs nothing:
Destination |
|
|
|
PostgreSQL, SQL Server | one transaction (TRUNCATE inside it) |
|
|
MySQL / MariaDB | one transaction (DELETE, InnoDB table) |
|
|
CSV | temporary file, then swapped | back to the original size | — |
Parquet | temporary file, then swapped | temporary file, then swapped | — |
SQLite | one transaction | one transaction | one transaction |
atomic: true makes append / upsert into a database one transaction too (longer locks, a
larger database log: fine for medium volumes); atomic: false goes back to batch-by-batch
commits. atomic: true where it cannot work (MongoDB, web API, a MyISAM table) is an error,
never a silent downgrade. In PostgreSQL, readers of a table being replaced wait for the end of
the job instead of seeing it empty. Temporary files left by a crashed run are removed on the
next run.
pipeline.yaml: which source feeds which destination
version: "1.0"
pipeline:
from: src_input
to: dest_outputhdrctl validate my_job && hdrctl run my_jobWorkflows: order several jobs
version: "1.0"
workflow:
name: daily_etl
trigger:
type: schedule
cron: "0 8 * * *"
steps:
- name: extract
type: job
job: ./jobs/extract
depends_on: []
- name: transform
type: job
job: ./jobs/transform
depends_on: ["extract"] # always a list, supports fan-in
- name: notify
type: action
action: webhook
params: { url: "{{ env:WEBHOOK_URL }}" }
depends_on: ["transform"]
on_failure: skiphdrctl workflow add daily_sales # new empty workflow, added at the end of thread.yaml
hdrctl workflow list # workflows in thread order: stage, active/inactive, steps
hdrctl workflow validate daily_sales # by name inside a project, or by file path
hdrctl workflow run daily_sales # one workflow
hdrctl workflow remove daily_sales # deletes the file and its thread entry; jobs are kept
hdrctl run . # every workflow, in the order of thread.yamlRollback. With rollback: true, a workflow that fails undoes the steps it has already
done, the last one first. Jobs are undone automatically: the previous file comes back (it is
kept next to the new one until the end of the run), a replaced table gets its previous content
back (a copy hydra_bak_… taken before the load), the rows added by append / upsert are
removed and the rows changed by upsert get their old values. Actions that act outside Hydra
(webhook, email, bash, powershell, ssh, python) say how to reverse them:
workflow:
name: daily_sales
rollback: true
steps:
- name: load
type: job
job: ../jobs/load_sales # database append: load.key is required
- name: publish
type: action
action: bash
params: { command: "cp outputs/sales.csv /mnt/share/" }
undo:
action: bash
params: { command: "rm -f /mnt/share/sales.csv" }
depends_on: [load]
- name: notify
type: action
action: email
params: { to: team@example.com }
undo: none # nothing to reverse
depends_on: [publish]Everything is checked before the run (hdrctl workflow validate, hdrctl run --dry-run,
Studio's Check). A destination that changed since the run wrote it (another program
wrote there) is not undone: the rollback stops instead of erasing that work. A rollback that
stops (or a crash) leaves .hydra/undo/<workflow>.json; the workflow then refuses to run until
hdrctl workflow undo <workflow> finishes it. In Studio: Rollback on/off in the workflow
toolbar, Undo in the settings of an action, undone steps marked in the run page.
Jobs are added to a workflow as a chain: each step runs after the previous one.
hdrctl job add load_orders # new job jobs/load_orders/, attached nowhere
hdrctl job add load_orders daily_sales # new job, appended to the workflow
hdrctl job attach clean_orders daily_sales -p 1 # existing job, as step 1: the old step 1 now runs after it
hdrctl job detach clean_orders daily_sales # the next step inherits its dependencies; the folder is kept
hdrctl job detach clean_orders # from every workflow
hdrctl job list # each job: free, or the workflows it is injob add uses the same templates as init (--template mysql, postgres…). These commands rewrite
the workflow file (comments in it are not kept) and refuse any change that would leave it invalid.
The workflow commands work on the project that contains the current folder, or on the one given
with --project <path>; outside a project they stop with an error. Studio keeps thread.yaml in
step too: a workflow created or deleted in Studio is added to or removed from it.
Sub-projects. A step of type: project runs another Hydra project — its thread.yaml, or only
the workflows listed — so one master project can drive several others:
- name: crm_sync
type: project
project: ../crm_sync # folder relative to this project (portable with git); ref: name for a Studio project
env: inherit # same environment name, the called project's own files
params: { batch_date: "{{ param:run_date }}" }
variables: { EXPORT_DIR: out/crm }
outputs: [last_batch] # read back with {{ project:crm_sync.param.last_batch }}
timeout: 10m
- name: report
type: action
action: log
when: "{{ project:crm_sync.status }} == 'success'"
params: { message: "{{ project:crm_sync.rows }} rows synced" }
depends_on: [crm_sync]Only the environment name passes implicitly; params and variables are explicit, and secrets are
never lent — each project keeps its own. Cycles (master → crm_sync → master) and more than 5 levels
are refused by hdrctl workflow validate (which prints the tree of called projects), hdrctl run,
Studio (drop a project from the Projects section of the palette) and the MCP tool
hydra_project_calls. A project runs once at a time (overlap: wait | skip | fail);
isolation: subprocess runs it in a separate process. hdrctl run <project> -w <workflow> runs only
some workflows of a project.
Project triggers. triggers.yaml, at the root of a project, starts the whole project (its
thread.yaml, or the workflows listed) when something happens:
version: "1.0"
triggers:
- name: nightly
type: cron # at given times
cron: "0 2 * * *"
timezone: Europe/Paris
env: prod
retry: {max: 2, delay: 5m} # run again after a failure
- name: new_orders
type: file # a file arrives: {{ param:trigger.file }}
path: inbox/*.csv
- name: ready
type: marker # a marker file appears (removed before the run)
path: inbox/READY
- name: orders_changed
type: source_change # a source changes: count, max(column) or checksum
source: {job: jobs/ingest, id: orders, check: count}
every: 1m
- name: on_push
type: webhook # an HTTP call with a token
token: ${SECRET:trigger.on_push.token}
- name: after_crm
type: after_project # another project ends (on: success | failure | any)
project: ../crmAlso interval (every: 15m). Each trigger may set env, workflows, params, timeout, retry
and overlap (skip by default: a project already running is not started twice).
hdrctl trigger validate # keys, cron, workflows, sources, secrets, after_project loops
hdrctl trigger list # each trigger, with its last run
hdrctl trigger fire nightly # run it now
hdrctl trigger token on_push # create the webhook token (a project secret), shown once
hdrctl watch --env prod # run the triggers of this project (or several) until Ctrl+C
hdrctl trigger historyhdrctl watch runs the triggers without Studio (on a server, as a service); hdrctl serve runs the same
engine for every project of the Studio list. In Studio, Project settings › Triggers lists them with their next and last run,
edits them in a form, runs one now and creates webhook tokens. A webhook is called with
POST /api/projects/<id>/triggers/<name>/webhook and the header X-Hydra-Token: <token>. Every run is
recorded in .hydra/triggers/history.jsonl; the project runs in its own process, so a first Ctrl+C on
hdrctl watch waits for the running projects. Remote folders (SFTP, S3) for file triggers are planned.
An edge is a dependency, not a pipe: it decides when a job runs, never what data reaches it. Steps that share no dependency run in parallel.
Parameters, environments and secrets
The same project runs against dev, prod or any environment you define, without editing a job. Three kinds of values, each with its own place:
Written as | Where the values live | Managed with | |
Parameters |
|
|
|
Environment variables |
|
|
|
Secrets |
|
|
|
# jobs/load/sources.yaml
connection:
host: ${ENV:PG_HOST}
database: ${ENV:PG_DATABASE}
password: ${SECRET:pg.password}
extract:
table: orders
batch_size: "{{ param:batch_size }}"hdrctl env create prod
hdrctl env set PG_HOST db.internal # every environment
hdrctl env set PG_DATABASE shop_prod --env prod # prod only
hdrctl param set batch_size 500 --type int # default
hdrctl param set batch_size 5000 --env prod # prod value
hdrctl secret set pg.password --env prod # typed hidden, never an argument
hdrctl run . --env prod # or HYDRA_ENV=prodChoosing the environment. --env <name> (or HYDRA_ENV) on hdrctl run and hdrctl workflow run;
in Studio, the Environment selector on the project page and in the editor header applies to every run
started from Studio. Without an environment, only the common variables and the default parameter values apply.
Order of the variables, weakest first: ~/.hydra/env < ~/.hydra/env.<env> < project .env < job .env
< --env-file <file>. A file wins over a variable already set in the system. -P NAME=VALUE overrides a
parameter for one run.
Secrets are looked up in the environment first, under the name upper-cased with dots and dashes turned
into underscores — ${SECRET:db.password} reads DB_PASSWORD (CI variables, a secret manager, your shell) —
then in .hydra/secrets.<env>, then in .hydra/secrets, then in the provider set in .hydra/secrets.yaml
(SOPS + age, with {env} in the file name for one encrypted file per environment):
# .hydra/secrets — one name=value per line, listed in .gitignore by hdrctl init
db.password=change-me
api.token=abc123Secret values are masked in logs, error messages, action outputs and undo records (visibility: plain | masked | hidden in .hydra/secrets.yaml, or --secrets-visibility). Studio, the API and the MCP server only
ever show secret names. To keep the secrets file outside the project: HYDRA_SECRETS_FILE=<path> or
--secrets-file <path>.
The set_param and assign_param actions create and change parameters mid-run, so two jobs can share a
placeholder and produce different results.
Install what you need
The base install is the engine and the CLI. Everything else is opt-in.
pip install hydra-etl # engine + CLI (CSV, JSON and SQLite built in)
pip install "hydra-etl[server]" # + API + Studio
pip install "hydra-etl[postgres]" # + PostgreSQL driver
pip install "hydra-etl[mssql]" # + Microsoft SQL Server driver
pip install "hydra-etl[snowflake]" # + Snowflake driver (read-only source)
pip install "hydra-etl[all]" # everythingAvailable extras: server, native, duckdb, parquet, mysql, postgres, mssql, snowflake, mongodb, http, mcp, all.
Or run it in a container — optional
Hydra needs no container: it stays one pip install and one Python process.
If your team standardises on containers, or you would rather keep Python off
the host, the image carries the engine, the CLI, the API and the Studio:
docker run --rm -p 5678:5678 -v hydra-workspace:/workspace \
ghcr.io/bejaouibechir/hydra:latestBuilding it yourself, per system: Linux · Windows · macOS.
Serving
hdrctl serve # Studio and API on port 5678
hdrctl serve --open # and open the browser
hdrctl serve --no-studio # API only, for a headless server
hdrctl serve --port 8080The server writes projects into the directory you launch it from. Interactive API docs are at /docs.
Your AI assistant, connected (MCP)
Hydra ships an MCP server. Point Claude Desktop, Cursor, VS Code or any MCP client at it, and ask for a pipeline in plain language.
pip install "hydra-etl[mcp]"
hydra-mcpYour assistant writes the manifests; Hydra validates them before anything is written, and nothing runs until you ask. Requires Python 3.10+. See docs/MCP.md for client configuration.
Graded by Glama, which builds the server in a sandbox, runs security checks and scores the tool definitions:
Native acceleration (optional)
Parts of the engine have a Rust implementation. It is optional and off by default: without it, Hydra behaves exactly the same.
pip install "hydra-etl[native]"
HYDRA_BACKEND=rust hdrctl run ./jobs/salesOr per operation, with a hydra.backends.yaml file next to the job:
default: python
overrides:
csv.read: rust # currently the only accelerated operationOn one million rows, CSV reading is about four times faster, with byte-for-byte identical results
(parity checked on 26,000 CSV files and one million floats against CPython repr()). Hydra falls back to
Python automatically whenever that guarantee cannot be kept. Benchmarks: bench/.
Large-volume engine (optional)
pandas stays the reference engine. Above about two million rows, a job with a global operation
(aggregate, sort, right or outer join…) can switch two steps to faster engines, with the same results:
CSV reading with pyarrow (C++, several cores), in large batches;
aggregate,sortand right / outerjoinin a temporary DuckDB database on disk, instead of gathering every row in memory; only the columns they need are copied. Row-by-row steps (filter,cast, inner or leftjoin,calculate…) still run in pandas, batch by batch.
Same rows, columns, order and types as pandas (sort is stable: ties keep their input order). Sums use a
compensated summation, like pandas; on rare values the last digit can still differ (261.1 against
261.09999999999997).
pip install "hydra-etl[duckdb]"
hdrctl run . --profile # the profile shows the engine chosen and whyengine: auto (default) picks DuckDB when the job has a global operation and the CSV source holds
more than HYDRA_LARGE_VOLUME_ROWS estimated rows (2,000,000); pandas or duckdb force the choice.
Set it per job in transformations.yaml (Studio: Engine selector of a job), or for a whole run with
the HYDRA_ENGINE variable, which takes precedence:
engine: auto # auto | pandas | duckdb
steps:
- aggregate: {by: [country], agg: {revenue: {func: sum, col: amount}}}A global operation DuckDB cannot translate is handed back to pandas, with a log message; the fast CSV
reader hands over to the Python reader (irregular row, BOM, duplicate header, non-UTF-8 encoding),
with a warning. Parity tests: tests/test_large_volume.py.
Measured on 2 CPUs / 8 GB (orders → customers join → revenue by country and by month, two jobs):
Rows | pandas | large-volume engine | dlt + dbt (DuckDB) |
5 M | 26.8 s · 1.4 GB | 8.9 s · 0.86 GB | 19.8 s · 0.55 GB |
10 M | 65.0 s · 2.7 GB | 17.3 s · 1.0 GB | 28.3 s · 0.69 GB |
20 M | 112.8 s · 5.4 GB | 34.3 s · 1.4 GB | 46.2 s · 0.79 GB |
VS Code extension
Completion and validation for Hydra manifests inside the editor, without installing Hydra: job files,
workflows (including type: project steps), triggers.yaml, parameters.yaml, environments/<env>.yaml and .hydra/secrets.yaml.
Download the .vsix from the latest release,
or build it yourself from vscode-extension/ (python build_vsix.py, no Node required).
Project status
Beta. The documented connectors and steps are implemented and covered by tests. The shape of the YAML DSL is settled; any breaking change will be announced in the release notes before 1.0. Use it on real work, and pin your version.
Contributing
Issues, ideas and pull requests are welcome. See CONTRIBUTING.md. If Hydra is useful to you, a ⭐ on GitHub helps others find it.
License
Hydra ETL is open source under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).
You can, for free
Use Hydra ETL for any purpose, including inside a company and for commercial work.
Run your own pipelines with it, internally or for clients.
Modify it and redistribute it.
Using Hydra ETL to move your data does not make your data, your YAML pipelines or your other applications subject to the AGPL.
The one obligation
If you modify Hydra ETL itself and make it available to others — including over a network, for example as a hosted service — you must publish your modified source code under the same license.
Commercial license
If that obligation does not fit your case — typically, you embed a modified Hydra ETL in a proprietary product or offer it as a service without publishing your changes — a commercial license is available.
Contact: admin@hydraetl.com — reply within 2 business days.
Support and services
Support with response time commitments
Help migrating existing scripts or tools to Hydra ETL
Available Tools
17 toolshydra_check_jobARead-onlyIdempotent
Check that a job does what the user actually asked for. This completes hydra_validate_job: that one says whether the YAML is correct, this one whether the job answers the request. Twelve deterministic rules: operation requested but missing, numeric comparison without a cast, load mode contradicted, inconsistent file extension, plaintext secret, unsupported technology. Call this AFTER writing a job, before presenting it.
Inputs: job_path (required), user_request (required). Returns: result
hydra_describe_operationARead-onlyIdempotent
Return the full JSON schema of one transformation operation: every parameter, its type and its default value. Call this when hydra_list_operations is not enough.
Inputs: operation (required). Returns: result
hydra_explain_errorARead-onlyIdempotent
Explain a Hydra ETL validation error in plain language and propose the fix. Use this when hydra_validate_job or hydra_write_job returns a message you cannot interpret.
Inputs: error_message (required). Returns: result
hydra_find_exampleARead-onlyIdempotent
Find, among real Hydra ETL jobs, the ones closest to the request, and return their manifests. Call this BEFORE writing an unusual job: an example that runs beats a reconstruction from memory.
Inputs: user_request (required), count. Returns: result
hydra_list_actionsARead-onlyIdempotent
List the actions usable in a workflow step of type 'action'. Careful: an unknown action is silently ignored at run time and the step is still counted as successful, so check the name before writing it.
Inputs: no named parameters. Returns: result
hydra_list_connectorsARead-onlyIdempotent
List the connector types accepted by the 'type' key of a source or a destination. Any other type fails at run time: S3, BigQuery and Snowflake are not supported.
Inputs: no named parameters. Returns: result
hydra_list_jobsARead-onlyIdempotent
List the Hydra ETL jobs present in the workspace. A job is a folder holding a pipeline.yaml. Returns relative paths, usable as they are in the other tools.
Inputs: no named parameters. Returns: result
hydra_list_operationsARead-onlyIdempotent
List the 18 transformation operations of Hydra ETL with their required parameters. Call this BEFORE writing a transformations.yaml: any operation missing from this list does not exist and will be rejected.
Inputs: no named parameters. Returns: result
hydra_list_workflowsARead-onlyIdempotent
List the workflows in the workspace. A workflow orchestrates several jobs: dependencies, parallel execution, retries, cron triggering. Use this as soon as the request chains several jobs.
Inputs: no named parameters. Returns: result
hydra_preview_dataARead-onlyIdempotent
Show the columns and the first rows of a data file (CSV, JSON, Parquet). Call this BEFORE writing a job, to learn the real column names instead of guessing them — and AFTER a run, to check the result.
Inputs: file_path (required), rows. Returns: result
hydra_read_jobARead-onlyIdempotent
Read the manifests of an existing job. Call this before modifying a job, so you start from its real content instead of rewriting it from memory.
Inputs: job_path (required). Returns: result
hydra_read_workflowARead-onlyIdempotent
Read an existing workflow.yaml file and return its raw YAML. Call this before modifying a workflow, so you start from its real content instead of rewriting it from memory.
Inputs: workflow_path (required). Returns: result
hydra_run_jobADestructive
Run a Hydra ETL job and return the execution log. Only call this tool if the user explicitly asked for the run: it writes real data to the destination.
Inputs: job_path (required). Returns: result
hydra_run_workflowADestructive
Run a workflow and return the trace, step by step. Only call this tool if the user asked for the run: the jobs it contains write real data to their destinations.
Inputs: workflow_path (required). Returns: result
hydra_validate_jobARead-onlyIdempotent
Validate a job with the official Hydra ETL validator: the structure of the four manifests, and the resolution of pipeline.from to a declared source and of pipeline.to to a declared destination. This is the ground truth — if this tool refuses, the job will not run.
Inputs: job_path (required). Returns: result
hydra_write_jobA
Write the manifests of a job, AFTER validation. Each manifest is passed as YAML text. If validation fails, nothing is written and the errors are returned: fix them and call the tool again. Writing does not run the job.
Inputs: job_path (required), sources_yaml (required), pipeline_yaml (required), destinations_yaml (required), +1 more. Returns: result
hydra_write_workflowA
Write a workflow, AFTER validation. A step is either type='job' with the path of a job folder, or type='action'. depends_on is ALWAYS a list: steps with no dependency in common run in parallel. If validation fails, nothing is written.
Inputs: workflow_path (required), workflow_yaml (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Each tool targets a distinct resource and action: metadata discovery, job lifecycle, workflow lifecycle, data preview, and error explanation. The only near-overlap, validate_job vs check_job, is explicitly differentiated in the descriptions.
All tools share the hydra_ prefix and follow a verb_noun pattern (list_, describe_, read_, validate_, write_, run_, explain_, preview_, check_, find_). Verbs and nouns are singular/plural only when logically appropriate.
17 tools is slightly above the ideal 3-15 range, but each tool earns its place across job authoring, workflow orchestration, validation, execution, and discovery. The count feels a little heavy but not bloated.
The surface covers the full job and workflow authoring lifecycle: discover, describe, read, validate, write, run, check, and preview. Minor gaps exist: there is no delete or cancel tool for jobs/workflows, and workflow validation is only mentioned as a precondition of write rather than exposed as a separate tool.
Maintenance
Related MCP Connectors
MCP server for progressive tool usage at any scale (see https://klavis.ai)
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Hosted MCP server for AI-driven data ops. Create apps, manage schemas, and CRUD structured data.
Related MCP Servers
- AlicenseAqualityCmaintenanceA token-efficient, schema-aware MCP server that enables AI assistants to safely read, modify, query, and validate JSON, YAML, and TOML files with automatic schema detection and format conversion capabilities.853 PyPI10MIT
- AlicenseNot gradedqualityBmaintenanceMCP server with 32 tools for ETL ingestion, AI-generated data quality rules, AI transformations, vector search, and natural-language SQL. Works across Postgres, MongoDB, Kafka, S3/MinIO, HashiCorp Vault, and five vector stores (Qdrant, Weaviate, Milvus, Chroma, pgvector).13Apache 2.0
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI assistants the ability to connect to, query, profile, and monitor data sources — turning any LLM into an interactive data engineering copilot.MIT
- FlicenseNot gradedqualityDmaintenanceA standalone MCP server that validates and cleans structured data returned by AI agents, removing invented fields, coercing incorrect types, and ensuring the output matches the expected schema before it enters your pipeline.-