Mason

Open-source Postgres read replica for analytics and AI agents

Visit website →

About

Mason is a lightweight drop-in Postgres read replica powered by DuckDB's columnar engine. Same SQL, same answers, but hundreds of times faster for analytical queries over millions of rows.

Built for AI agents: one user per agent, role-based access control limiting tables, columns and rows each can read, and native MCP support for connecting Claude Code and ChatGPT directly to your data with full audit logging of every query.

Runs as a single Node.js process anywhere. Sync on demand, by polling at intervals you set, or by logical replication for real-time updates. Open source under Apache-2.0.

AI-assisted draft, human-reviewed before publishing — see how we choose & review tools.

Why we picked it

A rare tool that bridges data infrastructure and AI agents pragmatically. Instead of building a custom layer, Mason gives your agents secure, fast data access over the Postgres protocol you already know.