Skip to main content

Breakout: MotherDuck

Connect Ascend to MotherDuck to run your data pipelines on the serverless DuckDB cloud.

In this session, you'll set up a MotherDuck account (if needed), create an API key, and configure a MotherDuck Data Plane Connection to run your pipelines. You'll also explore MotherDuck's capabilities to enhance your existing flow.

Prerequisites

Before you begin, ensure you have:

  • Completed Hands-On Session #1
  • If you'd like to use your own MotherDuck account, you'll need a MotherDuck account with permissions to create databases and access tokens
Don't have a MotherDuck account?

You can sign up for a free MotherDuck account which includes generous free tier usage.

Step 1: Sign up for MotherDuck

If you don't already have a MotherDuck account, follow these steps to get started.

Already have a MotherDuck account?

Create a MotherDuck account

  1. Go to app.motherduck.com
  2. Sign up using your preferred authentication method (Google, GitHub, or email)
  3. Complete the onboarding steps
tip

MotherDuck's free tier includes generous compute and storage limits, perfect for exploring and learning.

Step 2: Create a MotherDuck API key

You'll need an API key to allow Ascend to connect to your MotherDuck account.

  1. In the MotherDuck UI, click the dropdown in the top left corner
  2. Navigate to Settings

MotherDuck settings

  1. Click on Access Tokens in the left sidebar

MotherDuck access token

  1. Click Create Token
  2. Give your token a descriptive name (e.g., ascend-bootcamp)
  3. Your token will be displayed — you'll need it in the next step

New MotherDuck access token

Keep this window open!

Don't copy the token yet — leave this dialog open. You'll need the token in the next step.

Step 3: Connect Ascend to MotherDuck

Copy and paste this prompt to Otto:

Help me switch my DuckDB Connection to MotherDuck. We'll then want to update our otto.yaml to enable the MotherDuck MCP server. See mcp.yaml for the secret name we should be using. Create a form asking for the MotherDuck API key & whether I want the MCP server enabled; store the secret in the default Environment Vault. After I submit the form, update the Connection and test it (check the file). Once it's working, run my sales Flow to confirm all is well. Query the Component. Finally, update otto.yaml to enable the MCP server if I opted into that.

In the form, enter your MotherDuck token from the previous step. Otto will take it from there!

MotherDuck Otto form

Your secrets are safe

Secret values in Otto forms are never seen by Otto or the underlying AI service providers. Form secret values go directly to secure vaults.

Never paste secrets directly into Otto (or any AI) chat. Always use forms or the Ascend UI to manage secrets securely.

Checkpoint

By the end of this session, you should have:

  • A MotherDuck account
  • Created and stored a MotherDuck API key in Ascend
  • Created a MotherDuck Data Plane Connection in Ascend
  • Set MotherDuck as the default Data Plane
  • Successfully run a pipeline on MotherDuck
Need help?

Ask a bootcamp instructor or reach out in the Ascend Community Slack.

Next steps

Return to the Bootcamp Overview to continue with Day 2 sessions, or explore more MotherDuck features with Otto!