Skip to content
FerretDB

Serverless FerretDB

Managed FerretDB, the Apache-licensed MongoDB-compatible database. Same wire protocol, same drivers, no SSPL fine print. Cloud, desktop, or self-host with the Layerbase CLI.

Document Console
FerretDB

Collections

  • users12.4k
  • products847
  • orders3.1k
db.users.findOne({ email: 'a@b.co' })
{
_id: ObjectId('65f...'),
email: 'a@b.co',
name: 'Alice',
createdAt: ISODate('2026-01-04'),
}
  • Flat pricing

    From $5/mo, no meters

  • Encrypted

    TLS on every plan

  • Layerbase Cloud

    Managed, in seconds

  • Desktop and CLI

    Run it locally or self-host

MongoDB drivers, Apache 2.0 licensing

FerretDB implements the MongoDB wire protocol on top of PostgreSQL, so pymongo, mongoose, mongo-go-driver, and mongosh connect without code changes. FerretDB is Apache 2.0 and the DocumentDB extension underneath it is MIT, instead of SSPL. Because your documents live in Postgres, you also get the thing Atlas does not sell at any tier: copy-on-write branching, an isolated copy of the data in seconds for a preview deploy or a CI job, deleted when the pull request merges.

Branching with MongoDB
Connect with mongosh
mongosh "mongodb://layerbase:password@your-host.cloud.layerbase.dev:27017/app?tls=true"

Connect with any FerretDB client

Teams that want managed FerretDB with Apache 2.0 licensing, document-shaped data on top of Postgres, and existing Mongo apps that want to escape the SSPL.

  • Drop MongoDB-shaped data into a project that needs a permissive license
  • Run document workloads alongside Postgres on the same infra without dual ops
  • Spin up a per-environment document store that scales to zero between bursts
  • Migrate off Atlas without rewriting drivers or queries
  • Self-host on your own hardware when compliance requires it
Full FerretDB connection guide
bash
FerretDB
mongosh "mongodb://layerbase:password@your-host.cloud.layerbase.dev:27017/app?tls=true"

What managed FerretDB costs here, and what it can do

FerretDB is the MongoDB wire protocol implemented on top of PostgreSQL, Apache 2.0 licensed. It is not on the Free plan: the floor is Solo at $5/mo. Your Mongo drivers do not change, and because the documents live in Postgres you get one thing Atlas does not sell at any tier.

FerretDB needs the Solo plan, $5/mo

Solo is $5/mo flat: 2 databases, 10 GB of storage, up to 100 concurrent connections, and a 768 MB always-on pool. Pro is $15/mo with 10 databases and 25 GB. Both are flat monthly prices with no per-operation meter, and the create flow shows the cost before you provision anything.

It sleeps after 6 hours idle and wakes on connect

A paid FerretDB database hibernates after 6 hours with no connections. Hibernation keeps the hostname, the port, and the data volume in place, so the next connection wakes it in roughly 1 to 5 seconds and your query then runs normally. MongoDB drivers set the TLS servername automatically, which is exactly what the endpoint routes on, so nothing in your client needs configuring for this.

Your MongoDB drivers connect unchanged

A mongodb:// endpoint with TLS, a document console in the browser, and IP allowlisting. pymongo, mongoose, mongo-go-driver, and mongosh connect without code changes. The common 90% is covered: CRUD, indexes, aggregations, and transactions. Mongo-only features such as change streams and Atlas Search are not.

Branching, which Atlas does not offer at any tier

Because a FerretDB database here is a Postgres database wearing a Mongo interface, we branch it copy-on-write with the same mechanics we use for Postgres: an isolated copy of the data in seconds for a preview deploy, a CI job, or an agent, deleted when the pull request merges. Solo allows 3 branches per database, Pro 10.

Nothing expires, and backups are automatic

Auto-archiving is a free-tier sweep, so a paid database is never archived however long it sits. Solo takes a daily backup with 7 days of rolling retention and 3 manual slots you trigger yourself; Pro keeps 30 days and 10 slots. Restore is one click from the dashboard, onto the same database or into a new one.

Create a FerretDB database

FerretDB needs the Solo plan, $5/mo flat, with Pro at $15/mo above it. No per-operation meter on either.

Common FerretDB questions

What is FerretDB?

