Skip to main content

MotherDuck

Overview

MotherDuck is a collaborative, serverless analytics platform built on DuckDB. This destination writes data to a MotherDuck-hosted database in the cloud.

This connector also supports writing to a local DuckDB file. If you only need local DuckDB files without MotherDuck, consider using the DuckDB destination instead.

Destinations V2

This destination implements Destinations V2, which provides improved final table structures. It's a new version of the existing DuckDB destination and works both with DuckDB and MotherDuck.

Learn more about what's new in Destinations V2 here. Note that data generations are not currently supported.

Prerequisites

To use this destination, you need:

Supported sync modes

Sync modeSupported?
Full Refresh - OverwriteYes
Full Refresh - AppendYes
Full Refresh - Overwrite + DedupedYes
Incremental Sync - AppendYes
Incremental Sync - Append + DedupedYes

Configuration

MotherDuck access token

Provide your MotherDuck access token for authentication. To create a token, go to the MotherDuck UI, click your organization name, then Settings, then Create token.

Destination database

Specify your MotherDuck database using the md: prefix followed by the database name, such as md:my_database. If you use md: without a database name, the default MotherDuck database my_db is used.

caution

Do not include your access token in the md: connection string. This may cause your token to appear in execution logs. Use the MotherDuck Access Token field instead.

Schema name

Optionally specify a database schema name. Defaults to main if not provided.

Output schema

Each table will contain at least the following columns:

  • _airbyte_raw_id: a uuid assigned by Airbyte to each event that is processed.
  • _airbyte_extracted_at: a timestamp representing when the event was pulled from the data source.
  • _airbyte_meta: a json blob storing metadata about the record.

In addition, columns specified in the JSON schema will also be created.

Namespace support

This destination supports namespaces. The namespace maps to a MotherDuck schema.

Reference

Config fields reference

Field
Type
Property name
string
motherduck_api_key
string
destination_path
string
schema

Changelog

Expand to review
VersionDatePull RequestSubject
0.2.32026-03-3175645Bump version to force registry update for supportLevel change to certified
0.2.22026-03-1770438Fix for camelCase columns being NULL
0.2.12026-01-2970999Fix for empty STRUCTs
0.2.02026-01-0670221Upgrade DuckDB to v1.4.2 and duckdb-engine to v0.17.0
0.1.262025-10-2168338Update dependencies
0.1.252025-10-1467952Update dependencies
0.1.242025-10-0766822Update dependencies
0.1.232025-08-0864161feat: allow null values in primary key fields. Primary keys are no longer declared as table constraints.
0.1.222025-07-2263714fix(destination-motherduck): handle special characters in stream name when creating tables
0.1.212025-07-2263709fix: resolve error "Can't find the home directory at '/nonexistent'" #63710
0.1.202025-07-0662133fix: when primary_key is not defined in the catalog, use source_defined_primary_key if available
n/a2025-06-2748673Update dependencies
0.1.192025-05-2560905Allow unicode characters in database/table names
0.1.182025-03-0154737Update airbyte-cdk to ^6.0.0 in destination-motherduck
0.1.172024-12-2650425Fix bug overwrite write method not saving all batches
0.1.162024-12-0648562Improved handling of config parameters during SQL engine creation.
0.1.152024-11-0748405Updated docs and hovertext for schema, api key, and database name.
0.1.142024-10-3048006Fix bug in _flush_buffer, explicitly register dataframe before inserting
0.1.132024-10-3047969Preserve Platform-generated id in state messages.
0.1.122024-10-3047987Disable PyPi publish.
0.1.112024-10-3047979Rename package.
0.1.102024-10-2947958Add state counts and other fixes.
0.1.92024-10-2947950Fix bug: add double quotes to column names that are reserved keywords.
0.1.82024-10-2947952Fix: Add max batch size for loads.
0.1.72024-10-2947706Fix bug: incorrect column names were used to create new stream table when using multiple streams.
0.1.62024-10-2947821Update dependencies
0.1.52024-10-2847694Resolve write failures, move processor classes into the connector.
0.1.42024-10-2847688Use new destination table name format, explicitly insert PyArrow table columns by name and add debug info for column mismatches.
0.1.32024-10-2347315Fix bug causing MotherDuck API key to not be correctly passed to the engine.
0.1.22024-10-2347315Use saas_only mode during connection check to reduce ram usage.
0.1.12024-10-2347312Fix: generate new unique destination ID
0.1.02024-10-2346904New MotherDuck destination