Skip to main content
Glama
dltHub-AI-workbench

dltHub-AI-workbench

Official
by dlt-hub

dltHub AI Harness

dlt (data load tool) is an open-source Python library for loading data from APIs and databases into a warehouse or lakehouse. dltHub is the paid platform on top of dlt. It adds features for coding agents: transformations, data quality checks, a managed runtime, managed data apps and an AI workspace.

dltHub AI Harness components

The dltHub AI Harness is a collection of toolkits that give AI coding assistants step-by-step workflows to build data pipelines with dlt. You can use the harness as-is or fork and customize it for your own stack. The dlthub ai CLI installs toolkit components into the right locations for your assistant and runs the workspace MCP server.

Build toolkits cover ingestion (REST API, SQL), transformation and data quality. Run toolkits cover deployment and exploration. The REST API toolkit is backed by the dltHub context — over 9,700 source definitions the agent queries to find verified connectors before writing code. New users can start with the quick-start toolkit for a guided end-to-end run from data to dashboard.

The dltHub AI Harness is tested with Claude Code, Cursor and Codex. Other AI coding assistants can work too. When you start, use accept edits (Claude) or --approval-mode (Codex). Then you review each change and learn the dltHub AI workflows.

We launched dltHub in March 2026. You can now run your dlt pipelines on a managed, agent-native platform with transformations, data quality and observability built in. Learn more or deploy your first pipeline.

The dltHub AI Harness supports the iterative data engineering workflow

Building data pipelines is iterative and covers two major phases: ingestion and transformations. Each phase repeats the same cycle:

Build (local development)

  • Develop the pipeline iteratively — for ingestion: first REST API endpoint, then additional endpoints; for transformation: data model first, then the full transformation pipeline

  • Explore the loaded data and validate it after each step

  • Repeat until the pipeline works

Run (production)

  • Deploy the ingestion or transformation pipeline to production

  • Serve insights via data apps built on top of the loaded data

A second cycle connects the two phases: insights from the transformation and serving layer feed back into ingestion. The harness Build toolkits support local development. The Run toolkits handle deployment and data apps.

Data Development Lifecycle

Related MCP server: Context7 MCP Server

dltHub AI Harness Toolkits

The harness gives your coding assistant toolkits. Each toolkit holds a guided workflow for one phase. Instead of generating ad-hoc code, the assistant follows a defined sequence of steps from start to finish.

A Toolkit contains skills, commands, rules, agents, and an MCP server — tied together by a workflow that tells the assistant which skill to run at each step and how to use the MCP server.

All toolkits depend on init for shared rules, secrets handling, and the MCP server. When using the dlthub ai CLI, init is installed automatically as a dependency. When using the Claude marketplace, install the init plugin separately.

dltHub AI Harness

Toolkit components

Component

What it is

When it runs

Skill

Step-by-step procedure the assistant follows

Triggered by user intent or explicitly with /skill-name

Command

A slash command for a specific action

User invokes with /toolkit:command

Rule

Always-on context (conventions, constraints)

Every session, automatically

Workflow

Ordered sequence of skills with a fixed entry point

Loaded as a rule — always active

MCP server

Exposes pipelines, tables, and secrets as tools

During a session, via MCP protocol

Agent

An agent definition (AGENT.md): system prompt, skills, rules, declared access and agent output

Runs unattended: on a schedule, after a job run fails, or on demand

dltHub context

9,700+ REST API source definitions with verified connectors and pipeline patterns

During source discovery, via search_dlthub_sources

MCP tools

Two MCP servers give the agent context during the workflow. You do not copy and paste output.

dlt-workspace-mcp (local, installed by dlthub ai init) exposes: data inspection tools (list_tables, preview_table, execute_sql_query, get_row_counts, get_table_schema, export_schema, get_local_pipeline_state), secrets tools (secrets_view_redacted, secrets_update_fragment), and toolkit discovery (list_toolkits, toolkit_info).

dltHub context (remote) provides search_dlthub_sources — used by the find-source skill to search 9,700+ REST API source definitions and return verified connectors with reference links before writing code.

Available toolkits

Toolkit

Phase

Workflow entry

What it does

Example prompts

Availability

quick-start

Setup

quick-start

Guided end-to-end run from data to dashboard in 3–5 prompts; routes to the right entry skill based on a chosen depth

"Use quick-start to take me through the full workflow with the GitHub API"

Run /quick-start:quick-start

bootstrap

Setup

/init-workspace

Checks for uv, Python venv, and dlthub; installs what's missing; initializes the workspace; then runs dlthub ai init and lists available toolkits

"Run /init-workspace to set up a Python environment with dlthub"