FerretDB is an Apache 2.0 licensed database that implements the MongoDB wire protocol on top of PostgreSQL, so MongoDB drivers and mongosh connect to it without code changes. It exists so document workloads can have Mongo ergonomics without the SSPL that covers MongoDB itself. Layerbase runs it as a managed endpoint with TLS, automated backups, a document console, and copy-on-write branching, which comes free because the documents live in Postgres underneath.

What does FerretDB hosting on Layerbase include?

A `mongodb://` endpoint with TLS, automated backups, IP allowlisting, and a document console in the browser, plus hibernation that scales the database to zero when it is idle and wakes it on the next connection. There is no cluster to size and no cloud provider account to link: sign up, create the database, copy the connection string.

How is FerretDB different from MongoDB?

FerretDB implements the MongoDB wire protocol on top of PostgreSQL. From your driver, it looks like Mongo. Under the hood, your documents are stored in PostgreSQL through the DocumentDB extension (a binary BSON type), not plain tables you query directly. Licensing: FerretDB is Apache 2.0 and the DocumentDB extension is MIT, instead of SSPL.

Will my MongoDB driver work?

Yes. Any driver that speaks the MongoDB wire protocol (pymongo, mongoose, mongo-go-driver, Java, etc.) connects to FerretDB without code changes. mongosh works against the same endpoint.

Is there feature parity with MongoDB?

The common 90% is covered: CRUD, indexes, aggregations, and transactions. Mongo-only features like change streams and Atlas Search are not supported. The FerretDB compatibility page tracks specifics.

What does managed FerretDB cost compared to MongoDB Atlas?

FerretDB is not on the Free plan. It starts on Solo at $5/mo, with Pro at $15/mo above it; both are shared plans that hibernate to zero when nothing is connected, so idle time costs nothing. Above those sit flat-rate dedicated presets at $35/mo (2 vCPU / 4 GB), $65/mo (4 vCPU / 8 GB), and $120/mo (2 vCPU / 16 GB) with storage included. Compared on what you pay for the hardware, Atlas compute alone lists higher: verified 2026-08-19 from mongodb.com/pricing and converted at 730 hours per month, M10 (2 vCPU / 2 GB) is about $58, M20 (2 vCPU / 4 GB) about $146, and M30 (2 vCPU / 8 GB) about $394, with storage, backup, and egress billed on top. That is a price-for-hardware comparison and not a performance one: we have never run a benchmark against Atlas. Worth knowing before you switch: an Atlas M-tier is a three-node replica set, where a Layerbase dedicated preset is a single node with backups and branching.

The full Atlas comparison
How fast is FerretDB on Layerbase compared to self-hosted MongoDB?

We benchmarked FerretDB against self-hosted MongoDB 8.0 with YCSB, both on the same hardware profile: the box behind our $65/mo dedicated preset, on a working set larger than RAM. FerretDB on our tuned default did 3.3-3.8x MongoDB on a 50/50 read/write workload and about 5x on reads. The tail latency is the stronger result: on those same runs, tuned FerretDB held update p99 between 0.1 and 0.85 seconds across every thread count we tested, where MongoDB ran 0.16 to 1.7 seconds, so roughly half the tail at each level of concurrency. Those numbers come with real caveats (one hardware profile, MongoDB self-hosted on that same hardware rather than Atlas, so no Atlas run stands behind any of it, and MongoDB wins at much larger scales), so read the full writeup rather than taking the multiples at face value.

The full benchmark writeup
Which FerretDB size do I need?

Three questions decide it. First, working set versus RAM, which dominates everything else: if your working set fits in RAM, expect parity with MongoDB rather than multiples, and the numbers above were measured with a working set larger than RAM on one reasonable box. Second, absolute scale: at 100 million to a billion or more documents on a write-heavy workload, MongoDB genuinely wins, and we would rather say so than sell you the wrong thing. Third, your read/write mix: reads favored FerretDB in every configuration we ran. One honest note about the ladder: the $35/mo preset is sized for a working set that fits in 4 GB, so hand it a 10 GB working set and it is the slowest thing we sell. If your workload shape is not represented in the writeup, tell us what it looks like and we will run it on our hardware at our cost and send you the numbers, including the ones that do not flatter us.

