🚀 Feature: MotherDuck MCP connector preset
🔖 Feature description
Add MotherDuck to the Connectors catalog as a remote MCP preset, so agents can work with a user's MotherDuck (DuckDB in the cloud) databases (browse schemas, run SQL, use shared datasets) after one OAuth sign-in.
MotherDuck runs a hosted MCP server at https://api.motherduck.com/mcp. It answers an unauthenticated request with a 401 that points to OAuth metadata, and its authorization server supports dynamic client registration (a registration with a non-localhost redirect URI was accepted), which is exactly what the preset list requires (see the inclusion rules at the top of docsgpt/connectors/presets/mcp.yaml). Users don't need to register an app or paste an API key.
🎤 Why is this feature needed?
Analysts want to ask "which 10 products grew fastest last quarter?" and get an answer backed by a real SQL query, not a guess. MotherDuck runs that SQL for the agent. Today they would have to set it up as a custom MCP server by hand.
✌️ How do you aim to achieve this?
This is a small, self-contained change. No Python code is needed beyond the catalog entry:
- Add an entry to
docsgpt/connectors/presets/mcp.yaml, following the existing ones (e.g. Sentry or Stripe):key: mcp:motherduck,name: MotherDuck, a one-linedescriptionicon: motherduck,category: databasemcp_url: https://api.motherduck.com/mcp,auth_kind: mcp_oauthcapabilities:[read], or[read, write]if the server exposes tools that change thingsdocs_url: https://motherduck.com/docs/sql-reference/mcp/
- Add the icon at
frontend/src/assets/connectors/motherduck.svg(use MotherDuck's official brand mark). - Add the description key
settings.connectors.descriptions.mcp_motherduckto all seven locale files infrontend/src/locale/(de en es jp ru zh zh-TW). - Add MotherDuck to the preset lists in
docs/content/Sources/Connectors/index.mdx(the "MCP presets" section) anddocs/content/Tools/mcp-tools.mdx. - If a test lists or validates the presets (see
tests/connectors/test_catalog.py), update it.
Before choosing capabilities, sign in once and look at the server's tools/list to see which tools read and which ones write.
Notes for MotherDuck:
- The server can write as well as read, so use
capabilities: [read, write]. Organizations can restrict it to read-only on MotherDuck's side. - The
client_idMotherDuck issues during registration is a long JWT. Check that DocsGPT stores and reuses it without truncation (the sign-in should survive a reconnect). - The free plan is enough to test. MotherDuck's sample databases (e.g.
sample_data) make a quick demo.
Other presets are being added in parallel this month and touch the same YAML and locale files, so expect to rebase on main before merge.
Acceptance criteria
- MotherDuck appears on the Connectors page with its icon and description in every locale.
- Connecting it opens MotherDuck's OAuth sign-in, and the connection then works as an agent tool.
ruff check .,python -m pytest tests/connectorsandcd frontend && npm run lintpass.
🔄️ Additional Information
Please attach a screenshot of the MotherDuck card on the Connectors page and of an agent using one of its tools. UI work follows frontend/DESIGN.md. Vercel (#2874) is a similar issue, so it's a useful reference.
Can i work on this issue?
@Mitshah2406, PR #2945 already addresses this issue, so I haven't assigned it. You can help by reviewing or testing that PR.
Automated triage. A maintainer will follow up.
Hi, I'd like to take this one. Could you please assign it to me? I'll follow the acceptance criteria in the issue: YAML preset entry, icon, the seven locale files, docs updates in both mdx files, test updates if needed, and screenshots of the connector card plus an agent using one of its tools.
@harshit-exe-dev, PR #2945 already addresses this issue, so I haven't assigned it. You can help by reviewing or testing that PR.
Automated triage. A maintainer will follow up.
Hi @dartpain, I would love to work on this! Please assign it to me.
@satanic47, PR #2945 already addresses this issue, and #3061 is also open, so I haven't assigned it. You can help by reviewing or testing those PRs.
Automated triage. A maintainer will follow up.