Teams look past MongoDB when they want a relational engine under a permissive licence, a bill that does not depend on an Atlas cluster tier, or a backend that ships with authentication. Most go first to PostgreSQL or Supabase, then to Firebase, DynamoDB or Neon, depending on whether they want SQL or another document store.
Vendors can pay for more visibility on this website, for example a higher place in a ranking or more room on a page. Commercial relationships can also affect which products we feature and how prominently. Every vendor link is marked the same, whatever the arrangement behind it. The first three alternatives
go to challengers, vendors outside the best-known brands in a category, wherever the category has them; the
established names follow in their ranked order. How it works:
placement disclosure · editorial process.
What each alternative does differently
The engine is released under the PostgreSQL License, which its own site calls a liberal open source license similar to BSD or MIT. The project itself sells no hosting.
Switch from MongoDB if you want a relational engine under a permissive licence that any host can run.
Vendor website → · Detailed PostgreSQL write-up
A hosted Postgres with extras attached. The Free plan allows 500 MB of database, 50,000 monthly active users and pauses after a week of inactivity. Pro starts at $25 a month with 8 GB of disk and daily backups kept for 7 days.
Switch from MongoDB if you want hosted Postgres with user sign-in bundled and a flat plan price.
Vendor website → · Detailed Supabase write-up
3. Firebase
United States
Cloud Firestore keeps the document idea, billed through Google Cloud after the no-cost Spark plan. Spark covers 1 GiB stored, 50,000 reads and 20,000 writes a day, and needs no payment method. Pay-as-you-go Blaze starts when you exceed those daily quotas.
Switch from MongoDB if you want to stay with documents but hand the hosting to Google and pay per operation.
Vendor website → · Detailed Firebase write-up
4. Amazon DynamoDB
United States
Bills by on-demand request or by provisioned capacity, plus storage, with a free tier of 25 GB, 25 read and 25 write capacity units a month. It runs only on AWS.
Switch from MongoDB if your workload already runs on AWS and you accept key-based access patterns.
Vendor website → · Detailed Amazon DynamoDB write-up
Serverless Postgres, now described on its site as Lakebase Postgres built by Databricks. The Free plan lists 100 projects with 1 GB each; Launch charges $0.106 per CU-hour and $0.35 per GB-month, and Scale charges $0.222 per CU-hour with SLAs and HIPAA.
Switch from MongoDB if you want Postgres that bills by compute-hour and storage rather than by fixed cluster tier.
Vendor website → · Detailed Neon write-up
6. CockroachDB
United States
Standard bills $0.092 per vCPU-hour, which its page puts near $203 a month for 2 vCPU and 100 GB, with a 99.99 percent availability SLA. Mission Critical is $0.162 per vCPU-hour with 99.999 percent. New Cloud organizations get 30 days and $400 in credit.
Switch from MongoDB if you need multi-region availability with an SLA and accept vCPU-hour billing.
Vendor website → · Detailed CockroachDB write-up
7. PlanetScale
United States
Sells managed Postgres, priced by resources. A single-node Postgres starts at $5 a month, Metal with local NVMe at $50 a month, and high availability means one primary plus two replicas across three zones.
Switch from MongoDB if you want a managed relational database priced by node and willing to pay from day one.
Vendor website → · Detailed PlanetScale write-up
MariaDB Server is released under GPLv2, and its site says the company develops more than 90 percent of the code while a foundation stewards the project. Community Server is a free download. MariaDB Cloud and the enterprise platform are sold through sales.
Switch from MongoDB if you want an open source SQL engine you run yourself, with a vendor you can buy support from.
Vendor website → · Detailed MariaDB write-up
Redis Cloud is an in-memory data store, not a document database. Free is 30 MB, Essentials runs from $0.007 an hour (about $5 a month) with 250 MB to 100 GB, and Pro starts at $0.014 an hour with a $200 monthly minimum. It suits caches and fast lookups.
Switch from MongoDB if your use is caching, sessions or fast key lookups rather than a primary document store.
Vendor website → · Detailed Redis write-up
A library, not a server: its authors dedicated all code and documentation to the public domain. It costs nothing and needs no hosting, and Hwaci sells optional paid support.
Switch from MongoDB if your data is small, local to one application, and needs no separate server.
Vendor website → · Detailed SQLite write-up
11. ClickHouse
United States
A column store for analytics rather than an application database. Cloud Basic lists storage at $25.30 per TB a month and compute from $0.2181 per unit-hour, with up to 1 TB of storage. The open source distribution is a free download, and a 30-day trial carries $300 in credit.
Switch from MongoDB if your MongoDB use is mostly reporting and aggregation over large event volumes.
Vendor website → · Detailed ClickHouse write-up
Questions and answers
How do I export my data from MongoDB?
Use mongoexport for JSON or CSV, or mongodump for a binary export that mongorestore can load back. MongoDB's documentation says mongoexport is not a backup tool, so use mongodump if you need a full copy.
Does mongodump work on Atlas Flex clusters?
Yes, the mongodump page lists standalone deployments, replica sets, sharded clusters and Flex clusters as sources. It does not describe other Atlas tiers on that page, so check the Atlas documentation for your cluster type.
How much does MongoDB Atlas cost?
Atlas Free is $0 for 512 MB, Flex runs up to $30 a month, and Dedicated starts at $0.08 an hour for the M10 tier. Billing is hourly with monthly invoices, and add-ons are priced separately on the pricing page.
Is MongoDB open source?
The server is under the Server Side Public License, version 1, dated October 16, 2018. MongoDB publishes it with a FAQ and a comparison with the AGPL. Whether that suits you is for your legal team to decide.
Is there a free MongoDB alternative?
Yes, PostgreSQL, MariaDB Community Server and SQLite are free downloads, and the hosts Supabase, Neon and Firebase list free plans with limits. Free hosted plans pause or cap usage, so read each limit.
Can I keep MongoDB on my own servers?
Yes, MongoDB offers Community Edition at no cost and a self-managed Enterprise Advanced product. The pricing page does not state Enterprise Advanced prices, so ask sales if you need a figure.