Try it out yourself!Run /init-workspace

rest-api-pipeline

Build

find-source

Scaffold, debug, and validate REST API ingestion pipelines

"Use find-source to load data from the Stripe API into DuckDB"

Try it out yourself!Run /find-source

sql-database-pipeline

Build

find-sql-database-source

Scaffold, debug, and validate SQL database ingestion pipelines

"Use find-sql-database-source to load tables from my Postgres database into DuckDB"

Run /find-sql-database-source

filesystem-pipeline

Build

create-filesystem-pipeline

Load files (CSV, Parquet, JSONL, or custom) from local disk, S3, GCS, Azure, or SFTP into a destination

"Use create-filesystem-pipeline to load my S3 CSV files into DuckDB"

Sign up

data-exploration

Explore

explore-data

Query loaded data and create marimo dashboards

"Use explore-data to explore my Stripe pipeline and create a dashboard"

Try it out yourself!Run /explore-data

dlthub-platform

Run

setup-runtime

Deploy pipelines to the dltHub Platform

"Use setup-runtime to deploy my pipeline to dltHub"

Sign up

transformations

Transform

annotate-sources

Design a Canonical Data Model (CDM) and write dlthub transformation functions from existing pipelines

"Use annotate-sources to start building a CDM from my HubSpot and Luma pipelines"

Sign up

data-quality

Build

setup-data-quality

Define, run, and review data quality checks and metrics on dlt pipeline data

"Use setup-data-quality to add validation checks to my Stripe pipeline"

Sign up

performance

Build

optimize-performance

Tune a slow or memory-heavy pipeline — diagnose the bottleneck stage and apply parallelism, workers, buffers, and batching

"Use optimize-performance to speed up my Postgres pipeline"

Sign up

Getting started

To set up a clean new dltHub project with AI support, run dlthub-init. The command is not interactive, so your coding assistant can run it for you. Agents must use this command to create a new dltHub project. It pins dlt[hub] with a bundled lock and runs uv sync:

uvx dlthub-init@latest <dir>    # scaffold a clean new project into <dir>

Existing project

To add the harness to an existing project, run the same dlthub-init in place. It merges pyproject.toml, keeps secrets.toml and adds missing lines to .gitignore. Then it pins dlt[hub] and runs uv sync. Your coding assistant can run it for you:

uvx dlthub-init@latest          # set up AI support in the current directory

Manual steps (fallback): if dlthub-init is not available, or you want to do each step yourself:

Note: All dlthub ai commands below use uv run dlthub ... syntax. If you have dlthub installed globally or in an active virtual environment, you can omit uv run and call dlthub directly. We recommend using uv.

uv init
uv add "dlt[hub]"

# then run `uv sync` as the output says
uv run dlthub init

# Set up AI support (auto-detects your coding assistant)
uv run dlthub ai init

# If multiple coding assistants are detected, specify one explicitly:
uv run dlthub ai init --agent <agent>  # <agent>: claude | cursor | codex

dlthub ai init detects your coding assistant from environment variables and config files, then installs skills, rules, and the MCP server in the correct locations for that tool.

Claude Code note: Add the following to your CLAUDE.md to enforce safe credential handling:

CRITICAL: never ask for credentials in chat. Always let the user edit secrets directly and do not attempt to read them.

Cursor note: After running the command, manually enable the dlt-workspace-mcp server in Cursor Settings > MCP. Add the following to your .cursor/rules/security.mdc to enforce safe credential handling:

CRITICAL: never ask for credentials in chat. Always let the user edit secrets directly and do not attempt to read them.

Codex note: Codex does not support commands and rules, so the installer converts those into skills and AGENTS.md. Codex also runs in a strict sandbox — consider enabling web access in your project or global config:

# .codex/config.toml
web_search = "live"

Add the following to your AGENTS.md to enforce safe credential handling:

CRITICAL: never ask for credentials in chat. Always let the user edit secrets directly and do not attempt to read them.

First-time onboarding (want to try or learn dltHub)

If you are new to dltHub, run dlthub-start yourself. It creates a playground workspace. Do not use it for production or for a real project:

uvx dlthub-start@latest

Run this command yourself, not with your coding assistant. It asks for authentication, so it works only in a real terminal (not in ! mode). For agent-driven setup, use dlthub-init above.

Browse and install toolkits

If dlthub is not installed, do New project or Existing project first. The bootstrap toolkit's /init-workspace also works. The toolkit commands below need dlthub in your environment.

uv run dlthub ai toolkit list

If you are not sure which toolkits you need, install all of them:

