Connect to MotherDuck
Connect MotherDuck to Retool and query analytics data, build dashboards, and manage records with DuckDB SQL.
MotherDuck is a cloud-based analytics database built on DuckDB, an in-process OLAP database optimized for analytical queries. It provides serverless cloud storage for DuckDB databases with multi-user collaboration and instant scalability.
What you can do with MotherDuck in Retool
- Query with SQL: Write analytical queries using the DuckDB SQL dialect, including aggregations, window functions, and built-in support for reading Parquet, CSV, and JSON files.
- Build dashboards: Power charts, tables, and reports with fast columnar queries across large datasets.
- Query across databases: Use workspace mode to query multiple MotherDuck databases in a single SQL statement.
- Manage data: Insert, update, and delete records using GUI mode for write operations.
Before you begin
To connect MotherDuck to Retool, you need the following:
- Cloud
- Self-hosted
- MotherDuck account: A MotherDuck account with one or more databases.
- MotherDuck access token: A personal access token from your MotherDuck account settings.
- Retool permissions: The ability to create and manage resources.
- MotherDuck account: A MotherDuck account with one or more databases.
- MotherDuck access token: A personal access token from your MotherDuck account settings.
- Network access: Your Retool instance must be able to reach
motherduck.comover HTTPS (port 443). - Retool permissions: Own permissions for resources in your organization.
To generate an access token, log in to app.motherduck.com, navigate to Settings → Access Tokens, and create a new token.
Create a MotherDuck resource
Follow these steps to create a MotherDuck resource in your Retool organization.