FerretDB accepts MongoDB 5.0+ wire protocol traffic, translates queries to SQL, and stores data in PostgreSQL using the DocumentDB extension. Applications can keep using MongoDB drivers and many existing tools.
Overview
FerretDB is an open-source document database aimed at teams who want MongoDB-style development without MongoDB's current licensing limits. It sits between your application and PostgreSQL: clients speak the MongoDB protocol while the engine runs relational SQL underneath.
The proxy targets compatibility with MongoDB drivers and widely used MongoDB tooling. In many setups it can act as a drop-in stand-in for MongoDB 5.0 or newer, with ongoing work to close gaps in command support and behavior.
You can try it quickly in a container that bundles FerretDB, PostgreSQL with the DocumentDB extension, and MongoDB Shell for local experiments. Production-oriented paths include separate installation guides, published binaries and OS packages for Linux, and a Go package if you want to embed FerretDB inside another program.
Managed hosting via FerretDB Cloud at cloud providers is offered separately; self-managed deployment remains a first-class option for running the database on your own hardware or infrastructure.
Key features
- MongoDB 5.0+ wire protocol proxy
- SQL translation for document queries
- PostgreSQL with DocumentDB backend
- MongoDB driver compatibility
- Popular MongoDB tool compatibility
- Docker quickstart stack
- Linux binaries and packages
- Embeddable Go library
Use cases
- Open-source document database for new apps
- Migrating apps that already use MongoDB drivers
- Local MongoDB-protocol testing with PostgreSQL storage
- Avoiding SSPL-licensed MongoDB deployments
- Embedding a MongoDB-protocol layer in Go services
Does the same job as
FerretDB doesn't name these products itself, but its own description shows it does the same job.