Skip to content
MongoDB

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.

On 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.

Document Console
MongoDB

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

  • Wire compatible

    Powered by FerretDB

  • Encrypted

    TLS on every plan

  • Layerbase Cloud

    Managed, in seconds

  • Desktop and CLI

    Run it locally or self-host

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 Atlas

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
Full MongoDB connection guide
bash
MongoDB
mongosh "mongodb://layerbase:password@your-host.cloud.layerbase.dev:27017/app?tls=true"

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 Atlas
Can 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 MongoDB
Will 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 works

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.

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 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.

Solo$5/mo

The database you pin never sleeps.

Pro$15/mo

Every engine, plus a bigger always-on pool.

Hosted MongoDB, compared

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

MongoDB is developed by the MongoDB project. Layerbase packages official releases; the engine itself is built upstream.

mongodb.com