FormingMCP serverclaude-codecodexgemini-clicursorpublished fresh until

Let your agent query local CSV, Parquet and JSON files with DuckDB: skills plugin or MCP server

Summary As of November 2026, there are two DuckDB-based ways to stop agents writing throwaway pandas scripts to look at data files: DuckDB's own duckdb-skills plugin for Claude Code (MIT), which drives the DuckDB CLI, and MotherDuck's DuckDB MCP server (MIT, v1.1.1) for any MCP client. Both run on your machine.

Not for querying a data warehouse such as Snowflake or BigQuery; see data-analyst-plugin-sql-warehouse

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
AMCP server · v1.1.0+wwfix.2DuckDB / MotherDuck local MCP server
How you use itYour agent calls its tools
What it can doinstalls software · writes files · network · secrets access · runs shell
What's inside
AMCP server · v1.1.0+wwfix.2DuckDB / MotherDuck local MCP server
How you use it
Your agent calls its tools
What it can do
installs software · writes files · network · secrets access · runs shell
What's inside

What this thread does

Why

On 16 September 2026 the DuckDB team pointed out that agents usually inspect a data file by writing a small Python script, running it and reading the output. That works, but it is slow and not always accurate. DuckDB reads CSV, Parquet, JSON, Excel and more directly with SQL, so the agent can ask the question in one query.

This thread is about files and DuckDB databases on your own machine. For a company warehouse (BigQuery, Snowflake) see data-analyst-plugin-sql-warehouse; for an application's Postgres database see postgres-database-access-for-agents.

Option 1: duckdb-skills plugin (Claude Code)

As of November 2026, duckdb-skills (v0.2.5, last changed November 2026) documents six skills that call the DuckDB CLI: attach-db, query, read-file, duckdb-docs, read-memories and install-duckdb (the repo's skills folder also holds convert-file, s3-explore and spatial, which the README does not describe). Skills share one state.sql per project, so a database attached once is available to every skill. The DuckDB blog post explains the setup.

Install in Claude Code by adding the repo as a marketplace (/plugin marketplace add duckdb/duckdb-skills), then /plugin install duckdb-skills@duckdb-skills; the README says a listing in Anthropic's official marketplace is still coming soon. You need the DuckDB CLI: brew install duckdb on macOS, winget install DuckDB.cli on Windows, or the release binary from duckdb.org on Linux.

WhatWorks does not pin this plugin as a package: its install-duckdb skill suggests DuckDB's piped install script on Linux, which our safety scan does not accept. Install the CLI yourself first.

Things to know: read-memories searches your past Claude Code session logs; read-file can read S3, GCS and Azure with your local cloud credentials; the authors tested macOS and Linux, not Windows.

Option 2: DuckDB / MotherDuck MCP server (any MCP client)

MotherDuck's local MCP server gives any MCP client (Claude Code, Codex, Gemini CLI, Cursor, VS Code) a SQL tool backed by DuckDB. Start it in memory to query files ad hoc, or point it at a .duckdb file, which it opens read-only by default. Results are capped at 1,024 rows and 50,000 characters unless you change the limits. A MotherDuck cloud account is optional. The pinned package below installs this option.

Side by side

duckdb-skillsDuckDB MCP server
Works inClaude CodeAny MCP client
NeedsDuckDB CLIuv (installs DuckDB's Python package)
How the agent runs queriesShell commands via the CLISQL and catalog tools
Write accessWhatever the CLI command doesIn-memory mode is read-write; file mode read-only by default
ExtrasDocs search, session-log search, spatial, format conversionOptional database switching, MotherDuck

Caveats

  • Both can read any file your user account can read. Check queries that write files (COPY ... TO).
  • No trial reports on WhatWorks yet.

Started from a post by @duckdb, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in claude code

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Let your agent query local CSV, Parquet and JSON files with DuckDB: skills plugin or MCP server
Summary: As of November 2026, there are two DuckDB-based ways to stop agents writing throwaway pandas scripts to look at data files: DuckDB's own duckdb-skills plugin for Claude Code (MIT), which drives the DuckDB CLI, and MotherDuck's DuckDB MCP server (MIT, v1.1.1) for any MCP client. Both run on your machine.

## Options
- A · DuckDB / MotherDuck local MCP server · early, no verdict yet · installs software · writes files · network · secrets access · runs shell
Copy for agent
get the whatworks thread duckdb-local-data-files-for-agents and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread duckdb-local-data-files-for-agents

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · DuckDB / MotherDuck local MCP server

MotherDuck's MIT-licensed local MCP server for DuckDB: run SQL over local CSV, Parquet and JSON files, DuckDB database files (read-only by default), S3 or MotherDuck. Results are capped at 1,024 rows by default. Not for: writing to databases, large result sets (default cap 1,024 rows) or Postgres in production; see postgres-database-access-for-agents.

Format
MCP server
Source
github:motherduckdb/mcp-server-motherduck
Pinned
v1.1.0+wwfix.2 · 41acb581d9bc
Content hash
41acb581d9bc04e4
Audit
scan warned
Can do
installs software · writes files · network · secrets access · runs shell
Works with
claude-code · codex · gemini-cli · cursor
Check
The duckdb server is configured at the pinned version (project .mcp.json, or the user config of Claude Code or Codex)
Author
@motherduckdb
Kudos
0
Are you @motherduckdb? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package duckdb-motherduck-mcp-server before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package duckdb-motherduck-mcp-server
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp