> For the complete documentation index, see [llms.txt](https://docs.airbook.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airbook.io/connect/motherduck.md).

# MotherDuck

### How to Connect Airbook to MotherDuck <a href="#how-to-connect-airbook-to-motherduck" id="how-to-connect-airbook-to-motherduck"></a>

Connecting Airbook to MotherDuck is a straightforward process. MotherDuck is a new serverless analytics platform, and here's a guide to connect your MotherDuck data to Airbook.

Follow these steps to set up your connection

<figure><img src="/files/YeXE5leHxwW3HEWPYYsq" alt=""><figcaption></figcaption></figure>

### Step-by-Step Guide <a href="#step-by-step-guide" id="step-by-step-guide"></a>

1. **Log in to MotherDuck:**
   * Start by logging into your MotherDuck account.
2. **Retrieve Service Token:**
   * Once logged in, click on your username in the upper right corner and go to "Settings."
   * You will see a service token displayed. Copy this token as you will need it to authenticate the connection with Airbook.
3. **Navigate to Airbook Connections:**
   * Switch over to your Airbook workspace and click on the "Connections" tab located on the sidebar.
4. **Select MotherDuck Connector:**
   * From the list of available data sources, select "MotherDuck."
5. **Paste the Service Token:**
   * You will be prompted to enter your service token. Paste the token you copied from MotherDuck into the provided field.
6. **Confirm the Connection:**
   * After pasting the service token, click on the "Confirm" button to establish the connection.
7. **Verify Connection:**
   * You should now see that your MotherDuck account is connected to Airbook.

#### Querying Data from MotherDuck <a href="#querying-data-from-motherduck" id="querying-data-from-motherduck"></a>

Now that your MotherDuck account is connected, querying data is simple:

1. **Go to the Query Section:**
   * Navigate to the query section in your Airbook workspace.
2. **Run a Query:**
   * Enter your SQL query to fetch data from MotherDuck and hit the "Run Query" button.
3. **View Results:**
   * Your query results will be displayed, showing how easy it is to access and analyze data from MotherDuck within Airbook.
