Skip to content
Agents tracked: 504 Releases (7d): 602 Agent status: no reported issuesSince last limit reset: Claude 13d · Codex 11d For AI agents: Markdown Updated Nov 24, 2026

MongoDB Atlas

by MongoDB

A hosted database for app data.

Databases and backends

WebsitePricingGitHub

1. Price

“Free $0/hour Explore Atlas Free forever For learning and exploring MongoDB in a cloud environment. 512MB of storage Shared RAM Shared vCPU Flex $0.011/hour Build a Prototype Up to $30/month”

Free tier: 512MB storage, shared RAM and vCPU, up to 100 ops/second. As reported on the official pricing page, checked Oct 9, 2026.

mongodb.com/pricing

Checked against the maker's official pages, pricing on Oct 9, 2026. Tap a verdict to see its source.How we checkedReport an error

What MongoDB Atlas does

MongoDB Atlas is a database that MongoDB runs for you in the cloud. Your app stores records such as users, orders or chat messages as flexible documents, and finds them again with simple queries. There is a free cluster for learning and small projects; your server connects with an official code library and a connection address, not a web request per action.

  • MongoDB Atlas is one of 29 APIs in the Databases and backends category on AgentGid.
  • Its cheapest paid plan ($9 a month) is the 5th cheapest of the 18 here with a monthly plan.
  • It is one of 26 that can be started for free.
  • 8 of them ship an official MCP server; MongoDB Atlas does not.
  • Its official SDK is the 1st most downloaded in the category (40.9M a week).

What people build with it

Store users and orders for a web app

Keep sign-ups, profiles and orders in one hosted database that your server reads and writes, without running a database machine yourself.

Look up one record by a field

Find a product, article or movie by its title or another field and show it on a page.

Search by meaning for an AI assistant

Let a chatbot find the help articles or notes closest in meaning to a question, stored next to your other data.

Let an AI assistant query your data

Connect Claude, VS Code or another AI tool to your database so you can ask questions about your data in plain words.

Chat history for a support bot Idea

Save each conversation as one document with its messages, so the bot can reload the thread when the customer returns.

Product catalog with varied fields Idea

Keep products whose details differ, like sizes for shoes and voltage for lamps, in one collection without changing a table layout.

MongoDB Atlas popularity

39.3M
SDK downloads a week
+15.9% on the 4-week average
606
public agent repos use its SDK
10.2K
GitHub stars, mongodb/node-mongodb-native
SDK downloads per weeknpm mongodb, pypi pymongo 39,266,643

SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.

Pricing

Free tier

512MB storage, shared RAM and vCPU, up to 100 ops/second

Cheapest plan

$9 a month

Usage price

$0.08/hour for M10 dedicated cluster (starts at $56.94/month)

Plans

Added automatically: its SDK was in 107 of the public agent repos we sampled when it was added; integrations in CrewAI, LangChain, LlamaIndex. Prices read from the official pricing page.

What one action costs

ActionPrice
1 hour of a Flex cluster (capped at $30 a month)$0.011
1 hour of the smallest dedicated cluster (from $56.94 a month)$0.08
1 hour of the free cluster$0
Price history
  • A year of the pricing page in the Internet Archive (13 months): the lowest monthly figure went from $9 (2025-10) to $9 (2026-10).

As reported on the official pricing page, checked Oct 9, 2026. Prices change: confirm before you buy. mongodb.com/pricing

Limits

Free

100 read and write operations per second

Free

0.5 GB of data

Free

10 GB in and 10 GB out per rolling seven days

Free

At most 500 connections; 100 databases and 500 collections

From the official docs. mongodb.com/docs/atlas/reference/free-shared-limitations

Key and access

How it signs in

Connection string with a database user name and password (SCRAM); X.509 certificates and AWS IAM are also supported. The Atlas admin side uses service accounts or API keys.

Environment variable
none fixed by the driver; MONGODB_URI is the common choice in your own .env
Safe in browser code
No, keep it on your server
Card at sign-up

No

Steps only a person can do

  • Create a MongoDB Atlas account, a free cluster and a database user, and load the sample data if you want to follow the docs. Read MONGODB_URI from .env on the server (kept out of git).
  • Add your server's IP address to the project's IP access list in Network Access. Retry the connection; MongoServerSelectionError should go away.
  • Decide whether MongoDB may use data you put into its AI features; the opt-out is in account settings and needs a payment method. Nothing in code; note the choice in the project README.

Commercial use and your data

Atlas is a paid cloud service with a free tier; using it in a commercial app is normal and is covered by MongoDB's cloud terms. The official drivers are open source under the Apache 2.0 license.

In a paid app
With conditions

Allowed as a paying or free-tier Atlas customer under MongoDB's cloud terms; the drivers are Apache-2.0.

“"license":"Apache-2.0"” source

To train your own AI
No

You may not use Atlas AI features to develop or train an AI model.

“You will not use the AI Features to develop or train any AI model.” source

inside-app-bundle
With conditions

Shipping the Apache-2.0 driver in your server app is allowed with its license notice; the database itself stays in Atlas.

“"license":"Apache-2.0"” source

