← Back to all apps

MotherDuck

Productivityby MotherDuck Corporation

Connect AI assistants to your MotherDuck data warehouse. Explore, visualize, and manage data using natural language–no SQL skills required. Create Dives: interactive visualizations that let you save and share answers with your team, staying up-to-date with your latest data. Works with real-world data without requiring semantic models or pre-configuration. Your AI assistant acts like a data analyst, exploring, validating, analyzing, and visualizing data iteratively to answer your questions.

15ChatGPT Tools
15Claude Tools
MotherDuck CorporationDeveloper
ProductivityCategory

Use Cases

data

Available Tools

Ask Docs Question

ask_docs_question
Full Description

Ask a question about DuckDB or MotherDuck. Returns answers from official documentation.

Parameters (1 required)
Required
questionstring

Question about DuckDB or MotherDuck

Delete Dive

delete_dive
Full Description

Delete a dive by ID. This action is permanent and cannot be undone.

Parameters (1 required)
Required
idstring

The unique identifier of the dive to delete

Get Dive Guide

get_dive_guide
Full Description

Load instructions for creating MotherDuck dives. Call this before starting to iterate with the user on artifacts, data visualizations, plots, dashboards, etc.

Parameters (1 required)
Required
clientstring

The client environment requesting the guide. Use 'claude' for Claude web/desktop Chat, 'chatgpt' for ChatGPT, 'claude_cowork' for Claude Cowork, 'claude_code' for Cursor/IDE integrations with local filesystem access, or 'other' for other MCP clients.

Options:claudechatgptclaude_coworkclaude_codeother

List Columns

list_columns
Full Description

List all columns of a table or view with their types and comments.

Parameters (2 required, 1 optional)
Required
databasestring

Database name

tablestring

Table or view name

Optional
schemastring

Schema name (optional, defaults to 'main')

List Databases

list_databases
Full Description

List all databases in your MotherDuck account with their names and types.

List Dives

list_dives
Full Description

List all dives in MotherDuck. Dives are interactive React data apps that query live data. Returns metadata including current_version (the latest version number, 1-indexed) for each dive. Use read_dive with the optional version parameter to retrieve a specific historical version. Optionally filter by keywords to search in title and description.

Parameters (0 required, 1 optional)
Optional
keywordsstring

Optional keywords to filter dives by title or description (case-insensitive, all words must match)

List Shares

list_shares
Full Description

List all database shares that have been shared with you. Returns share names and URLs. To attach a share, use the query_rw tool: ATTACH '<share_url>' AS <optional_alias>;

List Tables

list_tables
Full Description

List all tables and views in a MotherDuck database with their comments.

Parameters (1 required, 1 optional)
Required
databasestring

Database name to list tables from

Optional
schemastring

Schema name (optional, defaults to all schemas)

MotherDuck Query

query
Full Description

Execute read-only DuckDB query against MotherDuck databases. For cross-database queries, use fully qualified names: database.schema.table (or database.table for main schema).

Parameters (2 required)
Required
databasestring

Database name to query

sqlstring

SQL query to execute

MotherDuck Query (Read-Write)

query_rw
Full Description

Execute a DuckDB query that modifies data, schema, or connection state (e.g. ATTACH/DETACH, CREATE/DROP DATABASE/TABLE, INSERT/UPDATE/DELETE).

STRICT RULES — violating these is a critical error: 1. EXPLICIT INSTRUCTION ONLY: Only call this tool when the user has explicitly asked to modify, create, or delete data or schema. Never infer a write operation from a question (e.g. "show me X" must never trigger adding a column or creating a table to answer it). 2. CONFIRM BEFORE EXECUTING: Always ask the user for confirmation before calling this tool. Describe exactly what will change. 3. READ-ONLY FIRST: If the user's goal can be answered using existing data with the read-only query tool, always do that instead — even if a schema change would make it easier.

Parameters (1 required, 1 optional)
Required
sqlstring

SQL query to execute

Optional
databasestring

Database context for the query. Required for table-level operations (DML/DDL). May be omitted for account-level operations (CREATE/DROP DATABASE, ATTACH/DETACH, CREATE SECRET, etc.).

Read Dive

read_dive
Full Description

Read a specific dive by ID, including its full JSX/React component code. Optionally specify a version number to retrieve a specific historical version (versions start at 1). If no version is specified, the latest version is returned.

Parameters (1 required, 1 optional)
Required
idstring

The unique identifier of the dive to read

Optional
versioninteger

Optional version number to retrieve (1-indexed). If not specified, returns the latest version.

Save Dive

save_dive
Full Description

Save a new dive to MotherDuck. Returns a URL the user can click to view the dive. Call get_dive_guide first and iterate with the user on the design thoroughly before suggesting to save. Never save without previous confirmation that iteration is done.

Parameters (2 required, 1 optional)
Required
contentstring

The JSX/React component code for the dive

titlestring

The title of the dive

Optional
descriptionstring

A brief description of the dive

Search Catalog

search_catalog
Full Description

Search the catalog for databases, schemas, tables, columns, and shares using fuzzy matching. Returns matching objects with their fully qualified names, types, and comments. Useful for discovering available data when you don't know exact names.

Parameters (1 required, 1 optional)
Required
querystring

Search term to find in object names (supports partial matching, underscores, dots)

Optional
object_typesarray

Optional filter to limit results to specific object types

Share Dive Data

share_dive_data
Full Description

Share the data for a dive with your organization. Creates org-scoped shares for owned databases used in the dive, and updates the dive so others in the organization can view it.

Parameters (1 required)
Required
diveIdstring

The unique identifier (UUID) of the dive

Update Dive

update_dive
Full Description

Update an existing dive's title, description, or content. Returns a URL the user can click to view the updated dive. At least one field must be provided.

Parameters (1 required, 3 optional)
Required
idstring

The unique identifier (UUID) of the dive to update

Optional
contentstring

New JSX/React component code

descriptionstring

New description for the dive

titlestring

New title for the dive