About FerretDB
FerretDB is an open source alternative to MongoDB. It works as a proxy: applications connect with a regular MongoDB driver, FerretDB converts MongoDB 5.0+ wire protocol queries into SQL, and PostgreSQL with the DocumentDB extension stores the data. The project is written in Go and licensed under Apache 2.0.
The maintainers say it is compatible with MongoDB drivers and popular MongoDB tools, and works as a drop-in replacement for MongoDB 5.0+ in many cases. They explain the project by pointing to MongoDB's move to the SSPL licence, and argue that most users do not need MongoDB's advanced features but do want an open source document database.
A quickstart Docker image bundles FerretDB, PostgreSQL with DocumentDB and MongoDB Shell for experiments, though it loses data on shutdown. Production installs use the provided binaries, packages or Docker images, and a Go package can embed FerretDB in an application. Managed FerretDB is offered by FerretDB Cloud, Civo, Tembo, Elestio and Cozystack.
Key features
- Converts MongoDB wire protocol queries to SQL
- Works with MongoDB drivers and tools
- Drop-in replacement for MongoDB 5.0+ in many cases
- Evaluation container with PostgreSQL and MongoDB Shell
- Embeddable as a Go library package
- Managed hosting from several cloud providers
Good fit for
- Replacing MongoDB under an existing app
- Local testing with MongoDB clients
- Embedding a document database in Go
FerretDB: questions and answers
- What is FerretDB used for?
- FerretDB is an open source proxy that lets MongoDB drivers talk to PostgreSQL with the DocumentDB extension, as an alternative to MongoDB. It is a good fit for replacing MongoDB under an existing app, local testing with MongoDB clients and embedding a document database in Go.
- Is FerretDB open source?
- Yes. FerretDB is open source under the Apache-2.0 licence. Its source code is on GitHub at FerretDB/FerretDB and is written mainly in Go.
- Is FerretDB free?
- Yes. FerretDB is open source, so the software itself is free to use. A managed cloud version is also available.
- Can I self-host FerretDB?
- Yes. FerretDB can be self-hosted on your own server or infrastructure.
- What is FerretDB an alternative to?
- FerretDB is an open-source alternative to MongoDB Atlas, Couchbase Capella, Google Cloud Firestore and Amazon DocumentDB. Other open-source alternatives to MongoDB Atlas include SurrealDB, MongoDB and RavenDB.
- Is FerretDB actively maintained?
- The most recent commit to FerretDB was on 5 June 2026, and the latest release is v2.7.0, published on 10 November 2025. The project has 11k stars on GitHub, with 22 added in the last 30 days.
Open-source alternatives to FerretDB
See all
SurrealDB
Databases
A scalable, distributed, collaborative, document-graph database, for the realtime web
OSSvs MongoDB Atlas★ 33k
MongoDB
Databases
The MongoDB Database
OSSvs Amazon DynamoDB★ 29k
RavenDB
Databases
ACID Document Database
OSSvs MongoDB Atlas★ 4k
Apache CouchDB
Databases
Seamless multi-primary syncing database with an intuitive HTTP/JSON API, designed for reli
Apache-2.0vs Amazon DynamoDB★ 7k
ArangoDB
Databases
🥑 ArangoDB is a native multi-model database with flexible data models for documents, grap
OSSvs Azure Cosmos DB★ 14k
YugabyteDB
Databases
YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
OSSvs Google Cloud Spanner★ 11k
SaaS alternatives to FerretDB
See all
MongoDB Atlas
Databases
Managed MongoDB service across AWS, Azure and Google Cloud
SaaS
Couchbase Capella
Databases
Managed document database service from Couchbase with SQL++ queries
SaaS
Google Cloud Firestore
Databases
Serverless NoSQL document database with real-time sync for web and mobile apps
SaaS
Amazon DocumentDB
Databases
Managed document database on AWS with a MongoDB-compatible API
SaaS
AlloyDB for PostgreSQL
Databases
PostgreSQL-compatible managed database service on Google Cloud
SaaS
IBM Cloudant
Databases
Managed JSON document database on IBM Cloud based on Apache CouchDB
SaaS