Trains on what you send

Opt-out, for data put into Atlas AI features only; the opt-out needs a payment method on file.

“You own any data that you input into AI Features, and we will not use that data to train any model if you opt out.” source

Where data is stored

You choose the cloud provider (AWS, Google Cloud, Azure) and region for each cluster.

“The choice of cloud provider and region affects network latency for clients accessing your cluster and the cost of running the cluster.” source

Errors to handle

MongoServerSelectionError

The driver cannot reach the cluster, often because your IP is not on the access list or a firewall blocks port 27017.

Add your server's IP in Network Access and check the firewall; for ECONNREFUSED on Node 17+ try family 4.

MongoServerError: bad auth : authentication failed

Wrong user name or password, or special characters not encoded in the connection string.

Check the user in Atlas Database Access and percent-encode the password.

WriteError (duplicate _id)

You inserted a document with an _id that already exists.

Let the driver generate _id values, or check for an existing document first.

timed out while checking out a connection from connection pool

All connections in the pool are busy or the network is slow.

Reuse one client, raise maxPoolSize carefully, or set connectTimeoutMS above your network latency.

Use it from an agent

Our agent check

3 of 6: llms.txt yes, OpenAPI no, SDK yes, MCP no, status page no, AI assistants allowed yes

Checked Nov 13, 2026.

MCP server

MongoDB MCP Server (local, or Atlas Managed MCP Server)

npx mongodb-mcp-server@latest setup

npm
npm install mongodb
PyPI
pip install pymongo

Instructions in its docs to check first

The docs say

“npx mongodb-mcp-server@latest setup”

Ask the person first; it runs an unpinned package and writes a config with database credentials. Pin a version and turn on read-only mode.

Alternatives

MongoDB Atlas This page

from $0.08/hourFree tier

Neon

Pick Neon when you prefer a managed Postgres database with tables and SQL instead of documents.

from $0.023 per GB-month ObjectFree tierOfficial MCP

Firebase

Pick Firebase when you want database, sign-in, hosting and serverless functions from one backend platform.

from $0.1/GB storageFree tier

Turso

Pick Turso when you want many small SQLite-compatible databases, for example one per user or per agent.

See its pageNo free tier

All databases and backends APIs

Get started

Tell your AI assistant

“Connect my Node.js server to MongoDB Atlas with mongodb 7.8.0: read MONGODB_URI from .env, create one MongoClient for the whole app, add insert and find functions for the orders collection, and never send the connection string to the browser.”

  1. Create a free Atlas cluster, load the sample data and create a database user; save the user name and password somewhere safe.

    From mongodb.com/docs/drivers/node/current/get-started.md

  2. Install the official Node.js driver.

    npm install mongodb@7.8

    From mongodb.com/docs/drivers/node/current/get-started.md

  3. Copy the connection string from the Atlas Connect dialog, put in the password, and run a first query.

    import { MongoClient } from 'mongodb';
    const client = new MongoClient(uri);
    const movie = await client.db('sample_mflix').collection('movies')
      .findOne({ title: 'Back to the Future' });

    From mongodb.com/docs/drivers/node/current/get-started.md

First request

Atlas has no plain web endpoint for data (the Data API ended); this is the driver quick start, comments trimmed.

import { MongoClient } from 'mongodb';
async function runGetStarted() {
  const uri = '<connection string>';
  const client = new MongoClient(uri);
  try {
    const movies = client.db('sample_mflix').collection('movies');
    const movie = await movies.findOne({ title: 'Back to the Future' });
    console.log(movie);
  } finally {
    await client.close();
  }
}
runGetStarted().catch(console.dir);

Mistakes to avoid

Calling the Atlas Data API (data/v1/action/insertOne with an apiKey header) from old tutorials.
Use the official driver (mongodb for Node.js, pymongo for Python) from your server.

The Data API has reached end of life.

Following the guide's "Node.js v16.20.1 or later" and installing mongodb 7.8 on Node 16 or 18.
Use Node.js 20.19 or newer for mongodb 7.x.

The 7.8.0 package declares Node >=20.19.0 in its engines field.

Pasting a password with @, :, / or ? straight into the connection string.
Percent-encode the user name and password, for example with encodeURIComponent.

Unencoded special characters break the address and give "bad auth" errors.

Adding 0.0.0.0/0 to the access list to make a connection error go away.
Add only your server's addresses, or a private connection on paid tiers.

0.0.0.0/0 lets anyone on the internet try to connect.

Creating a new MongoClient for every request in a busy server.
Create one client when the app starts and reuse it; tune maxPoolSize if needed.

Each client opens its own pool of connections (default 100), and the free tier allows at most 500 connections.

Questions

Do I need a credit card for the free cluster?

No. The driver guide says the free Atlas deployment needs no credit card.

Can my web page talk to Atlas directly with a plain web request?

Not anymore. The Data API that allowed it has reached end of life; use an official driver on your server.

What happens if my free cluster gets busy?

Above 100 operations per second Atlas slows the cluster down and queues the extra work.

Where is my data stored?

In the cloud provider and region you pick when creating the cluster, on AWS, Google Cloud or Microsoft Azure.