Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

DuckDB

by DuckDB Foundation / DuckDB Labs

Fast SQL on your data files, no server.

Databases and backends

WebsiteGitHub

1. Price

No free tier on the pricing page. As reported on the official pricing page, checked Oct 10, 2026.

duckdb.org

Checked against the maker's official pages, pricing on Oct 10, 2026. Tap a verdict to see its source.How we checkedReport an error

What DuckDB does

DuckDB is a free open-source database that runs inside your app or script, so there is no server to install and no online service or account. You ask questions in SQL straight on spreadsheet-like files such as CSV, Parquet or JSON and get answers in seconds, even on millions of rows. It also runs in a web browser, keeping the data on the user's device.

  • DuckDB is one of 29 APIs in the Databases and backends category on AgentGid.
  • It is one of 26 that can be started for free.
  • 8 of them ship an official MCP server; DuckDB does not.
  • Its official SDK is the 2nd most downloaded in the category (27.4M a week).

What people build with it

Reports from a CSV export

Turn a large sales or sign-up export into totals per product or per month with one query, without loading it into a spreadsheet.

Data files stored online

Query a CSV or Parquet file that sits at a web address or in cloud storage, without downloading it first.

SQL on pandas tables in notebooks

In a Python notebook, run SQL directly on tables you already loaded with pandas or Polars, with no copying or importing.

Analytics inside a web page

Let visitors filter and sum a dataset in their own browser, so the data never goes to your server.

Small database file for a Node.js app

Keep reporting data in one file next to your Node.js backend and query it with SQL, without running a database server.

Data dashboard in Python

Build a small interactive dashboard where each chart is a DuckDB query over your files.

DuckDB popularity

26.3M
SDK downloads a week
+34.1% on the 4-week average
226
public agent repos use its SDK
43.4K
GitHub stars, duckdb/duckdb
SDK downloads per weeknpm @duckdb/node-api, pypi duckdb 26,282,933

SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.

Pricing

Free tier

None

Cheapest plan

No monthly plan

Usage price

—

Plans

Embedded library, no hosted service from DuckDB itself; the MCP server commonly used (mcp-server-motherduck) is published by MotherDuck, a separate company. DuckDB 2.0.0 was released on 2026-10-21. DuckLabs joined AWS in September 2026; the project IP stays with the DuckDB Foundation under MIT (DuckDB FAQ).

As reported on the official pricing page, checked Oct 10, 2026. Prices change: confirm before you buy.

Key and access

How it signs in

None. DuckDB is an embedded library with no account or key; reading private cloud storage uses that storage's own credentials (CREATE SECRET).

Environment variable
none
Safe in browser code
Yes
Card at sign-up

No

Commercial use and your data

DuckDB is MIT-licensed and free, including in paid products; keep the license notice when you ship it. There is no paid edition with extra features.

In a paid app
Yes

MIT; free in paid products, and there is no paid edition.

“All components of DuckDB are available in the free version under this license: there is no "enterprise version" of DuckDB.” source

inside-app-bundle
With conditions

You may ship it inside your app; include the MIT copyright and permission notice.

“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.” source

redistribute-files
With conditions

Allowed under MIT with the notice kept.

“to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” source

client-work
Yes

MIT allows use in work for clients.

“This is why DuckDB is released under the very permissive MIT License and the project's intellectual property is held by the DuckDB Foundation .” source

Errors to handle

AttributeError "Relations no longer have fetchone()"

DuckDB 2.0 removed fetchone() and fetchmany() from relations returned by sql().

Use con.execute(query).fetchone(), or rel.limit(1).fetchall().

Transaction conflict: cannot update a table that has been altered!

Two transactions changed the same rows at the same time.

Run the transaction again.

TransactionException: Current transaction is aborted (please ROLLBACK)

A statement failed inside an open transaction.

Call con.rollback(), then run the statements again.

Out of memory

The query needs more memory than DuckDB is allowed to use, or the system killed it.

