---
title: "MotherDuck MCP integration for LuumenAI"
url: "https://www.luumen.ai/integrations/motherduck-mcp/"
entity: SoftwareIntegration
category: "AI & automation"
audience: "SRE, DevOps, platform engineering, IT operations"
---

# MotherDuck MCP integration for LuumenAI

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

## What LuumenAI can do with MotherDuck MCP

LuumenAI connects to MotherDuck MCP with OAuth 2.0 and exposes 45 tools (24 read-only · 13 write · 8 destructive). For connected tools, admins configure which actions may run automatically and which require approval, within the access granted to the user.

## Key facts

- Authentication: OAuth 2.0
- Tools available: 45 tools (24 read-only · 13 write · 8 destructive)
- Deployment: scoped as part of your Pilot, Platform, or Managed rollout
- Category: AI & automation

## About MotherDuck MCP with LuumenAI

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.

## Example tools

Read-only (24 in total):

- `MOTHERDUCK_MCP_ASK_DOCS_QUESTION` — Ask a question about DuckDB or MotherDuck.
- `MOTHERDUCK_MCP_DIVE_QUERY` — Execute a read-only DuckDB query on behalf of a dive.
- `MOTHERDUCK_MCP_GET_DIVE_GUIDE` — Load instructions for creating MotherDuck dives.
- `MOTHERDUCK_MCP_GET_FLIGHT` — Fetch a flight by UUID.
- `MOTHERDUCK_MCP_GET_FLIGHT_GUIDE` — Load instructions for authoring, scheduling, running, and troubleshooting MotherDuck flights.
- `MOTHERDUCK_MCP_GET_FLIGHT_LOGS` — Fetch the plain-text logs (stdout + stderr) of a flight run plus the matching `Run` record (status, exit_code, timing).
- `MOTHERDUCK_MCP_GET_FLIGHT_RUN` — Fetch a single run of a flight by its sequential run number (from list_flight_runs).
- `MOTHERDUCK_MCP_GET_GUIDE` — Load a guide by uuid.

Write and destructive (21 in total, subject to configured approval policy):

- `MOTHERDUCK_MCP_CANCEL_FLIGHT_RUN` — Cancel an in-flight run of a flight.
- `MOTHERDUCK_MCP_CREATE_FLIGHT` — Create a new MotherDuck flight.
- `MOTHERDUCK_MCP_CREATE_GUIDE` — Create a new guide — a markdown document that agents read to answer this org's data questions correctly (metric definitions, join/filter conventions, pitfalls).
- `MOTHERDUCK_MCP_DELETE_DIVE` — Delete a dive by ID.
- `MOTHERDUCK_MCP_DELETE_FLIGHT` — Permanently delete a flight, its versions, schedule, and run history.
- `MOTHERDUCK_MCP_DELETE_GUIDE` — Soft-delete a guide while preserving its version history.
- `MOTHERDUCK_MCP_EDIT_DIVE_CONTENT` — Edit a dive's content by applying one or more text replacements, then save to MotherDuck.
- `MOTHERDUCK_MCP_EDIT_FLIGHT_SOURCE` — Edit a flight's source_code by applying one or more text replacements, then save as a new FlightVersion.

## Frequently asked 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?

For connected tools, admins configure which actions may run automatically and which require approval, within the access granted to the user.

### 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.

Full page: https://www.luumen.ai/integrations/motherduck-mcp/
