Connecting to MotherDuck
Introduction
Section titled “Introduction”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.
Creating the data connection to MotherDuck
Connection data required
Section titled “Connection data required”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.11prod-astrato-io-prod-nat-ip-1 34.142.68.232Creating the data connection to MotherDuck
Section titled “Creating the data connection to MotherDuck”-
Open Data & AI → Data Connections
-
Select New connection

-
Choose DuckDB (MotherDuck) as the source
-
The connection form opens. The screenshot below shows an earlier version of this screen.

-
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.

-
Review the Connection name and click Save connection.
-
Under Connection created, pick a Schema, or leave it on Choose later, then click Finish.

-
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.

-
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.
