MotherDuck MCP
for LuumenAI

Query MotherDuck databases and manage dives, flights, and guides from the terminal

Connect MotherDuck and Luumen can list your databases, inspect table columns, and run read-only DuckDB queries while you work. It also reaches the scheduled Python flights and their run logs, plus the dives and guides your team keeps for analysts. Changes — saving a dive, editing a guide, creating a flight — are previewed and held for approval first.

The MotherDuck MCP toolbox

45 tools: 24 read, 21 write. Reads answer instantly. Writes require approval by default. Everything is logged.

  • ReadAsk docs questionAsk a question about DuckDB or MotherDuck.
  • ReadDive queryExecute a read-only DuckDB query on behalf of a dive.
  • ReadGet dive guideLoad instructions for creating MotherDuck dives.
  • ReadGet flightFetch a flight by UUID.
  • ReadGet flight guideLoad instructions for authoring, scheduling, running, and troubleshooting MotherDuck flights.
  • ReadGet flight logsFetch the plain-text logs (stdout + stderr) of a flight run plus the matching `Run` record (status, exit_code, timing).
  • ReadGet flight runFetch a single run of a flight by its sequential run number (from list_flight_runs).
  • ReadGet guideLoad a guide by uuid.
  • ReadGet query guideCall this before writing SQL to answer a data question.
  • ReadList columnsList all columns of a table or view with their types and comments.
  • ReadList databasesList all databases in your MotherDuck account.
  • ReadList divesList all dives in MotherDuck.
  • ReadList flight runsList executions of a flight, newest first.
  • ReadList flightsList MotherDuck flights.
  • ReadList flight versionsList the immutable versions of a flight, newest first.
  • ReadList guidesBrowse this organization's curated guides — markdown documents that capture organization and personal context about the data in MotherDuck.
  • ReadList macrosList all macros (table and scalar macros) in a MotherDuck database, with their schema and parameters.
  • ReadList sharesList all database shares that have been shared with you.
  • ReadList tablesList all tables and views in a MotherDuck database with comments.
  • ReadList viewsList all views in a MotherDuck database, with their schema, comment, and column count.
  • ReadQueryBefore writing SQL to answer a data question, call `get_query_guide` first — it returns this organization's query guidance and an overview of its curated guides.
  • ReadRead diveRead a specific dive by ID, including its full JSX/React component code.
  • ReadSearch catalogSearch the catalog for databases, schemas, tables, columns, and shares using fuzzy matching.
  • ReadView diveOpen and render a MotherDuck Dive as a live MCP app with interactive charts.
  • WriteCancel flight runCancel an in-flight run of a flight. Approval by default
  • WriteCreate flightCreate a new MotherDuck flight. Approval by default
  • WriteCreate guideCreate a new guide — a markdown document that agents read to answer this org's data questions correctly (metric definitions, join/filter conventions, pitfalls). Approval by default
  • WriteDelete diveDelete a dive by ID. Approval by default
  • WriteDelete flightPermanently delete a flight, its versions, schedule, and run history. Approval by default
  • WriteDelete guideSoft-delete a guide while preserving its version history. Approval by default
  • WriteEdit dive contentEdit a dive's content by applying one or more text replacements, then save to MotherDuck. Approval by default
  • WriteEdit flight sourceEdit a flight's source_code by applying one or more text replacements, then save as a new FlightVersion. Approval by default
  • WriteEdit guide contentEdit a guide's markdown body by applying one or more text replacements, then save as a new version. Approval by default
  • WriteGet short lived tokenReturns a short-lived token and connection details for the MotherDuck database endpoint. Approval by default
  • WriteLog dive viewer eventLog a dive viewer event for analytics. Approval by default
  • WriteMint dive state referenceMint a server-stored reference for a `useDiveState` bag and return its id. Approval by default
  • WriteQuery rwExecute a DuckDB SQL query that modifies data, schema, or connection state. Approval by default
  • WriteRun flightTrigger an on-demand execution of a flight using its current version. Approval by default
  • WriteSave diveSave a new dive to MotherDuck. Approval by default
  • WriteSet guide accessSet a guide's visibility to 'user' (private to the owner) or 'organization' (visible to the whole org). Approval by default
  • WriteShare dive dataShare the data for a dive with your organization. Approval by default
  • WriteUpdate diveUpdate an existing dive's title, description, or content. Approval by default
  • WriteUpdate flightUpdate a flight. Approval by default
  • WriteUpdate guideAppend a new version to an existing guide, identified by `uuid`. Approval by default
  • WriteUpdate guide metadataChange a guide's title, description, or topic without appending a content version. Approval by default

One prompt, start to finish

What a governed MotherDuck MCP run looks like inside Luumen.

Questions

How does LuumenAI connect to MotherDuck MCP?

Authorize once with OAuth 2.0. Luumen lists the scopes each action needs before you approve the connection, and credentials never appear in the chat.

Can LuumenAI change things in MotherDuck MCP on its own?

This connection exposes write actions such as cancel flight run, create flight, create guide, delete dive, and more. For connected tools, admins configure which actions may run automatically and which require approval, within the access granted to the user. Review the configured approval policy before enabling write access.

Who gets access to the integration?

You decide. Actions are granted per agent, skill, and team, and per environment — production is not staging. Read access can be broad while writes stay narrow.

Is there an audit trail?

Every call to MotherDuck MCP — read or write, approved or declined — is recorded with the actor, the input, and the result, and can be linked to the ticket or change record.

Put MotherDuck MCP to work with Luumen

Connect in minutes. Every action scoped, approved, and audited from day one.