uv run dlthub ai toolkit install quick-start
uv run dlthub ai toolkit install bootstrap
uv run dlthub ai toolkit install rest-api-pipeline
uv run dlthub ai toolkit install sql-database-pipeline
uv run dlthub ai toolkit install filesystem-pipeline
uv run dlthub ai toolkit install dlthub-platform
uv run dlthub ai toolkit install data-exploration
uv run dlthub ai toolkit install transformations
uv run dlthub ai toolkit install data-quality
uv run dlthub ai toolkit install performance

Starting the harness

Use one of the example prompts from the Available toolkits table above to kick off a workflow.

Claude Code — start a new session via claude in your terminal. Restart after installation for skills and MCP to take effect.

Cursor — open the project in Cursor and use the chat panel (Cmd+L). The installed skills and rules are picked up automatically.

Codex — launch the Codex CLI via codex or use the Codex chat in the UI. Restart Codex after setup for the MCP server to take effect.

Claude Code marketplace plugin (Early Access)

Early Access: The Claude Code plugin does not link toolkits as well as dlthub ai toolkit install. To try dltHub for the first time, use First-time onboarding. The plugin path is for a project you set up from inside Claude Code with the bootstrap toolkit.

The harness is also available as a Claude Code plugin via the marketplace. Start a Claude Code session and run:

/plugin marketplace add dlt-hub/dlthub-ai-harness
/plugin install init@dlthub-ai-harness --scope project
/plugin install quick-start@dlthub-ai-harness --scope project
/plugin install bootstrap@dlthub-ai-harness --scope project
/plugin install rest-api-pipeline@dlthub-ai-harness --scope project
/plugin install sql-database-pipeline@dlthub-ai-harness --scope project
/plugin install filesystem-pipeline@dlthub-ai-harness --scope project
/plugin install dlthub-platform@dlthub-ai-harness --scope project
/plugin install data-exploration@dlthub-ai-harness --scope project
/plugin install transformations@dlthub-ai-harness --scope project
/plugin install data-quality@dlthub-ai-harness --scope project
/plugin install performance@dlthub-ai-harness --scope project

Plugins become active only in a new session. Restart Claude Code with claude.

Moving from the dlthub-ai-workbench marketplace. The marketplace was renamed to dlthub-ai-harness. If you added it under its old name, your plugins keep working: an update keeps the old local name. But the @dlthub-ai-harness commands in this README do not find the marketplace, and teammates who add it now get the new name. To match, remove the marketplace, which also uninstalls its plugins. Then add it again and reinstall init, which every toolkit depends on, and the toolkits you use:

/plugin marketplace remove dlthub-ai-workbench
/plugin marketplace add dlt-hub/dlthub-ai-harness
/plugin install init@dlthub-ai-harness --scope project
/plugin install <toolkit>@dlthub-ai-harness --scope project

If your project commits .claude/settings.json, change each <toolkit>@dlthub-ai-workbench key under enabledPlugins to <toolkit>@dlthub-ai-harness. An old key does not load the plugin and shows no error.

The dlthub ai CLI

The dlthub ai subcommand is the bridge between the harness and your coding assistant. dlthub ai init installs project rules, a secrets skill and ignore files. It also configures the dlt MCP server for your agent. dlthub ai toolkit install copies additional toolkit components (skills, rules, commands) into the right locations for your assistant.

Toolkit management — copies skills, rules, commands, and MCP config from the harness into your project's agent config directory (.claude/, .cursor/, .agents/, etc.):

uv run dlthub ai status                        # show dlt version, agent, installed toolkits, readiness checks
uv run dlthub ai toolkit list                  # list available toolkits from the harness
uv run dlthub ai toolkit info <name>           # show a toolkit's skills, commands, and workflow
uv run dlthub ai toolkit install <name>        # install a toolkit for the detected agent
uv run dlthub ai toolkit install <name> --agent <agent>  # <agent>: claude | cursor | codex  - override agent detection

Secrets management — dlt stores credentials in TOML files; these commands let the assistant inspect and update them without reading raw secret values:

uv run dlthub ai secrets list                  # show which secret files exist and where
uv run dlthub ai secrets view-redacted         # print secrets with values masked
uv run dlthub ai secrets update-fragment --path <file> '<toml>'  # merge a TOML snippet into a secrets file

MCP server — starts a local server that exposes your dlthub workspace (pipelines, schemas, tables, secrets) as tools the assistant can call:

uv run dlthub ai mcp run                       # run with streamable-http (default)
uv run dlthub ai mcp run --sse                 # run with the legacy SSE transport
uv run dlthub ai mcp run --stdio               # run in stdio mode (for assistants that require it)
uv run dlthub ai mcp install                   # register the MCP server in the agent's config

