DuckDB
by DuckDB Foundation / DuckDB Labs
Fast SQL on your data files, no server.
1. Price
No free tier on the pricing page. As reported on the official pricing page, checked Oct 10, 2026.
duckdb.org2. Commercial use
“All components of DuckDB are available in the free version under this license: there is no "enterprise version" of DuckDB.”
MIT; free in paid products, and there is no paid edition.
duckdb.org/faq3. Key & sign-up
None. DuckDB is an embedded library with no account or key; reading private cloud storage uses that storage's own credentials (CREATE SECRET).
duckdb.org/docs/2.0/clients/python/overview.htmlChecked 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
SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.
Pricing
None
No monthly plan
—
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
None. DuckDB is an embedded library with no account or key; reading private cloud storage uses that storage's own credentials (CREATE SECRET).
noneNo
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.
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
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
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
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
DuckDB 2.0 removed fetchone() and fetchmany() from relations returned by sql().
Use con.execute(query).fetchone(), or rel.limit(1).fetchall().
Two transactions changed the same rows at the same time.
Run the transaction again.
A statement failed inside an open transaction.
Call con.rollback(), then run the statements again.
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.
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
3 of 6: llms.txt yes, OpenAPI no, SDK yes, MCP no, status page no, AI assistants allowed yes
Checked Nov 13, 2026.
Community servers only
npm install @duckdb/node-apipip install duckdbAlternatives
DuckDB This page
Pick ClickHouse Cloud when many people or services need one managed analytics database, with compute and storage scaled separately.
Pick Neon when your app needs a managed Postgres database that many users write to at the same time.
Pick Turso when you want SQLite-compatible databases in the cloud, including many small per-user databases.
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.”
Install the Python package (Python 3.11 or newer), or npm install @duckdb/node-api for Node.js.
pip install duckdbRun a query; this one uses an in-memory database inside your program.
import duckdb duckdb.sql("SELECT 42").show()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;
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;The result contains Notebook with revenue of 15.00 and Pencil with revenue of 4.50.Mistakes to avoid
In 2.0 a relation keeps no result between calls; our demo hit "Relations no longer have fetchone()" before switching to con.execute().
duckdb.sql() returns a lazy relation that runs again each time it is read.
Read-write mode allows one process; others get a lock error.
The DuckDB team strongly advises against it because of slow, hard-to-debug failures.
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.