/motherduck-skills:motherduck-connectfrom motherduck-skills
Sets up and troubleshoots MotherDuck connections across runtimes: PG endpoint, native DuckDB API, MCP server, and read scaling.
Ships in motherduck-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
ask_docs_question tool is available, use it first for current connection behavior.md: workspace connections for multi-database exploration, bootstrap flows, and temporary validation environments.get_short_lived_token returns a temporary token and endpoint details; pass it through the process environment and never write it to files, code, or logs. Deployed services still need a service-account token.md: connects with connection_timeout (md:my_db?connection_timeout=30s, MOTHERDUCK_CONNECTION_TIMEOUT, or SET motherduck_connection_timeout = '30s' before the first ATTACH 'md:'). It applies to DuckDB clients with the MotherDuck extension, not the PG endpoint or Wasm. Without it, only network retries are bounded.https://api.motherduck.com/mcp; read references/MCP_SETUP.md.custom_user_agent where supported; for PG endpoint clients, prefer the client's application_name setting when available. The tag shows per query in the Duckling Overview, which makes it the quickest way to see which workload is using a Duckling.Pick the connection method (above) and the runtime separately. The runtime is what actually executes queries: MotherDuck MCP, the MotherDuck CLI, a Python or Node process, or the DuckDB CLI.
For answer, review, or planning requests, inspect the available runtimes and recommend a path without installing anything. Install or configure a runtime only when the user asks to connect, build, or change the application.
Reuse the project’s language, dependencies, and working connection. Prefer MCP for chat-only exploration and the MotherDuck CLI for file-shaped Dive/Flight work or large output. For application code, use its existing runtime; choose a new runtime only when none is established.
Before installing a DuckDB client, check https://motherduck.com/docs/duckdb-versions.json and pin a MotherDuck-supported version. Keep an existing compatible pin unless the task requires an upgrade. See the runtime reference for installation examples.
SELECT 1 AS connected and then list reachable tables.session_name per end user.references/MCP_SETUP.md to add the MotherDuck MCP server to an AI client.Read only the reference sections needed for the current task.
references/CONNECTION_GUIDE.md for connection-method selection, PG endpoint and native DuckDB examples, token handling, read scaling, attach modes, and common failure modesreferences/RUNTIME_SELECTION.md for the MCP-vs-Python-vs-Node-vs-CLI decision tree, detection commands, install snippets, and the DuckDB version-pinning workflowLoad related skills only for missing capabilities; reuse established context.
motherduck-explore for discovering databases, tables, columns, and shares after the connection is establishedmotherduck-query for executing DuckDB SQL against the connected databasesmotherduck-duckdb-sql for DuckDB syntax and function lookup supportmotherduck-rest-api for control-plane admin operations; those use MOTHERDUCK_ADMIN_TOKEN, which is never used for database connectionsmotherduck-cli for terminal queries and file-oriented Dive/Flight authoringWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
motherduck, duckdb, connection-setup, mcp-server, authentication
npx claudepluginhub motherduckdb/agent-skills --plugin motherduck-skills23 skills in this plugin
/motherduck-build-cfa-appBuild MotherDuck analytics into customer-facing applications with tenant isolation, backend routing, and serving APIs./motherduck-build-dashboardBuild a MotherDuck dashboard as a Dive, choosing the analytical story, metrics, and section queries./motherduck-build-data-pipelineBuild ingestion-to-serving pipelines on MotherDuck, including stage boundaries, transformations, and publication. Use for any recurring ingestion from an API, SaaS app, or database into MotherDuck.Other plugins' skills for the same job