# MongoDB Atlas — card for AI agents

Fully-managed cloud database platform for storing and querying data.

Maker: MongoDB · category: Databases and backends

## Price (official page)
- Free tier: 512MB storage, shared RAM and vCPU, up to 100 ops/second
- Paid from $9/month
- Usage price: $0.08/hour for M10 dedicated cluster (starts at $56.94/month)
- Pricing page: https://www.mongodb.com/pricing (checked 2026-10-09)
- Note: 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.

## Connect
- npm: `npm install mongodb`
- PyPI: `pip install pymongo`
- Repository: https://github.com/mongodb/node-mongodb-native

## For AI agents on MongoDB's own site (AgentGid check 2026-11-13: 3 of 6)
- llms.txt: https://www.mongodb.com/llms.txt
- Docs pages as Markdown: 12% of the pages llms.txt lists
- OpenAPI description: none found at the usual places
- Official MCP server: no · official SDK: yes · status page: no
- robots.txt lets AI assistants (ChatGPT-User, Claude-User) read the site: yes

## A year of price history (Internet Archive copies of the pricing page, read by rules)
- Months read: 13 (2025-10 to 2026-10) of https://www.mongodb.com/pricing
- Lowest $/month figure on the page: $9 in 2025-10, $9 in 2026-10
- A figure is any "$X/month" on the page (plans, seats and add-ons alike); open the archived copy to see which plan it is.

## Price history in AgentGid's catalog (since 2026-10-09)
- Changes recorded: 0 (a vendor price change or an editor's correction; the evidence archive keeps the pricing page of each date)

## Other APIs in this category
- DuckDB: https://agentgid.com/apis/duckdb/agent.md
- Redis: https://agentgid.com/apis/redis/agent.md
- Firebase: https://agentgid.com/apis/firebase/agent.md
- Upstash Redis: https://agentgid.com/apis/upstash/agent.md
- Neon: https://agentgid.com/apis/neon/agent.md

## Links
- AgentGid page: https://agentgid.com/apis/mongodb/


## MongoDB Atlas: a hosted database for app data

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.

### Where to use 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: Save each conversation as one document with its messages, so the bot can reload the thread when the customer returns. (idea, not from the official pages)
- Product catalog with varied fields: Keep products whose details differ, like sizes for shoes and voltage for lamps, in one collection without changing a table layout. (idea, not from the official pages)

### How to start
- Create a free Atlas cluster, load the sample data and create a database user; save the user name and password somewhere safe.
- Install the official Node.js driver.

```
npm install mongodb@7.8
```

- 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' });
```


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

### Good to know
- The free cluster has 512 MB of storage and allows 100 reads and writes per second; above that Atlas slows it down.
- Atlas pauses a free cluster after 30 days with no connections; export your data if you stop using it.
- Only addresses on your project's access list can connect. Allowing every address works but exposes the database.
- The old Atlas Data API, which took plain web requests, has ended. Connect through an official driver from your server instead.
- MongoDB may train on data you put into its built-in AI features unless you opt out, which needs a payment method on file.

Checked 2026-11-10 against: https://www.mongodb.com/pricing, https://www.mongodb.com/products/platform/atlas-database, https://www.mongodb.com/docs/atlas/, https://www.mongodb.com/docs/atlas/getting-started/, https://www.mongodb.com/docs/atlas/reference/free-shared-limitations/, https://www.mongodb.com/docs/atlas/reference/free-shared-limitations.md, https://www.mongodb.com/docs/atlas/security/ip-access-list.md, https://www.mongodb.com/docs/atlas/cloud-providers-regions.md, https://www.mongodb.com/docs/atlas/app-services/data-api/, https://www.mongodb.com/docs/atlas/app-services/data-api.md, https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-overview.md, https://www.mongodb.com/docs/drivers/node/current/, https://www.mongodb.com/docs/drivers/node/current/get-started.md, https://www.mongodb.com/docs/drivers/node/current/crud/insert.md, https://www.mongodb.com/docs/drivers/node/current/connect/connection-troubleshooting.md, https://www.mongodb.com/docs/mcp-server/overview.md, https://www.mongodb.com/docs/mcp-server/get-started.md, https://www.mongodb.com/docs/llms.txt, https://www.mongodb.com/legal/terms-and-conditions/cloud, https://www.mongodb.com/legal/data-processing-agreement, https://registry.npmjs.org/mongodb/latest, https://pypi.org/pypi/pymongo/json

### Mistakes to avoid
- Don't: Calling the Atlas Data API (data/v1/action/insertOne with an apiKey header) from old tutorials. → Do: Use the official driver (mongodb for Node.js, pymongo for Python) from your server. (The Data API has reached end of life.)
- Don't: Following the guide's "Node.js v16.20.1 or later" and installing mongodb 7.8 on Node 16 or 18. → Do: 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.)
- Don't: Pasting a password with @, :, / or ? straight into the connection string. → Do: Percent-encode the user name and password, for example with encodeURIComponent. (Unencoded special characters break the address and give "bad auth" errors.)
- Don't: Adding 0.0.0.0/0 to the access list to make a connection error go away. → Do: 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.)
- Don't: Creating a new MongoClient for every request in a busy server. → Do: 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.

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
