Serverless MongoDB-compatible
Hosted on FerretDB in the cloud, real MongoDB on the desktop or self-host with the Layerbase CLI. The same driver, the same shell, the same queries, wherever you run it.
FerretDB speaks the MongoDB wire protocol 1:1, so your existing drivers, queries, and indexes work without changes. Apache-licensed, so no SSPL surprises.
Collections
- users12.4k
- products847
- orders3.1k
Flat pricing
From $5/mo, no meters
Wire compatible
Powered by FerretDB
Encrypted
TLS on every plan
Layerbase Cloud
Managed, in seconds
Desktop and CLI
Run it locally or self-host
Wire compatibility
Your MongoDB drivers, unchanged
FerretDB speaks the MongoDB wire protocol 1:1, so your existing drivers, queries, and indexes work without changes. Apache-licensed, so no SSPL surprises. You keep mongosh, your existing ORM, and your queries; Layerbase runs it managed, with TLS, automated backups, IP allowlisting, and a document console in the browser. It also branches copy-on-write, so a preview deploy or a CI job gets an isolated copy of the data in seconds instead of a dump and restore.
Migrating from MongoDB AtlasQuick start
Connect with any MongoDB client
Existing MongoDB apps, document-shaped data, schema-flexible prototypes, and teams that want Mongo ergonomics without the licensing fine print.
- Move a Mongo-shaped project off Atlas with the guided migration: paste the connection string, keep the code
- Spin up a per-developer document database that scales to zero
- Run real MongoDB locally with Layerbase Desktop, then deploy the same schema to cloud
- Hand a Mongo URI to your serverless app without managing a replica set
- Self-host on your own hardware with the Layerbase CLI when compliance requires it
mongosh "mongodb://layerbase:password@your-host.cloud.layerbase.dev:27017/app?tls=true"
Where to run it
Cloud, desktop, or self-host
One database, three places it can live. Pick the speed you want and move between them when you outgrow it.
Layerbase Cloud
Powered by FerretDB. FerretDB speaks the MongoDB wire protocol 1:1, so your existing drivers, queries, and indexes work without changes. Apache-licensed, so no SSPL surprises.
Create databaseLayerbase Desktop
Run MongoDB locally with the same dashboard and query console.
DownloadLayerbase CLI
Run MongoDB from the terminal, locally or on your own infra.
View the CLI docsFAQ
Common MongoDB questions
What is MongoDB?
MongoDB is a document database: instead of rows in a fixed schema it stores JSON-style documents and queries them through its own driver protocol rather than SQL. It suits document-shaped data, schema-flexible prototypes, and apps whose shape is still moving. On Layerbase Cloud, MongoDB workloads run on FerretDB, an Apache-licensed implementation of the same wire protocol, so your existing drivers, queries, and indexes work unchanged; Layerbase Desktop and the Layerbase CLI run the upstream MongoDB binaries directly.
How much does MongoDB-compatible hosting cost on Layerbase?
Cloud MongoDB workloads run on FerretDB, so they start on Solo at $5/mo, with Pro at $15/mo above it. Both are flat monthly prices with no usage meters, and the create flow shows the cost before you provision anything. Running real MongoDB on Layerbase Desktop is free for personal use.
Why does Cloud use FerretDB instead of MongoDB?
MongoDB's Server Side Public License (SSPL) restricts how managed providers can offer it. FerretDB is the Apache 2.0 alternative that implements the MongoDB wire protocol on top of PostgreSQL. From the driver's perspective, it is MongoDB: same commands, same query shape, same connection string format. You do not see the substitution.
Will my existing MongoDB driver work?
Yes. FerretDB implements the MongoDB wire protocol, so any driver that speaks Mongo (Node.js, Python pymongo, Go mongo-go-driver, Java, etc.) connects without code changes. mongosh works against the same hostname.
What if I need a MongoDB-only feature?
FerretDB covers the common 90%: CRUD, indexes, aggregations, and transactions. Mongo-only features like change streams, Atlas Search, or BSON-specific oddities are not supported. For those, run real MongoDB on Layerbase Desktop or self-host with the Layerbase CLI.
How do I move an existing Atlas database over?
Paste its mongodb+srv:// connection string into the guided migration and Layerbase copies your collections, documents, and indexes into a new FerretDB database. It reads Atlas once and never writes to it, so your cluster keeps serving traffic while the copy runs. An index FerretDB cannot create is skipped entirely and named in the migration report, so you can recreate it by hand if your queries need it. A MongoDB you host yourself migrates the same way, as long as the server is reachable from the public internet.
Migrating from MongoDB AtlasCan I run real MongoDB on Layerbase?
Yes. On Layerbase Desktop and via the Layerbase CLI, you run the upstream MongoDB binaries directly. The cloud path is the only one where the FerretDB substitution applies, and that exists only because of the SSPL constraint on managed offerings.
Can I branch a MongoDB database on Layerbase?
Yes, in the cloud, and this is the capability Atlas does not offer at any tier. A cloud MongoDB database on Layerbase is FerretDB, which stores your documents in PostgreSQL, so 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. The exception is the non-cloud path: real MongoDB on Layerbase Desktop and the Layerbase CLI runs the upstream SSPL binaries, which are not the branchable cloud product, so use the cloud database when you want branches.
Branching with MongoDBWill I see hibernation pauses on a MongoDB-compatible database?
Your database hibernates after 6 hours of inactivity and wakes on the next connection (typically 3 to 5 seconds for document workloads). You can keep it up around the clock by pinning it always-on, which draws from your plan pool.
Branch MongoDB in seconds
Fork a running MongoDB 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. Cloud MongoDB runs on FerretDB, so branches are the same copy-on-write copies we take of Postgres. Running the upstream MongoDB binaries on Desktop or the CLI is the one path that does not branch.
See how branching worksWhat you get
Everything a MongoDB database should ship with
The same primitives on every MongoDB 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.
TLS by default
All connections encrypted. No setup required.
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.
Scale to zero
Hibernates when idle. Wakes on the next connection.
Connection pooling
Pooled endpoint for serverless and edge workloads.
Direct connections
Bypass the pooler for migrations and replication.
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.
Serverless driver
Drop-in HTTP driver for edge runtimes (Neon serverless, PlanetScale, Upstash REST, or the engine-native client).
IP whitelisting
Restrict access to specific IPs or CIDR ranges.
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.
What it costs
What MongoDB 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.
The database you pin never sleeps.
Every engine, plus a bigger always-on pool.
Side by side
Hosted MongoDB, compared
| Provider | Free tier | Billing |
|---|---|---|
| MongoDB Atlas | M0 with 512 MB and up to 100 operations per second | Flex clusters are priced by operations per second, roughly $8 to $30/mo |
| Layerbase | MongoDB-compatible via FerretDB from Solo at $5/mo: same drivers, same wire protocol | $5 or $15/mo flat. No ops meters. |
MongoDB Atlas
- Free tier
- M0 with 512 MB and up to 100 operations per second
- Billing
- Flex clusters are priced by operations per second, roughly $8 to $30/mo
Layerbase
- Free tier
- MongoDB-compatible via FerretDB from Solo at $5/mo: same drivers, same wire protocol
- Billing
- $5 or $15/mo flat. No ops meters.
Competitor facts verified September 7, 2026 against each vendor's own pricing and documentation pages: MongoDB Atlas.
Already have data? Migrate it from MongoDB Atlas, DigitalOcean Any connection string works too.
More on MongoDB
All articles- September 5, 2026
Northflank alternatives: a preview environment is not a database branch
Northflank gives every pull request its own stack, and the database in that stack starts empty unless you seed it or restore it from a backup you already had. Here is exactly how their forks work, what a copy-on-write branch does differently, what each one costs while a PR sits open, and the cases where Northflank is the right answer.
Read - August 19, 2026
MongoDB Atlas alternatives: flat pricing and a document database you can branch
What you actually get when you leave MongoDB Atlas for managed FerretDB on Layerbase: the same wire protocol and driver, a flat monthly price instead of a per-tier meter, branching Atlas does not offer, and an honest list of the cases where you should stay put.
Read - August 19, 2026
MongoDB vs FerretDB on the same hardware: the benchmark, and what we had to fix to run it fairly
YCSB against MongoDB 8.0 and FerretDB 2.7 on the exact hardware behind our $65/mo dedicated preset. Once our own tuning was right, FerretDB held 3-4x MongoDB throughput on the mixed workload and about 5x on reads. The corrected numbers, what had to be fixed first, and what we are not claiming.
Read - July 17, 2026
Run FerretDB on Windows (No Docker, No WSL)
FerretDB v2 needs a PostgreSQL extension that is not on Windows yet. We built custom binaries to run FerretDB v1 natively on Windows, no Docker or WSL.
Read - June 23, 2026
7 reasons to choose FerretDB over MongoDB
FerretDB gives you the MongoDB API on top of PostgreSQL, under an Apache 2.0 license. Here are seven concrete reasons teams pick it over MongoDB, and an honest list of when you should not.
Read
Upstream project
MongoDB is developed by the MongoDB project. Layerbase packages official releases; the engine itself is built upstream.