# MotherDuck

This guide will walk you through connecting Datawisp to your existing MotherDuck database. To get started, head over to <https://app.motherduck.com/settings/tokens> and click **+ Create token**.

<figure><img src="https://1293123587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgcBFwKInDxmLaDUoXcY1%2Fuploads%2FI2RBwxNX1hHQWX5TowNw%2Fimage.png?alt=media&#x26;token=b534d3e0-9720-4c26-94ff-45d3a80d722f" alt=""><figcaption></figcaption></figure>

The *Token type* should be set to **Read Scaling Token** as Datawisp will never write to your database.

After clicking **Create token**, copy the generated token and head back to [Datawisp](https://app.datawisp.io/my-datasources).

Head over to the Data Sources page and press **Import**.

<figure><img src="https://1293123587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgcBFwKInDxmLaDUoXcY1%2Fuploads%2FM2RQyK2Jq7LYFxZxJtac%2Fimage.png?alt=media&#x26;token=01df1060-5db0-46e5-808f-9bbc3cdd9780" alt=""><figcaption></figcaption></figure>

Select **Database** and change the *Connection type* to **MotherDuck**.

<figure><img src="https://1293123587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgcBFwKInDxmLaDUoXcY1%2Fuploads%2FjSYzM4C6h5NbHMikH1v1%2Fimage.png?alt=media&#x26;token=03469c61-2c4e-4aa7-952d-f726e66c1bca" alt="" width="563"><figcaption></figcaption></figure>

Choose a *Title* for the datasource. Under *Token,* paste the access token you just created. For *Database* enter the name of the MotherDuck database database that you want to connect to.&#x20;

Then click **Connect**.

![](https://md.statshelix.com/uploads/a1fd0fba00c538a8090828b11.png)

If everything worked, Datawisp will tell you that the connection to your MotherDuck database was successful:

<figure><img src="https://1293123587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgcBFwKInDxmLaDUoXcY1%2Fuploads%2F7etCXpeLrbqVbAdDiBKl%2Fimage.png?alt=media&#x26;token=a055a42e-3f63-4394-909b-ceb01c91a0f1" alt="" width="563"><figcaption></figcaption></figure>
