MongoDB MCP for AI agents

Agents read MongoDB MCP at once. Changes and sends are held for a person's approval by default.

About MongoDB MCP

MongoDB MCP lets authorized agents explore and manage MongoDB Atlas resources, databases, collections, documents, indexes, performance data, and MongoDB knowledge sources.

What an agent can do in MongoDB MCP

Every MongoDB MCP action is classed by the platform as a read, a change or a send. Reads run at once. Changes and sends are held for a person by default.

Runs at once (reads)

Looks things up in MongoDB MCP without asking first. 21 actions.

  • AggregateRun an aggregation against a MongoDB collection
  • Aggregate-dbRun an aggregation against a MongoDB database
  • Atlas-get-performance-advisorGet MongoDB Atlas performance advisor recommendations and suggestions, which includes the operations: suggested indexes, drop index suggestions, schema suggestions, and a sample of the most recent (ma
  • Atlas-inspect-access-listInspect Ip/CIDR ranges with access to your MongoDB Atlas clusters.
  • Atlas-inspect-clusterInspect metadata of a MongoDB Atlas cluster
  • Atlas-list-alertsList triggered alerts for a MongoDB Atlas project. These are alerts Atlas has raised, not the alert configurations that define them. Defaults to OPEN alerts; set status to TRACKING or CLOSED to see ot
  • Atlas-list-clustersList MongoDB Atlas clusters
  • Atlas-list-db-usersList MongoDB Atlas database users
  • Atlas-list-orgsList MongoDB Atlas organizations
  • Atlas-list-projectsList MongoDB Atlas projects.
  • Atlas-streams-discoverDiscover and inspect Atlas Stream Processing resources. Also use for 'why is my processor failing', 'what workspaces do I have', 'show processor stats', or 'check processor health'. Use 'list-workspac
  • Collection-indexesDescribe the indexes for a collection
Show all 21
  • Collection-schemaDescribe the schema for a collection
  • Collection-storage-sizeGets the size of the collection
  • CountGets the number of documents in a MongoDB collection using db.collection.count() and query as an optional filter parameter
  • Db-statsReturns statistics that reflect the use state of a single database
  • ExplainReturns statistics describing the execution of the winning plan chosen by the query optimizer for the evaluated method
  • FindRun a find query against a MongoDB collection
  • List-collectionsList all collections for a given database
  • List-databasesList all databases for a MongoDB connection
  • Remote-atlas-connectConnect to MongoDB Atlas cluster

Held for approval by default (changes and sends)

Held for a person's approval by default. The approval is recorded and the action is sent once, never twice, with 10 seconds to undo. 20 actions.

  • Atlas-create-access-listAllow Ip/CIDR ranges to access your MongoDB Atlas clusters.
  • Atlas-create-clusterCreate a MongoDB Atlas cluster (M10–M80, replica set or single shard, single or multi-region). Compute autoscaling is enabled by default: min instance size is set to the selected instance size, max is
  • Atlas-create-db-userCreate an MongoDB Atlas database user
  • Atlas-create-free-clusterCreate a free MongoDB Atlas cluster
  • Atlas-create-projectCreate a MongoDB Atlas project
  • Atlas-load-sample-datasetLoad a MongoDB sample dataset into an Atlas cluster, or check the status of a previously-initiated load. To start a new load, provide `clusterName` — the load runs asynchronously and the response incl
  • Atlas-pause-resume-clusterPause or resume a dedicated (M10+) MongoDB Atlas cluster (Free and Flex clusters cannot be paused). Pause: paused clusters are unavailable for connections and do not incur compute costs. If the cluste
  • Atlas-streams-buildCreate Atlas Stream Processing resources. Use this tool for 'set up a Kafka pipeline', 'create a workspace', 'add a connection', or 'deploy a processor'. Use resource='workspace' to create a new works
  • Atlas-streams-manageManage Atlas Stream Processing resources: start/stop processors, modify pipelines, update configurations. Also use for 'change the pipeline', 'scale up my processor', or 'update my workspace tier'. Co
  • Atlas-streams-teardownDelete Atlas Stream Processing resources. Also use for 'remove my workspace', 'disconnect a source', 'delete all processors', or 'clean up my streams environment'. Performs basic safety checks before
  • Atlas-upgrade-clusterUpgrade a MongoDB Atlas cluster tier. Upgrades Free (M0) clusters to Flex or M10 Dedicated, or Flex clusters to M10 Dedicated. The upgrade path is determined automatically from the current tier unless
  • Create-collectionCreates a new collection in a database. If the database doesn't exist, it will be created automatically.
Show all 20
  • Create-indexCreate an index for a collection
  • Delete-manyRemoves all documents that match the filter from a MongoDB collection
  • Drop-collectionRemoves a collection or view from the database. The method also removes any indexes associated with the dropped collection.
  • Drop-databaseRemoves the specified database, deleting the associated data files
  • Drop-indexDrop an index for the provided database and collection.
  • Insert-manyInsert an array of documents into a MongoDB collection. If the list of documents is above com.mongodb/maxRequestPayloadBytes, consider inserting them in batches.
  • Rename-collectionRenames a collection in a MongoDB database
  • Update-manyUpdates all documents that match the specified filter for a collection. If the list of documents is above com.mongodb/maxRequestPayloadBytes, consider updating them in batches.

Changes wait in Needs you

Changes and sends in MongoDB MCP are held for a person's approval by default. The approval is recorded, and the action is sent once, never twice, with 10 seconds to undo.

How approvals work

MongoDB MCP questions

Can an agent change data in MongoDB MCP on its own?

Not by default. Changes and sends in MongoDB MCP are held for a person's approval. The approval is recorded, and the action is sent once, never twice, with 10 seconds to undo.

What can an agent read in MongoDB MCP?

This connector lists 21 read actions. Reads run at once, without waiting for approval.

How does MongoDB MCP connect?

It connects with Server-to-server OAuth. Connectors are built and maintained by third-party developers; availability is confirmed during scoping.

Bring MongoDB MCP to your agents.