HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
apecloud
myduckserver
Go2024–2024
apecloud / myduckserver

myduckserver

Unified MySQL, Postgres & FlightSQL Server, Powered by DuckDB.

3Distinct people
6Mentions
0Explicit recommenders
593GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Unified MySQL, Postgres & FlightSQL Server, Powered by DuckDB.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 1:49:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by day6 dated mentions

Observed mentions: 2024-11-08 11:27:38 UTC to 2024-12-03 14:07:16 UTC.

0122024-11-08 00:00:00 UTC to 2024-11-09 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsNov 82024-11-09 00:00:00 UTC to 2024-11-10 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-10 00:00:00 UTC to 2024-11-11 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-11 00:00:00 UTC to 2024-11-12 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-12 00:00:00 UTC to 2024-11-13 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-13 00:00:00 UTC to 2024-11-14 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-14 00:00:00 UTC to 2024-11-15 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-15 00:00:00 UTC to 2024-11-16 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-16 00:00:00 UTC to 2024-11-17 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2024-11-17 00:00:00 UTC to 2024-11-18 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-18 00:00:00 UTC to 2024-11-19 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-19 00:00:00 UTC to 2024-11-20 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-20 00:00:00 UTC to 2024-11-21 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsNov 202024-11-21 00:00:00 UTC to 2024-11-22 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-22 00:00:00 UTC to 2024-11-23 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-23 00:00:00 UTC to 2024-11-24 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-24 00:00:00 UTC to 2024-11-25 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-25 00:00:00 UTC to 2024-11-26 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-26 00:00:00 UTC to 2024-11-27 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-27 00:00:00 UTC to 2024-11-28 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-28 00:00:00 UTC to 2024-11-29 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2024-11-29 00:00:00 UTC to 2024-11-30 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2024-11-30 00:00:00 UTC to 2024-12-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-01 00:00:00 UTC to 2024-12-02 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-02 00:00:00 UTC to 2024-12-03 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-03 00:00:00 UTC to 2024-12-04 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsDec 3

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Nov 82024-11-08 00:00:00 UTC2024-11-09 00:00:00 UTC110
Nov 92024-11-09 00:00:00 UTC2024-11-10 00:00:00 UTC000
Nov 102024-11-10 00:00:00 UTC2024-11-11 00:00:00 UTC000
Nov 112024-11-11 00:00:00 UTC2024-11-12 00:00:00 UTC000
Nov 122024-11-12 00:00:00 UTC2024-11-13 00:00:00 UTC000
Nov 132024-11-13 00:00:00 UTC2024-11-14 00:00:00 UTC000
Nov 142024-11-14 00:00:00 UTC2024-11-15 00:00:00 UTC000
Nov 152024-11-15 00:00:00 UTC2024-11-16 00:00:00 UTC000
Nov 162024-11-16 00:00:00 UTC2024-11-17 00:00:00 UTC110
Nov 172024-11-17 00:00:00 UTC2024-11-18 00:00:00 UTC000
Nov 182024-11-18 00:00:00 UTC2024-11-19 00:00:00 UTC000
Nov 192024-11-19 00:00:00 UTC2024-11-20 00:00:00 UTC000
Nov 202024-11-20 00:00:00 UTC2024-11-21 00:00:00 UTC000
Nov 212024-11-21 00:00:00 UTC2024-11-22 00:00:00 UTC000
Nov 222024-11-22 00:00:00 UTC2024-11-23 00:00:00 UTC000
Nov 232024-11-23 00:00:00 UTC2024-11-24 00:00:00 UTC000
Nov 242024-11-24 00:00:00 UTC2024-11-25 00:00:00 UTC000
Nov 252024-11-25 00:00:00 UTC2024-11-26 00:00:00 UTC000
Nov 262024-11-26 00:00:00 UTC2024-11-27 00:00:00 UTC000
Nov 272024-11-27 00:00:00 UTC2024-11-28 00:00:00 UTC000
Nov 282024-11-28 00:00:00 UTC2024-11-29 00:00:00 UTC110
Nov 292024-11-29 00:00:00 UTC2024-11-30 00:00:00 UTC202
Nov 302024-11-30 00:00:00 UTC2024-12-01 00:00:00 UTC000
Dec 12024-12-01 00:00:00 UTC2024-12-02 00:00:00 UTC000
Dec 22024-12-02 00:00:00 UTC2024-12-03 00:00:00 UTC000
Dec 32024-12-03 00:00:00 UTC2024-12-04 00:00:00 UTC101

What Hacker News says

