Connect your account, then chat with AI to run tools.
List collections, inspect schemas, read and paginate documents, run aggregations, and insert or update records in Atlas or self-hosted MongoDB from your AI client.
Try this workflow
Explore an unfamiliar database
List collections in my MongoDB database, inspect the largest collection, then show five sample documents and summarize the main fields.
Opens MCPBundles Studio with this server selected. After sign-in, chat and run tools from the same thread.
Browse all toolsBuilt for
App builders, operators, and agents working with document data in MongoDB
Explore an unfamiliar database
Uses list collections, inspect collection, and get documents.
List collections in my MongoDB database, inspect the largest collection, then show five sample documents and summarize the main fields.
Find widgets by store
Typical app-data read with query, sort, skip, and limit.
In the widgets collection, list documents where storeId matches a given id, sorted by updated date, with skip and limit for pagination.
What is MongoDB MCP?
It connects your AI assistant to a MongoDB database you already use — Atlas, DocumentDB, or a local instance via MCPBundles Desktop — so the agent can list collections, read documents, run aggregations, and apply inserts or updates with your permission.
Do I need separate username and password fields?
Not when you connect with a full mongodb:// or mongodb+srv:// connection string that already includes credentials. Add optional fields only if you build the URI from host and password separately.
Domain knowledge for MongoDB — workflow patterns, data models, and gotchas for your AI agent.
MongoDB stores data in databases → collections → documents. Documents are JSON-like with _id. Works with Atlas, self-hosted, DocumentDB, Cosmos DB MongoDB API. Connection string format: mongodb+srv:// or mongodb://.
| Setup | Fields | Routing |
|---|---|---|
| Atlas / remote MongoDB | connection string (preferred) or host + database + optional user/password | Direct MongoDB wire protocol |
| Local MongoDB on this machine | database, user, password, port (+ desktop tunnel) | MCPBundles Desktop to localhost |
Run a read-only aggregation pipeline on one collection ($match, $group, $lookup, etc.). Pass pipeline as a JSON array. Results are capped for safety.
Create an empty collection in the current database.
Create an index on a collection. Pass keys as JSON with field names and 1 (asc) or -1 (desc).
Delete documents in a collection that match a filter. Query must not be empty {} — narrow the filter so you only remove intended records.
Drop a collection and all of its documents. Requires confirm=true.
Drop a named index. Cannot drop the default _id index.
Return MongoDB explain output for a find filter or aggregation pipeline. Use to debug slow queries and index usage before running large reads.
Export collection documents to JSON or JSONL. Small exports return inline data; larger exports spill to a presigned S3 download_url (over ~512 KB). Pa...
Get a compact, token-efficient schema description optimized for AI text-to-query generation
Read documents from one MongoDB collection. Pass document_id for a single record by _id (use the _id string from a prior list result). Omit document_i...
Get MongoDB server version and build information
Bulk-insert documents from a file. Use file_content_base64 for payloads up to 1 MB, file_url for larger HTTP(S) sources (including export spillover li...
Insert one or more documents into a MongoDB collection. Pass an array of JSON objects; _id may be omitted for server-generated ObjectIds. Use inspect ...
Inspect one collection: estimated document count, index names, and a few sample documents to learn field shapes before writing filters for get documen...
List all collections in the current database
List all databases in the MongoDB instance with size information
List index definitions for one collection (keys, uniqueness, TTL, partial filters). Use before create index or drop index.
Replace one document by _id with a full new document body. Unlike update documents, this overwrites the entire document. Set upsert to create the docu...
Find documents across multiple collections in one database. Applies the same filter to up to 20 collections (cap with max_collections). Each hit inclu...
Update all documents in a collection that match a filter. Pass a non-empty query and an update JSON object with operators such as $set. Set upsert tru...
It connects your AI assistant to a MongoDB database you already use — Atlas, DocumentDB, or a local instance via MCPBundles Desktop — so the agent can list collections, read documents, run aggregations, and apply inserts or updates with your permission.
Not when you connect with a full mongodb:// or mongodb+srv:// connection string that already includes credentials. Add optional fields only if you build the URI from host and password separately.
Add the MCPBundles server URL to your MCP client configuration (Claude Desktop, Cursor, VS Code, etc.). The URL format is: https://mcp.mcpbundles.com/bundle/mongodb. Authentication is handled automatically.
MongoDB provides 20 tools that can be called by AI agents, along with a SKILL.md that gives your AI agent domain knowledge about when and how to use them.
MongoDB uses API Key. MongoDB requires credentials. Connect via MCPBundles and authentication is handled automatically.
Connect MongoDB to any MCP client in minutes
https://mcp.mcpbundles.com/bundle/mongodbThe link prefills the Add custom connector dialog — you still review the values and click Add, then Connect to complete OAuth.
MongoDB and paste the MCP URL into Remote MCP server URL.Custom connectors at claude.ai require a paid Claude plan (Pro, Max, Team, or Enterprise).
More developer tools integrations you might like
Amazon Redshift is a fast, fully managed, petabyte-scale data warehouse service in the cloud. Run co...
Vantage provides an API that allows users to interact with cloud cost management tools, offering ins...
Analyze CIDR networks, calculate subnet details, and check IP membership. Supports IPv4 and IPv6. Pu...
Generic web primitives for any agent: resolve a domain to an IP, send a HEAD request to confirm a UR...
SmartEngage is an API-driven communication platform that enables businesses to automate and personal...
Sonar Cloud is a code quality and security management tool that provides automatic static code analy...