Skip to content

Connecting to MotherDuck

2 min read · Updated 4 Nov 2026

In this article, we show you how to connect your Astrato workspace to MotherDuck.

It’s designed to be a quick process and easy to follow.


Introduction

Connection data required

Creating the data connection to MotherDuck


When setting up your data connection, you’ll need to know:

You’ll need to obtain a personal access token to access your MotherDuck instance.

You can obtain the token at this address: https://app.motherduck.com/settings/tokens

Cloud NAT IP addresses

prod-astrato-io-prod-nat-ip-0 34.142.11.11
prod-astrato-io-prod-nat-ip-1 34.142.68.232

Creating the data connection to MotherDuck

Section titled “Creating the data connection to MotherDuck”
  • Open Data & AI → Data Connections

  • Select New connection

    The New connection panel beside the Data Connections list, with a Source grid of Snowflake, Google BigQuery, ClickHouse, Databricks, Amazon Redshift, Supabase, DuckDB, Dremio and PostgreSQL tiles, and Google Sheets and Demo data greyed out

  • Choose DuckDB (MotherDuck) as the source

  • The connection form opens. The screenshot below shows an earlier version of this screen.

    Connect to MotherDuck dialog with a Personal Access Token (PAT) field and a Test connection button.

  • Paste your token into the Service token field.

  • Click Validate Connection.

  • Once the token is validated, choose a Database under Data to use, on the same form. The screenshot below shows the older database step, which had a Next button; the current form has none.

    Connect to MotherDuck dialog with the Select your database dropdown showing MotherDuck_AstratoDB and a Next button.

  • Review the Connection name and click Save connection.

  • Under Connection created, pick a Schema, or leave it on Choose later, then click Finish.

    A New PostgreSQL connection panel after saving: Connection created with “Choose a schema now, or finish to use this connection.”, a Schema list set to Choose later and a Finish button

  • After Finish, the new connection’s panel opens. To choose who can use the connection, open its Manage Access tab. You can come back to it later from the connection’s actions menu in Data Connections: choose Properties (shown as Manage access if you cannot edit the connection), then the Manage Access tab. The screenshot below shows an earlier members screen.

    Add Members screen with a search box, a Visible to everyone toggle, and a Selected list showing members and their roles.

  • No semantic layer opens when you click Finish. To use the connection, go to Data & AI → Semantic Layers, choose Create → New Semantic Layer, pick this connection under Datasource, then select the tables you need. You can create as many semantic layers as you like on the same connection.

    Semantic layer editor on the Select step, showing a table search box and the Bikes Sales tables such as Customers and Date Dim.

Back to Top