Lower memory_limit to 50-60% of RAM, use fewer threads, or SET preserve_insertion_order = false.

Missing extension

The query needs an extension that cannot be loaded automatically.

Run INSTALL and LOAD for the extension named in the error.

Use it from an agent

Our agent check

3 of 6: llms.txt yes, OpenAPI no, SDK yes, MCP no, status page no, AI assistants allowed yes

Checked Nov 13, 2026.

MCP server

Community servers only

npm
npm install @duckdb/node-api
PyPI
pip install duckdb

Alternatives

DuckDB This page

Free (open source)No free tier

ClickHouse Cloud

Pick ClickHouse Cloud when many people or services need one managed analytics database, with compute and storage scaled separately.

from $0.3903 per unitFree tier

Neon

Pick Neon when your app needs a managed Postgres database that many users write to at the same time.

from $0.023 per GB-month ObjectFree tierOfficial MCP

Turso

Pick Turso when you want SQLite-compatible databases in the cloud, including many small per-user databases.

See its pageNo free tier

All databases and backends APIs

Get started

Tell your AI assistant

“Use DuckDB to analyze data/orders.csv: pin duckdb==2.0.0, query the file directly with SQL from Python, use con.execute() when I need fetchone(), and keep the database file on a local disk, not a network share.”

  1. Install the Python package (Python 3.11 or newer), or npm install @duckdb/node-api for Node.js.

    pip install duckdb

    From duckdb.org/docs/2.0/clients/python/overview.html

  2. Run a query; this one uses an in-memory database inside your program.

    import duckdb
    
    duckdb.sql("SELECT 42").show()

    From duckdb.org/docs/2.0/clients/python/overview.html

  3. Query a file by naming it in FROM (example from the official quickstart).

    SELECT product, sum(quantity * price) AS revenue
    FROM read_csv('sales.csv')
    GROUP BY product
    ORDER BY revenue DESC;

    From duckdb.org/docs/2.0/quickstart.html

First request

DuckDB is a library, not a hosted API; this is the smallest official example (CLI quickstart, run on a three-line sales.csv). The same SQL works from Python with duckdb.sql(...).

SELECT product, sum(quantity * price) AS revenue
FROM read_csv('sales.csv')
GROUP BY product
ORDER BY revenue DESC;

Mistakes to avoid

Calling fetchone() or fetchmany() on the result of duckdb.sql() or con.sql() in DuckDB 2.0.
Use con.execute(query).fetchone(), or rel.limit(1).fetchall() on a relation.

In 2.0 a relation keeps no result between calls; our demo hit "Relations no longer have fetchone()" before switching to con.execute().

Running CREATE TABLE or INSERT through duckdb.sql() and expecting it to run once.
Use duckdb.execute() (or con.execute()) for statements that change data.

duckdb.sql() returns a lazy relation that runs again each time it is read.

Opening the same .duckdb file for writing from two processes, for example two web server workers.
Write from one process and open others read-only, or use the Quack protocol or DuckLake for several writers.

Read-write mode allows one process; others get a lock error.

Keeping a read-write database file on a network drive (NAS) or a shared folder.
Keep the file on a local disk (SSD) of the machine that writes it.

The DuckDB team strongly advises against it because of slow, hard-to-debug failures.

Writing a database with DuckDB 2.0 and opening it with an older DuckDB 1.x tool.
Upgrade every tool that opens the file to 2.0, or write it with an explicit older storage version.

Versions before 2.0 cannot read 2.0 database files by default.

Questions

Do I need to run a database server?

No. DuckDB runs inside your program; there is no server software to install or maintain.

Is it only an in-memory database?

No. It can work in memory, and it can also save everything in a single database file on disk.

Can several programs write to the same file?

Not directly. One process writes; for several writers the docs point to the Quack remote protocol or the DuckLake format.

Will an older DuckDB open a file made by 2.0?

Not by default. Versions before 2.0 cannot read 2.0 files unless they were written with an explicit storage version.