MongoDB Clusters API

Returns, adds, edits, and removes database deployments. Changes to cluster configurations can affect costs. This resource requires your Project ID.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 22

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/atlas/v2/clusters List all clusters across all projects · Return All Authorized Clusters in All Projects #
Ask an LLM
“Which MongoDB clusters do I have access to across every project?”
“Can I see every cluster in my organization in one list?”
Tell an agent
List all clusters across all projects.
Show every authorized cluster I can access.
GET /api/atlas/v2/groups/{groupId}/clusters List clusters in one project · Return All Clusters in One Project #
Ask an LLM
“What clusters are running in a single project?”
“Can I include clusters with retained backups in a project's list?”
Tell an agent
List the clusters in project {groupId}.
Show project {groupId}'s clusters with retained backups set to {includeDeletedWithRetainedBackups}.
POST /api/atlas/v2/groups/{groupId}/clusters Create a cluster in one project · Create One Cluster in One Project #
Ask an LLM
“How do I spin up a new MongoDB cluster in a project?”
“Can I create a cluster with asymmetric shards or a specific instance size?”
Tell an agent
Create a cluster named {name} in project {groupId}.
Create a {clusterType} cluster {name} in project {groupId} with {replicationSpecs}.
GET /api/atlas/v2/groups/{groupId}/clusters/provider/regions List cloud regions available for clusters · Return All Cloud Provider Regions #
Ask an LLM
“Which cloud regions can I deploy a cluster into at a given tier?”
“What regions support multi-cloud clusters for a project?”
Tell an agent
List cloud provider regions for project {groupId}.
Show regions for tier {tier} in project {groupId}.
POST /api/atlas/v2/groups/{groupId}/clusters/tenantUpgrade Upgrade a shared-tier cluster to Flex or Dedicated · Upgrade One Shared-Tier Cluster #
Ask an LLM
“How do I upgrade a shared-tier cluster to a Flex or M10+ cluster?”
“Can I choose the instance size and number of shards when upgrading a shared cluster?”
Tell an agent
Upgrade the shared-tier cluster {clusterName} in project {groupId} to a {clusterType} cluster.
Upgrade cluster {clusterName} in project {groupId} to {numShards} shards.
POST /api/atlas/v2/groups/{groupId}/clusters/tenantUpgradeToServerless Upgrade a shared-tier cluster to a serverless instance · Upgrade One Shared-Tier Cluster to One Serverless Instance #
Ask an LLM
“Can I still upgrade a shared-tier cluster to a serverless instance?”
“What settings are required to convert a shared cluster into a serverless instance?”
Tell an agent
Upgrade the shared-tier cluster {clusterName} in project {groupId} to a serverless instance.
Convert cluster {clusterName} in project {groupId} to serverless with provider settings {providerSettings}.
DELETE /api/atlas/v2/groups/{groupId}/clusters/{clusterName} Delete a cluster from a project · Remove One Cluster from One Project #
Ask an LLM
“How do I delete a cluster from a project?”
“Does a cluster need termination protection disabled to be deleted?”
Tell an agent destructive · confirm first
Delete cluster {clusterName} from project {groupId}.
Remove cluster {clusterName} in project {groupId} with retention set to {retainBackups}.
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName} Get one cluster in a project · Return One Cluster from One Project #
Ask an LLM
“What are the details of a specific cluster in a project?”
“Can I see a Flex cluster's details by its name?”
Tell an agent
Get cluster {clusterName} in project {groupId}.
Show the details of cluster {clusterName} in project {groupId}.
PATCH /api/atlas/v2/groups/{groupId}/clusters/{clusterName} Update a cluster's configuration · Update One Cluster in One Project #
Ask an LLM
“How do I change a cluster's topology or backup settings?”
“Can I pause a cluster or turn on termination protection?”
Tell an agent
Update cluster {clusterName} in project {groupId}.
Set backup enabled to {backupEnabled} on cluster {clusterName} in project {groupId}.
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/autoScalingConfiguration Get auto scaling settings for a sharded cluster · Return Auto Scaling Configuration for One Sharded Cluster #
Ask an LLM
“What auto scaling configuration does my sharded cluster use?”
“Can I check each shard's scaling independently?”
Tell an agent
Show the auto scaling configuration of sharded cluster {clusterName} in project {groupId}.
Check whether cluster {clusterName} in project {groupId} scales each shard independently.
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/processArgs Get a cluster's advanced configuration · Return Advanced Configuration Options for One Cluster #
Ask an LLM
“What read concern, write concern and oplog limits does my cluster use?”
“Can I see the advanced configuration options for a cluster?”
Tell an agent
Show the advanced configuration of cluster {clusterName} in project {groupId}.
Get the read concern and oplog limits for cluster {clusterName} in project {groupId}.
PATCH /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/processArgs Update a cluster's advanced configuration · Update Advanced Configuration Options for One Cluster #
Ask an LLM
“How do I raise the oplog retention or change the default write concern?”
“Can I disable JavaScript execution on a cluster?”
Tell an agent
Set the oplog retention of cluster {clusterName} in project {groupId} to {oplogMinRetentionHours} hours.
Disable JavaScript execution on cluster {clusterName} in project {groupId}.
POST /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/restartPrimaries Test failover on a cluster · Test Failover for One Cluster #
Ask an LLM
“How do I test what happens when a cluster's primary goes down?”
“Can I trigger a failover test on a cluster?”
Tell an agent
Start a failover test on cluster {clusterName} in project {groupId}.
Trigger a primary failover on cluster {clusterName} in project {groupId}.
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/status Check progress of changes made to a cluster · Return Status of All Cluster Operations #
Ask an LLM
“Has my cluster change finished processing?”
“What status do all changes to a cluster have right now?”
Tell an agent
Show the status of all changes made to cluster {clusterName} in project {groupId}.
Check whether cluster {clusterName} in project {groupId} has finished processing my changes.
POST /api/atlas/v2/groups/{groupId}/clusters/{clusterName}:grantMongoDBEmployeeAccess Grant MongoDB employee access to a cluster · Grant MongoDB Employee Cluster Access for One Cluster #
Ask an LLM
“How do I give a MongoDB employee temporary access to a cluster?”
“Can I set an expiration date when granting employee access?”
Tell an agent
Grant MongoDB employee access to cluster {clusterName} in project {groupId} until {expirationTime} with grant type {grantType}.
Give a MongoDB employee temporary access to cluster {clusterName} in project {groupId}.
POST /api/atlas/v2/groups/{groupId}/clusters/{clusterName}:pinFeatureCompatibilityVersion Pin a cluster's feature compatibility version · Pin Feature Compatibility Version for One Cluster in One Project #
Ask an LLM
“How do I pin a cluster's feature compatibility version to the current version?”
“Can I set an expiration date on an FCV pin?”
Tell an agent
Pin the feature compatibility version of cluster {clusterName} in project {groupId}.
Pin FCV on cluster {clusterName} in project {groupId} until {expirationDate}.
POST /api/atlas/v2/groups/{groupId}/clusters/{clusterName}:revokeMongoDBEmployeeAccess Revoke MongoDB employee access to a cluster · Revoke MongoDB Employee Cluster Access for One Cluster #
Ask an LLM
“How do I revoke a MongoDB employee's access to a cluster?”
“Can I take away employee access I previously granted?”
Tell an agent destructive · confirm first
Revoke the MongoDB employee access to cluster {clusterName} in project {groupId}.
Take away the employee access granted to cluster {clusterName} in project {groupId}.
POST /api/atlas/v2/groups/{groupId}/clusters/{clusterName}:unpinFeatureCompatibilityVersion Unpin a cluster's feature compatibility version · Unpin Feature Compatibility Version for One Cluster in One Project #
Ask an LLM
“How do I unpin the feature compatibility version on a cluster?”
“Is unpinning FCV available on rapid release clusters?”
Tell an agent
Unpin the feature compatibility version of cluster {clusterName} in project {groupId}.
Remove the FCV pin from cluster {clusterName} in project {groupId}.
POST /api/atlas/v2/groups/{groupId}/sampleDatasetLoad/{name} Load a sample dataset into a cluster · Load Sample Dataset into One Cluster #
Ask an LLM
“How do I load the sample dataset into a cluster?”
“Can I request a sample dataset for a cluster?”
Tell an agent
Load the sample dataset into cluster {name} in project {groupId}.
Request the sample dataset for cluster {name} in project {groupId}.
GET /api/atlas/v2/groups/{groupId}/sampleDatasetLoad/{sampleDatasetId} Check a sample dataset load on a cluster · Return Status of Sample Dataset Load for One Cluster #
Ask an LLM
“Has the sample dataset finished loading into my cluster?”
“What is the status of a sample dataset load?”
Tell an agent
Show the sample dataset load status {sampleDatasetId} in project {groupId}.
Check whether sample dataset {sampleDatasetId} has finished loading in project {groupId}.
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/adaptiveSettings Get a cluster's adaptive settings · Return Adaptive Settings for One Cluster #
Ask an LLM
“What adaptive settings does my cluster use?”
“Can I see the effective adaptive settings for a cluster?”
Tell an agent
Show the adaptive settings of cluster {clusterName} in project {groupId}.
Get the effective adaptive settings for cluster {clusterName} in project {groupId}.
PATCH /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/adaptiveSettings Update a cluster's adaptive settings · Update Adaptive Settings for One Cluster #
Ask an LLM
“How do I change adaptive settings on a cluster?”
“Can I override adaptive settings for a cluster?”
Tell an agent
Set adaptive settings {adaptiveSettingsOverrides} on cluster {clusterName} in project {groupId}.
Override adaptive settings for cluster {clusterName} in project {groupId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mongodb:mongodb-clusters-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mongodb-clusters-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mongodb Clusters API
  version: '2.0'
  license:
    name: CC BY-NC-SA 3.0 US
    url: https://creativecommons.org/licenses/by-nc-sa/3.0/us/
  termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions
  x-refined-note:
  - x-xgen-sha differs across the merged source definitions and was not carried
  description: 'Operations tagged Clusters across 2 of this provider''s published API definitions: mongodb-atlas-openapi.yaml, mongodb-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://cloud.mongodb.com
security:
- ServiceAccounts: []
- DigestAuth: []
tags:


# --- truncated at 32 KB (372 KB total) ---
# Full source: https://artifacts.apis.io/mongodb/openapi/mongodb-clusters-api-openapi.yml