FerretDB

Open source

An open source proxy that lets MongoDB drivers talk to PostgreSQL with the DocumentDB extension, as an alternative to MongoDB.

GitHub stars
11k
Last 30 days
+22(+0%)
Last commit
5 mo ago
Repository age
5 years
Version
v2.7.0
Licence
Apache-2.0
Self-hosted
Yes

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
Tags
database
mongodb-alternative
postgresql
document-database
go
open-source
proxy

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

SaaS alternatives to FerretDB

See all