With the MCP server, the assistant can answer questions like "what tables were loaded?" or "show me the schema". You do not paste output into the chat.

License

This project is licensed under the dltHub AI Harness License.

Available Tools

17 tools
execute_sql_queryA

Execute a read-only SQL query against the pipeline's destination dataset.

Inputs: pipeline_name (required), sql_select_query (required), output_format. Returns: result

export_schemaC

Export the pipeline schema as a diagram or structured dump.

Inputs: pipeline_name (required), schema_name, hide_columns, save_to_file, +1 more. Returns: result

get_local_pipeline_stateB

Get pipeline state: incremental cursors, resource state, and source state.

Inputs: pipeline_name (required). Returns: object

get_row_countsB

Get row counts for all data tables in a pipeline.

Inputs: pipeline_name (required), output_format. Returns: result

get_table_create_sqlC

Get CREATE TABLE DDL for the table in the destination's SQL dialect.

Inputs: table_name (required), pipeline_name (required). Returns: result

get_table_schemaB

Get table schema with column names, data types, and escaped sql_identifier fields.

Inputs: table_name (required), pipeline_name (required). Returns: object

get_workspace_infoA

Get workspace info: name, directories, active profile, and config providers.

Inputs: no named parameters. Returns: object

list_pipelinesA

List all dlt pipelines available in this workspace

Inputs: no named parameters. Returns: result

list_profilesA

List all available workspace profiles with status flags (current, pinned, configured).

Inputs: no named parameters. Returns: result

list_tablesC

List all data tables for a pipeline.

Inputs: pipeline_name (required). Returns: object

list_toolkitsA

List available dlt AI toolkits with their names and descriptions.

Inputs: no named parameters. Returns: object

preview_tableC

Get the first 10 rows from a table.

Inputs: table_name (required), pipeline_name (required), output_format. Returns: result

search_dlthub_sourcesB

Search for available dlt sources on dlthub by name or description.

Inputs: query. Returns: result

secrets_listB

List secret file paths, profiles, and whether each file exists.

Inputs: no named parameters. Returns: result

secrets_update_fragmentA

Deep-merge a TOML fragment into a secrets file; returns the redacted result. The file is created if it does not exist.

Inputs: path (required), fragment (required). Returns: result

secrets_view_redactedA

Show secrets TOML with every value replaced by '***'.

Without path: returns the unified merged view across all project secret files (read-only, shows effective configuration). With path: returns that single file redacted. Use secrets_list to discover file paths.

Inputs: path. Returns: result

toolkit_infoB

Show detailed contents of a dlt AI toolkit.

Inputs: name (required). Returns: Extends meta with structural data from directory scan.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 17 tools

    Disambiguation4/5

    Most tools target clearly distinct resources: pipelines, tables, schemas, secrets, profiles, and workspace info are separable. The main soft spot is the toolkit pair (list_toolkits vs toolkit_info) and the partial overlap between get_workspace_info and list_profiles, both of which are list/detail-style pairs that descriptions mostly disambiguate. An agent could occasionally hesitate between get_workspace_info and get_local_pipeline_state, but overall boundaries are workable.

    Naming Consistency3/5

    Two competing conventions coexist: verb_noun dominates (list_pipelines, get_table_schema, execute_sql_query, export_schema, search_dlthub_sources), but the secrets family uses noun_verb (secrets_list, secrets_view_redacted, secrets_update_fragment) and toolkit_info is noun-first. All are snake_case and readable, so the pattern is decipherable, but it is not a single predictable scheme.

    Tool Count4/5

    17 tools is slightly on the heavy side but each maps to a plausible read-oriented operation across workspace, pipeline, table, and secret surfaces. Nothing feels gratuitously duplicated, though the two toolkit tools could arguably collapse into one. Slightly over the comfortable 3-15 band but justified by domain breadth.

    Completeness3/5

    The surface is heavily read-only: pipelines can be listed and inspected but not created, run, or deleted, and profiles can be listed but not switched or pinned. Secrets support list/view/update but not delete, and there is no mutation for pipeline state. Core inspection workflows are covered, but lifecycle operations are notably absent, which will cause agent dead ends for anything beyond introspection.

    Maintenance

    ActivityNo data
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      An all-in-one Model Context Protocol (MCP) server that connects your coding AI to numerous databases, data warehouses, data pipelines, and cloud services, streamlining development workflow through seamless integrations.
      4
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      An 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
    • A
      license
      B
      quality
      C
      maintenance
      Enables AI assistants to connect to 17+ databases and query/analyze data using natural language via MCP and HTTP APIs, supporting platforms like Claude Desktop, Cursor, and VS Code.
      42
      105 npm
      MIT