mcp-server-motherduck logo - MCP Servers AI tool

mcp-server-motherduck

MCP ServerFreemium

mcp-server-motherduck connects an MCP-compatible AI assistant to DuckDB databases, including local files, in-memory databases, S3-hosted databases, and MotherDuck. It exposes SQL query execution and tools for listing databases, tables, and columns.

Last updated:

  • Official. Built and maintained by the company or project behind the service, so usually kept in step with it. Not audited by us.

  • Community. Built and maintained by an independent developer or group, not by the company behind the service. The company has not reviewed it, and updates depend on its author.

About mcp-server-motherduck

mcp-server-motherduck is an open-source MCP server that connects an AI assistant to DuckDB databases and the MotherDuck cloud service. Through the server, an assistant can run DuckDB-dialect SQL and inspect database structure, including databases, tables, and columns. It can connect to a local DuckDB file, an in-memory database, an S3-hosted database, or MotherDuck, so the assistant can work with the data available through the configured connection.

The server runs locally or in a self-hosted environment. Its access depends on the connection paths and credentials supplied to it, and its write and database-switching capabilities are disabled unless explicitly enabled.

What can mcp-server-motherduck do?

The server exposes a query tool for executing DuckDB-dialect SQL. It also provides tools for listing databases, tables, and columns, giving an assistant a way to inspect available database structure before working with data. Database switching is supported when enabled, letting the server move among configured connection paths.

  • Execute DuckDB-dialect SQL queries against the configured database.
  • List databases, tables, and columns to inspect database structure.
  • Connect to local DuckDB files and in-memory databases.
  • Connect to S3-hosted databases or MotherDuck.
  • Switch among configured database paths when database switching is enabled.

Query results have default row and character limits, and those limits can be configured. The server’s query tool is therefore suited to retrieving results within the configured bounds rather than assuming every result will be returned in full.

How mcp-server-motherduck connects and authenticates

mcp-server-motherduck runs locally or self-hosted and supports stdio or HTTP transport. For MotherDuck, it authenticates with an access token supplied through a command-line option or an environment variable. S3 connections can use supplied AWS credentials. The repository documents setup for Claude Desktop, Claude Code, Codex CLI, Gemini CLI, Cursor, and Kiro, and states that any MCP-compatible client can use the server. It does not describe a hosted server service for this project.

Who is mcp-server-motherduck best for?

Choose mcp-server-motherduck if you want an MCP-compatible assistant to query DuckDB data or inspect database structure through a server you run or self-host. It supports local and in-memory work as well as connections to S3-hosted databases and MotherDuck, making it relevant to people working across those configured data sources. For MotherDuck connections, you need a MotherDuck access token and a MotherDuck account or plan that provides the service access you need. The server itself is MIT-licensed; MotherDuck service pricing and usage charges are separate.

What mcp-server-motherduck can access and change

The server can access the database path and external resources configured for it. Access to S3 depends on the AWS credentials supplied, and the repository documents a SaaS mode that restricts local access. The server can execute queries and inspect database metadata. Write access is disabled by default; enabling it permits SQL writes, which can change database contents. The repository describes unrestricted development mode as having no guardrails. Database switching is also disabled by default; when enabled, it can switch to another configured local, S3, or MotherDuck connection. Query results are subject to configurable row and character limits.

Alternatives to mcp-server-motherduck

PostgreSQL MCP is a related option for working with PostgreSQL databases, while SQLite MCP is another database-focused server for SQLite. Supabase MCP Server is another option when the service you want to connect to is Supabase. These alternatives differ in the database or service they target; check each listing for its own connection methods and capabilities.

Key Features

Run DuckDB-dialect SQL queries and list databases, tables, and columns.

Connect to local DuckDB files, in-memory databases, S3-hosted databases, or MotherDuck.

Run locally or self-host, using stdio or HTTP transport.

Use a MotherDuck access token; S3 connections can use supplied AWS credentials.

Use with documented clients including Claude Desktop, Claude Code, Codex CLI, Gemini CLI, Cursor, and Kiro.

Switch databases when explicitly enabled; switching is disabled by default.

Write access is disabled by default and must be enabled.

Query results have default row and character limits that can be configured.

Before you installSecurity checklist for MCP servers

An MCP server runs code and gives your AI assistant access to files, accounts or data. A few minutes of checking is worth it.

  1. Check the source. Make sure the repository belongs to the vendor or author you expect, that the vendor's own documentation links to it, and that it is actively maintained. Beware of lookalike names.
  2. Read what it can do. Look at the tools the server exposes and the permissions or scopes it asks for. Start with read-only access where the server allows it.
  3. Use the least access that works. Give it a dedicated API key or a narrowly scoped token, ideally on a test project or sandbox, not your production credentials.
  4. Pin versions and review updates. Install a specific version, read changes before upgrading, and do not run copied commands you do not understand.
  5. Treat what it returns as untrusted. Documents, web pages and tool results can contain text that tries to steer your AI assistant. Keep confirmation switched on for actions that write, delete, send or spend.
  6. Know where your data goes. Find out whether the server runs on your machine or is hosted, and what it sends to the vendor or to third parties.
  7. Keep a way back. Know how to revoke the key and remove the server from your client's configuration.

This page is general information, not security or legal advice, and listing a server is not an endorsement or a security review. We do not create, host or control MCP servers, and listing details such as commands, permissions or pricing can be out of date, so check the official source. You install and use MCP servers at your own risk. See the section on third-party products in our Terms of Service.

Pricing Plans

Free (open source)

Free

  • The server is MIT-licensed and has no separate server fee stated in the repository.
  • Connect to MotherDuck with an access token; MotherDuck service charges are separate.
  • Run queries and inspect database, table, and column metadata.
  • Suitable for users who can run and configure the server themselves.

MotherDuck Lite

Starting from $0

  • MotherDuck service plan, not a charge for the MCP server.
  • Includes 10 GB of free storage and 10 hrs of Pulse compute per month.
  • Usage-based compute and storage charges may apply.
  • Suitable for users connecting the server to MotherDuck within the plan’s included allowances.

Pricing information last updated: October 27, 2026

FAQs

Does the MCP server have a separate fee?

The repository describes the server as MIT-licensed and does not state a separate server fee. MotherDuck service plans and usage charges are separate.

Which databases can it connect to?

It can connect to local DuckDB files, in-memory databases, S3-hosted databases, and MotherDuck.

How does it authenticate to MotherDuck?

It uses a MotherDuck access token supplied through a command-line option or environment variable. S3 connections can use AWS credentials.

Can it modify database contents?

Write access is disabled by default and must be enabled. When enabled, SQL writes are permitted; the repository describes unrestricted development mode as having no guardrails.

Which clients can use the server?

The repository documents setup for Claude Desktop, Claude Code, Codex CLI, Gemini CLI, Cursor, and Kiro, and says any MCP-compatible client can use it.