The preset ladder, measured
Can I branch a FerretDB database?

Yes, and this is the capability Atlas does not offer at any tier. Because a FerretDB database on Layerbase is a Postgres database wearing a Mongo interface, we branch it copy-on-write with the same filesystem mechanics we use for Postgres: hit Branch, get an isolated copy of the data in seconds, point a preview deploy or a CI job or an agent at it, and delete it when the pull request merges. No export, no restore, no snapshot to schedule, no Mongo-specific machinery. The closest thing Atlas has is a snapshot restore, into the same cluster or a different one, and a restore is a slow full copy of the data rather than a branch you take per pull request.

Branching with MongoDB
Can I move data from MongoDB to FerretDB?

Yes. mongodump and mongorestore work against FerretDB. Most apps move with zero driver-side changes; you typically only re-verify queries that exercise less-common operators.

Is there a guided migration from MongoDB Atlas?

Yes. Paste your mongodb+srv:// string and Layerbase copies the collections, documents, and indexes into a new FerretDB database for you, reading Atlas once and never writing to it. A MongoDB you host yourself works the same way, as long as the server is reachable from the public internet.

Migrating from MongoDB Atlas
How does the FerretDB page relate to the MongoDB page on Layerbase?

/db/mongodb explains the Mongo story on Layerbase Cloud, which is implemented by FerretDB. /db/ferretdb is the same engine viewed through its own brand and license story; pick whichever framing fits your audience.

Branch FerretDB in seconds

Fork a running FerretDB into a full, isolated copy with its own connection string. Copy-on-write makes it near-instant, not a dump and restore. Point a preview deploy at it, test a migration, then throw it away. Layerbase branches 16 engines, not just Postgres.

See how branching works

Everything a FerretDB database should ship with

The same primitives on every FerretDB database: TLS, web console, hibernation, and a real dashboard. The rows that need a paid plan say so on the row; nothing here is hidden behind a sales call.

Web IDE

Query console in the dashboard, no extra client to install.

Included

TLS by default

All connections encrypted. No setup required.

Included

Always-on connections

Pin a database to your plan's always-on pool so it never hibernates. Free has no pool, so a free database always sleeps when idle; Solo includes 768 MB of pool and Pro 1.5 GB.

Included, Paid plans

Scale to zero

Hibernates when idle. Wakes on the next connection.

Included

Connection pooling

Pooled endpoint for serverless and edge workloads.

Included

Direct connections

Bypass the pooler for migrations and replication.

Included

Native HTTPS endpoint

Engines whose own wire protocol speaks HTTPS. Every database, including this one, is also queryable over the platform's HTTPS query API and web console.

Not available

Serverless driver

Drop-in HTTP driver for edge runtimes (Neon serverless, PlanetScale, Upstash REST, or the engine-native client).

Not available

IP whitelisting

Restrict access to specific IPs or CIDR ranges.

Included

Automatic backups

Scheduled dumps and volume snapshots with one-click restore on paid plans. Free includes 1 manual backup slot you take and restore yourself.

Included, Scheduled: paid plans

What FerretDB costs on Layerbase

Plans are flat. There is no per-hour compute meter, no per-database line item, and no ingress or egress fee, so the bill does not change shape when your traffic does. You do not need an AWS, GCP, or Azure account either: Layerbase runs the infrastructure.

Solo$5/mo

The database you pin never sleeps.

Pro$15/mo

Every engine, plus a bigger always-on pool.

Hosted FerretDB, compared

FerretDB Cloud

Free tier
Free tier exists, but TLS is not supported on it and idle free instances may be stopped or deleted

Layerbase

Free tier
FerretDB from Solo at $5/mo, TLS included on every plan
Billing
$5 or $15/mo flat. No meters.

On FerretDB Cloud, TLS starts at the paid tiers and free instances are temporary. On Layerbase, FerretDB is $5/mo flat with TLS on every plan and no separate document-database bill.

Competitor facts verified September 7, 2026 against each vendor's own pricing and documentation pages: FerretDB Cloud.

Already have data? Migrate it from MongoDB Atlas, DigitalOcean Any connection string works too.

More on FerretDB

All articles

FerretDB is developed by the FerretDB project. Layerbase packages and hosts official releases; the engine itself is built upstream.

docs.ferretdb.io