atlas-connect-cluster
Connect to MongoDB Atlas cluster and get back a connectionId to pass to the other MongoDB tools. Each call establishes a new, independent connection — multiple connections can be active at the same time.
How to use it
atlas-connect-cluster is exposed by the Mongodb MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the atlas-connect-cluster tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Mongodb MCP Server
npx -y mongodb-mcp-server@latest --readOnlyOther tools in Mongodb MCP Server (39)
Run an aggregation against a MongoDB collection
Run an aggregation against a MongoDB database
Allow Ip/CIDR ranges to access your MongoDB Atlas clusters.
Create a MongoDB Atlas cluster (M10–M80, replica set or single shard). Compute autoscaling is enabled by default: min instance size is set to the selected instance size, max is set two tiers above. Disk autoscaling is always enabled. Encryption at rest with customer-managed keys (CMK) is supported,
Create an MongoDB Atlas database user
Create a free MongoDB Atlas cluster
Create a MongoDB Atlas project
Get 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 (max 50) slow query logs
List supported MongoDB Atlas regions for a cloud provider.
Inspect Ip/CIDR ranges with access to your MongoDB Atlas clusters.
Inspect metadata of a MongoDB Atlas cluster
List 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 others.
List MongoDB Atlas clusters
List MongoDB Atlas database users
List MongoDB Atlas organizations
List MongoDB Atlas projects.
Describe the indexes for a collection
Describe the schema for a collection
Gets the size of the collection
Connect to a MongoDB instance
Gets the number of documents in a MongoDB collection using db.collection.count() and query as an optional filter parameter
Creates a new collection in a database. If the database doesn't exist, it will be created automatically.
Create an index for a collection
Returns statistics that reflect the use state of a single database
Removes all documents that match the filter from a MongoDB collection
Close a MongoDB connection and revoke its connectionId.
Removes a collection or view from the database. The method also removes any indexes associated with the dropped collection.
Removes the specified database, deleting the associated data files
Drop an index for the provided database and collection.
Returns statistics describing the execution of the winning plan chosen by the query optimizer for the evaluated method
Export a query or aggregation results in the specified EJSON format.
Run a find query against a MongoDB collection
Insert an array of documents into a MongoDB collection. If the list of documents is above com.mongodb/maxRequestPayloadBytes, consider inserting them in batches.
List all collections for a given database
List the active MongoDB connections and their connectionIds. Use this to find a connectionId established earlier.
List all databases for a MongoDB connection
Returns the most recent logged mongod events
Renames a collection in a MongoDB database
Updates 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.