6 sources
DuckDB is a more convenient and performant tool for analyzing large CSV/JSON files. Shameless plug: if you’re interested in combining DuckDB with Claude using the recently announced Model Context Protocol (MCP), check out the MyDuck Server project (https://github.com/apecloud/myduckserver) that I’m working on. You can follow this guide https://github.com/apecloud/myduckserver/blob/main/docs/tuto... to get started. The guide includes a conversation history showcasing how the free-tier Claude Haiku model successfully analyzed the Our World in Data Energy dataset. MyDuck Server adds a Postgres frontend for DuckDB, allowing seamless interaction with DuckDB via the official Postgres MCP server.
In Ask questions of SQLite databases and CSV/JSON files in your terminal
*Update from the Authors:* We have successfully tested this project with the official Model Context Protocol (MCP) server for Postgres. For those interested in integrating this project with LLMs, you can find the guide here: https://github.com/apecloud/myduckserver/blob/main/docs/tuto... We were pleasantly surprised that the integration worked seamlessly on our first attempt. Moreover, we observed some fascinating behavior: DuckDB's clear and suggestive error messages proved incredibly helpful for the model. During our testing, the free-tier Claude Haiku model initially hallucinated table and column names, but it impressively corrected them based on DuckDB's suggestions. This integration highlights the conveniences offered by this project: - DuckDB’s native SQL support: We can create a table directly from a CSV URL without manually determ
Read the rest
ining the schema. - Standard Postgres protocol support: The official Postgres MCP server works out-of-the-box. We’d love to hear your thoughts and questions about LLM + MyDuck integration!
In Show HN: MyDuck Server – Supercharge MySQL and Postgres Analytics with DuckDB
Great question! Improving the speed of writing updates to DuckDB has been a significant focus for us. Early in the project, we identified that DuckDB is quite slow for single-row writes, as discussed in this issue: https://github.com/apecloud/myduckserver/issues/55 To address this, we implemented an Arrow-based columnar buffer that accumulates updates from the primary server. This buffer is flushed into DuckDB at fixed intervals (currently every 200ms) or when it exceeds a certain size threshold. This approach significantly reduces DuckDB's write overhead. Additionally, we developed dedicated replication message parsers that write directly to the Arrow buffer, minimizing allocations. A community contributor has validated & enhanced the effectiveness of our approach: https://github.com/apecloud/myduckserver/pull/207 We plan to publish benc
Read the rest
hmarks on replication latency and query performance in the coming weeks. Stay tuned!
In Show HN: MyDuck Server – Supercharge MySQL and Postgres Analytics with DuckDB
fanyang01·Nov 28, 2024Submission

Show HN: MyDuck Server – Supercharge MySQL and Postgres Analytics with DuckDB

Hello HN! We're excited to announce MyDuck Server, an open-source project that seamlessly integrates the analytical power of DuckDB with your existing MySQL & Postgres databases. *Backstory* Currently, there are no fully satisfactory open-source OLAP solutions for MySQL & Postgres. In the MySQL ecosystem, HeatWave offers close integration, but it's a proprietary, commercial product from Oracle. The Postgres community has seen promising DuckDB-based extensions emerge, including the official pg_duckdb. However, extensions can introduce isolation concerns in mission-critical environments. Consequently, many organizations resort to setting up complex and costly data movement pipelines using tools like Debezium, Flink, or other commercial solutions to replicate data from MySQL & Postgres to OLAP systems (e.g., Snowflake, BigQuery, ClickHouse)
Read the rest
or Lakehouses (e.g., Delta Lake + Spark). This approach introduces significant operational overhead and expense. Another emerging strategy is the zero-ETL approach, increasingly advocated by cloud providers. This model simplifies data integration by allowing the cloud provider to manage ETL pipelines, while necessitating reliance on specific cloud ecosystems and services. *Key features* MyDuck Server offers a real-time analytical replica that leverages DuckDB's native columnar storage and processing capabilities. It operates as a separate server, ensuring isolation and minimizing impact on your primary database. Key features include: - Easy Zero-ETL: Built-in real-time replication from MySQL & Postgres with no complex pipelines to manage. It feels like a standard MySQL replica or Postgres standby. With the Docker image, passing a connection string is enough. - MySQL & Postgres Protocol Compatibility: We take this seriously and are working to make this project integrate well with the existing ecosystem around MySQL & Postgres. Currently, it is already possible to connect to MyDuck with standard MySQL & PostgreSQL clients in many programming languages. - HTAP Support: A standard database proxy can be deployed in front of a MySQL/Postgres primary and its MyDuck replica to route write operations to the primary and read operations to the replica. It just works. - DuckDB SQL & Columnar I/O over Postgres Protocol: It's unnecessary to restrict ourselves to MySQL/Postgres's SQL expressiveness and row-oriented data transfer. The Postgres port accepts all DuckDB-valid SQL queries, and you can retrieve query results in columnar format via `COPY (SELECT ...) TO STDOUT (FORMAT parquet/arrow)`. - Standalone Mode: It does not need to be run as a replica. It can also act as a primary server that brings DuckDB into server mode and accepts updates from multiple connections, breaking DuckDB's single-process limitation. *Relevant Previous HN Threads* - pg_duckdb [1] (https://news.ycombinator.com/item?id=41275751) is the official Postgres extension for DuckDB. It uses DuckDB as an execution engine to accelerate analytical queries by scanning Postgres tables directly. - pg_mooncake [2] (https://news.ycombinator.com/item?id=41998247) is a Postgres extension that adds columnstore tables for PG. It uses pg_duckdb under the hood but stores data in Lakehouse formats (Iceberg & Delta Lake). - BemiDB [3] (https://news.ycombinator.com/item?id=42078067) is also a DuckDB-based Postgres replica. Unlike us, they focus on storing data in Lakehouse format. We believe MyDuck Server offers a compelling solution for those seeking high-performance analytics on their MySQL & Postgres data without the complexities and costs of traditional approaches. We're eager to hear your feedback and answer any questions you might have. Let me know what you think! [0] https://github.com/apecloud/myduckserver [1] https://github.com/duckdb/pg_duckdb [2] https://github.com/Mooncake-Labs/pg_mooncake [3] https://github.com/BemiHQ/BemiDB
32 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.