Best for · Web hosting
MongoDB cloud hosting: where to run MongoDB, and what it costs
- Last checked
- 7 sources, linked below
- By the vectaai team
We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.
Verdict Our pick
The bar guide has a call.

- DigitalOcean Managed MongoDB if your app already lives on DigitalOcean and you want a flat monthly bill: it starts at $15.23 a month for 1 vCPU and 1 GiB of RAM, with daily backups and 7 days of point-in-time recovery.
Compared here
- 01MongoDB Atlas
- 02DigitalOcean Managed MongoDB
- 03Self-hosted MongoDB on a VPS
- 04Cloudways and Kinsta (why not)
- 05Shared web hosting (why not)
Short answer
Most people should start on MongoDB Atlas, MongoDB's own cloud. It has a free M0 cluster with 512 MB of storage on AWS, Azure or Google Cloud, a Flex tier that costs $8 to $30 a month by usage, and dedicated clusters from $56.94 a month, per its pricing page. Pick DigitalOcean Managed MongoDB if your app already lives on DigitalOcean and you want a flat monthly bill: it starts at $15.23 a month for 1 vCPU and 1 GiB of RAM, with daily backups and 7 days of point-in-time recovery. Self-host on a VPS only if you are happy to patch, back up and secure a database yourself.
The honest bit: normal shared web hosting almost never runs MongoDB, because it needs a server process you control. Cloudways and Kinsta's Sevalla do not list it as a database they run for you either. Below: the table, the real cost of each route, and who should pick what.
Sponsored links. We may earn a commission; it never changes the pick.
At a glance
| Option | Cheapest entry | Production starting point | Backups | Who runs the database | Best for |
|---|---|---|---|---|---|
| MongoDB Atlas | Free M0: 512 MB, shared | Dedicated M10: $0.08/hr, from $56.94/mo, 2 GB RAM | Paid by snapshot storage; none on Free | MongoDB | Most apps, any cloud |
| Atlas Flex | $8/mo at 0 to 100 ops/sec | Caps at $30/mo, 5 GB | Not detailed on the pricing page | MongoDB | Side projects, testing, small apps |
| DigitalOcean Managed MongoDB | $15.23/mo: 1 vCPU, 1 GiB, 15 to 25 GiB | Add 2 standby nodes for a replica set | Daily, free, 7-day point-in-time recovery | DigitalOcean | Apps already on DigitalOcean |
| Self-host on a VPS | Hostinger KVM 1: $6.49/mo for 24 months, renews $11.99, 4 GB RAM | Your choice of server | Whatever you set up | You | People who can run Linux servers |
| Cloudways / Kinsta (Sevalla) | Not offered | Not offered | n/a | n/a | Connect your app to an external MongoDB |
| Shared web hosting | Not offered on typical plans | n/a | n/a | n/a | Not a MongoDB home |
The money talk first. DigitalOcean and Hostinger run affiliate programs, and MongoDB may too, so the /go/ links here may pay us. We ranked by fit, not by payout: the free option at the top pays nobody anything. We did not run a database on any of these. We read the official pricing and product pages on 3 December 2026, and where a page did not say something, we say that.
First, why your normal web host probably cannot do this
If you came here from a cheap hosting plan wondering where the MongoDB button is, here is the short answer: there usually is not one.
MongoDB is a database server. It runs as its own process, holds a chunk of memory, and needs admin access to install and configure. Shared web hosting puts hundreds of customers on one server and gives each a folder, a PHP version and a MySQL or MariaDB database. You do not get to start your own long-running server processes there. That is why shared plans list MySQL and almost never MongoDB.
So you have three real routes:
- A managed MongoDB service (Atlas, DigitalOcean). Someone else runs the database; you connect to it.
- Your own server (a VPS or cloud machine) with MongoDB installed by you.
- Your app on any host, the database on Atlas. This is the common setup: the website or API lives wherever you like, and talks to a managed cluster over an encrypted connection.
What about managed app platforms? Cloudways' support article on supported databases blocked our reader, so we cannot quote it; check it yourself before you plan around Cloudways. Kinsta's newer platform, Sevalla's database hosting page, lists PostgreSQL, MariaDB, MySQL, Redis and Valkey, and no MongoDB. On both, the route is the same: run your app there and connect to MongoDB somewhere else.
MongoDB Atlas: the default choice
Atlas is MongoDB's own cloud service. It runs on AWS, Microsoft Azure and Google Cloud, and you pick the provider and region when you create a cluster. Three tiers, per the pricing page:
- Free (M0): $0, "Free forever", 512 MB of storage, shared RAM and CPU. MongoDB says it is "for learning and exploring MongoDB in a cloud environment." Backups are not available on this tier.
- Flex: from $0.011 an hour, "up to $30/month", 5 GB of storage. You pay by load: $8 a month at 0 to 100 operations per second, $15 at 100 to 200, $21 at 200 to 300, $26 at 300 to 400 and $30 at 400 to 500, assuming continuous use for 30 days. MongoDB calls it ideal for development and testing, "with certain feature limitations."
- Dedicated: from $0.08 an hour for M10, listed as "Starts at $56.94/month", with 10 GB to 4 TB of storage and 2 GB to 768 GB of RAM across the tiers.
The dedicated ladder in plain numbers, per the pricing page (base prices, default storage):
| Tier | RAM | vCPUs | Storage range | Base price |
|---|---|---|---|---|
| M10 | 2 GB | 2 | 10 to 128 GB | $0.08/hr |
| M20 | 4 GB | 2 | 20 to 256 GB | $0.20/hr |
| M30 | 8 GB | 2 | 40 to 512 GB | $0.54/hr |
| M40 | 16 GB | 4 | 80 GB to 1 TB | $1.04/hr |
| M50 | 32 GB | 8 | 160 GB to 4 TB | $2.00/hr |
Two details from the FAQ worth knowing. M10 and M20 "utilize shared vCPUs", while M30 and up use dedicated vCPUs and can run sharded clusters. And backup costs are "based on the region and the monthly storage consumed by snapshots and oplogs for continuous backups", which means your real bill is the cluster price plus backup storage plus data transfer. MongoDB itself says actual pricing "can vary based on deployment requirements, configurations, and location."
Pick Atlas if you want the people who make MongoDB to run it, you want to choose your cloud, or you want to start free and grow without moving.
DigitalOcean Managed MongoDB: flat and simple
DigitalOcean sells MongoDB as one of its managed databases. Per its product page and pricing page:
- Starts at $15.23 a month ($0.02266 an hour) for 1 vCPU and 1 GiB of RAM, with 15 to 25 GiB of storage. Extra storage is $0.215 per GiB a month, in 10 GiB steps.
- MongoDB versions 8.0, 7.0 and 6.0.
- Daily backups are free, with "point-in-time recovery for 7 days."
- Standby nodes: you can add two, which then "start serving requests if your primary node fails."
- Storage scales separately from CPU and RAM.
What we like is the shape of the bill: one fixed monthly number with backups included. What to watch: 1 GiB of RAM is small for a database. It is fine for a side project, tight for anything busy. Adding two standby nodes for real failover multiplies the cost.
Pick DigitalOcean if your app already runs on DigitalOcean Droplets or App Platform and you want the database in the same place, on one invoice. Our DigitalOcean web hosting page covers the rest of its line-up.
Self-hosting MongoDB on a VPS
MongoDB Community Edition is free to download. MongoDB's install docs list official builds for Linux, Windows, macOS and a Docker container, with version 9.0 marked as current.
So you can rent a virtual server and run it yourself. For scale, Hostinger's KVM VPS plans start at $6.49 a month on a 24-month term (renewing at $11.99) for 1 vCPU, 4 GB of RAM and 50 GB of NVMe storage, with Ubuntu, Debian, AlmaLinux and Rocky Linux templates. Its VPS page does not mention MongoDB, so you install it yourself.
On paper that is four times the RAM of DigitalOcean's smallest managed node for less money. In practice you are now the database team. That means:
- Security. Bind MongoDB to localhost or a private network, turn on authentication, and firewall the port. Open, password-less MongoDB servers on the internet are a well-known way to get your data wiped and held for ransom.
- Backups. Nobody makes them for you. Set up a dump or snapshot job, store it off the server, and test a restore at least once.
- Updates. Operating system patches and MongoDB upgrades are your job.
- High availability. One VPS is one point of failure. A proper replica set means three servers.
Pick self-hosting if you already run Linux servers, you need full control, or the managed bill has grown big enough that a part-time admin is cheaper. For a first project, it is usually false economy.
Where your app lives vs where MongoDB lives
People mix these up, so it is worth one section.
Your website or API (Node.js, Python, PHP, whatever) needs a host. MongoDB needs a home. They do not have to be the same company. A common, sensible setup:
- App: a cloud host, a VPS or a platform like DigitalOcean App Platform or Vercel.
- Database: Atlas in the same cloud region as the app.
Keep them in the same region. Every query crosses the network, and a database on another continent makes every page slow, however fast the server is. If your app runs on AWS in Frankfurt, put the Atlas cluster on AWS in Frankfurt too.
For the app side, our cloud hosting guide explains the options, and scalable web hosting covers what to do when traffic grows. If you are choosing between front-end platforms, see DigitalOcean vs Vercel.
What it really costs: three honest scenarios
Using only the official prices above, before tax, backup storage and data transfer:
- Learning, a portfolio project, a hackathon: Atlas Free. $0. Accept that there are no backups.
- A small live app with light traffic: Atlas Flex at $8 to $30 a month, or DigitalOcean at $15.23 a month with daily backups included. Pick DigitalOcean if you want a fixed bill; pick Flex if your load is spiky and mostly low.
- A business app that must not go down: Atlas M10 or above (from $56.94 a month) with backups turned on, or a DigitalOcean cluster with standby nodes. Expect the real bill to be noticeably above the base price once backups and a replica setup are in.
Self-hosting looks cheapest in every scenario on paper. Add an hour of your time a month at whatever your time is worth, and it usually stops being cheapest.
Who should pick what
| You are | Pick |
|---|---|
| Learning MongoDB or building a demo | Atlas Free |
| Running a small app, low and spiky traffic | Atlas Flex |
| Already on DigitalOcean, want one bill | DigitalOcean Managed MongoDB |
| Running production with uptime promises to customers | Atlas Dedicated (M10 and up) with backups |
| Comfortable running Linux, want control and low cost | Self-host on a VPS |
| On shared hosting, Cloudways or Kinsta | Keep the app there, put MongoDB on Atlas |
Mistakes we see people make
- Choosing a database region far from the app. Latency adds up on every request.
- Leaving production on the free tier. No backups means one bad delete is permanent.
- Comparing headline prices only. Atlas Dedicated has backup and transfer costs on top; DigitalOcean's base price is one node, not a three-node replica set.
- Self-hosting without a firewall. Never expose port 27017 to the whole internet.
- Assuming your shared host can do it. Ask, but expect "MySQL only".
How we checked
We read MongoDB's Atlas pricing page, DigitalOcean's managed MongoDB and database pricing pages, MongoDB's install docs, Hostinger's VPS page and Sevalla's database hosting page on 3 December 2026. Cloudways' support article blocked our reader, so we make no claim about Cloudways beyond what we could see. IONOS's MongoDB documentation link returned a not-found page, so IONOS is left out rather than guessed. We did not run benchmarks. Prices were shown with a $ sign; MongoDB and DigitalOcean did not name a currency code on the pages we read. The provider's own price on the day you sign up wins. More on our method on how we pick.
Questions people ask
Can I host MongoDB for free?
Yes, for learning and small tests. MongoDB Atlas has a Free M0 cluster with 512 MB of storage on AWS, Azure or Google Cloud, which MongoDB calls free forever. Backups are not available on the free tier, so do not keep anything there you cannot afford to lose. For a live app, move to Flex or Dedicated.
How much does MongoDB Atlas cost per month?
It depends on the tier. Free is $0. Flex runs $8 to $30 a month depending on operations per second. Dedicated starts at $0.08 an hour for M10, which MongoDB lists as from $56.94 a month. Backups, data transfer and region all add to the bill, so the pricing page calls its numbers a starting point.
Does shared web hosting support MongoDB?
Rarely. MongoDB is a server process that needs its own memory and admin access, and shared plans give you neither. Shared hosts usually offer MySQL or MariaDB only. Your app can still live on shared hosting and talk to a MongoDB Atlas cluster over the internet, as long as your host lets you install the driver.
Is DigitalOcean managed MongoDB cheaper than Atlas?
At the small end, a DigitalOcean node at $15.23 a month costs less than an Atlas M10 at $56.94, and it includes daily backups. Atlas Flex at $8 to $30 is cheaper still for light use. Compare like for like: RAM, storage, standby nodes and backup costs, not the headline price.
Should I self-host MongoDB on a VPS?
Only if you know Linux and will own the job. MongoDB Community runs on Linux, Windows, macOS and Docker, and a VPS with 4 GB of RAM costs a few dollars a month. But you handle updates, backups, firewalls and failover. A database left open to the internet is a classic way to lose data.
Sources
Every fact above comes from these pages. Prices change, so each one carries the date we read it.
- MongoDB: Atlas pricing, checked 3 Dec 2026
- DigitalOcean: Managed MongoDB, checked 3 Dec 2026
- DigitalOcean: Managed databases pricing, checked 3 Dec 2026
- MongoDB docs: Install MongoDB Community Edition, checked 3 Dec 2026
- Hostinger: VPS hosting plans, checked 3 Dec 2026
- Sevalla (Kinsta): Database hosting, checked 3 Dec 2026
- Cloudways: What types of databases does Cloudways support (blocked our reader), checked 3 Dec 2026