DocsGPT icon indicating copy to clipboard operation
DocsGPT copied to clipboard

🚀 Feature: MotherDuck MCP connector preset

Open dartpain opened this issue 2 months ago • 6 comments

🔖 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:

  1. 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-line description
    • icon: motherduck, category: database
    • mcp_url: https://api.motherduck.com/mcp, auth_kind: mcp_oauth
    • capabilities: [read], or [read, write] if the server exposes tools that change things
    • docs_url: https://motherduck.com/docs/sql-reference/mcp/
  2. Add the icon at frontend/src/assets/connectors/motherduck.svg (use MotherDuck's official brand mark).
  3. Add the description key settings.connectors.descriptions.mcp_motherduck to all seven locale files in frontend/src/locale/ (de en es jp ru zh zh-TW).
  4. Add MotherDuck to the preset lists in docs/content/Sources/Connectors/index.mdx (the "MCP presets" section) and docs/content/Tools/mcp-tools.mdx.
  5. 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_id MotherDuck 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/connectors and cd frontend && npm run lint pass.

🔄️ 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.

dartpain avatar Oct 03 '26 08:10 dartpain

Can i work on this issue?

Mitshah2406 avatar Oct 04 '26 17:10 Mitshah2406

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

arc53-machine avatar Oct 04 '26 17:10 arc53-machine

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 avatar Oct 11 '26 12:10 harshit-exe-dev

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

arc53-machine avatar Oct 11 '26 12:10 arc53-machine

Hi @dartpain, I would love to work on this! Please assign it to me.

satanic47 avatar Oct 12 '26 00:10 satanic47

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

arc53-machine avatar Oct 12 '26 00:10 arc53-machine