MongoDB MCP
mongodb_mcpMongoDB MCP lets authorized agents explore and manage MongoDB Atlas resources, databases, collections, documents, indexes, performance data, and MongoDB knowledge sources.
Acciones disponibles (41)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
AggregateMONGODB_MCP_AGGREGATEAcciónRun an aggregation against a MongoDB collection
MONGODB_MCP_AGGREGATEAcciónRun an aggregation against a MongoDB collection
Parámetros de entrada
databasestringObligatorioDatabase name
pipelinearrayObligatorioAn array of aggregation stages to execute. If the user has asked for a vector search, `$vectorSearch` **MUST** be the first stage of the pipeline (or the first stage of a `$unionWith` sub-pipeline only when explicitly combining unrelated result sets — for hybrid full-text + vector search, use `$rankFusion` or `$scoreFusion` instead, see below). If the user has asked for lexical/Atlas search, use `$search` instead of `$text`. ### Usage Rules for `$vectorSearch` - **Index Type Detection:** Use the collection-indexes tool to determine if the target field has a classic vector index (type: 'vector') or an auto-embed index (type: 'autoEmbed'). - **Classic Vector Search (type: 'vector'):** Use 'queryVector' with embeddings as an array of numbers. - **Auto-Embed Vector Search (type: 'autoEmbed'):** Use 'query' - MongoDB automatically generates embeddings at query time. Do NOT use 'queryVector' or 'embeddingParameters' for auto-embed indexes. - **Unset embeddings:** Unless the user explicitly requests the embeddings, add an `$unset` stage **at the end of the pipeline** to remove the embedding field and avoid context limits. **The $unset stage in this situation is mandatory**. - **Pre-filtering:** If the user requests additional filtering, include filters in `$vectorSearch.filter` only for pre-filter fields in the vector index. NEVER include fields in $vectorSearch.filter that are not part of the vector index. - **Post-filtering:** For all remaining filters, add a $match stage after $vectorSearch. - If unsure which fields are filterable, use the collection-indexes tool to determine valid prefilter fields. - If no requested filters are valid prefilters, omit the filter key from $vectorSearch. ### Usage Rules for `$search` - Include the index name, unless you know for a fact there's a default index. If unsure, use the collection-indexes tool to determine the index name. - The `$search` stage supports multiple operators, such as 'autocomplete', 'text', 'geoWithin', and others. Choose the appropriate operator based on the user's query. If unsure of the exact syntax, consult the MongoDB Atlas Search documentation, which can be found here: https://www.mongodb.com/docs/atlas/atlas-search/operators-and-collectors/ ### Usage Rules for `$rankFusion` and `$scoreFusion` (Hybrid Search) Use these stages when the user wants to combine full-text (`$search`) and vector (`$vectorSearch`) retrieval into a single fused result set. **Prefer native fusion over a `$unionWith` + `$group` workaround** — the workaround averages incompatible score scales and produces wrong rankings. **Which stage to use:** - `$rankFusion` (MongoDB 8.0+) — Reciprocal Rank Fusion. The recommended default. Normalizes scores across incompatible scales automatically. No score tuning needed. - `$scoreFusion` (MongoDB 8.2+) — Score-based fusion. Use when the user needs explicit per-pipeline weights, score normalisation (sigmoid / minMaxScaler), or a custom combination expression. **Construction rules:** - `$rankFusion` / `$scoreFusion` MUST be the first stage of the top-level pipeline. - Sub-pipelines go inside `input.pipelines` as a named map (not an array). Each name must be non-empty, must not start with `$`, and must not contain `.` or null bytes. - Allowed stages inside sub-pipelines: `$search`, `$vectorSearch`, `$match`, `$sort`, `$geoNear`, `$skip`, `$limit`. `$project` and `$unset` are NOT allowed inside sub-pipelines. - Do field shaping (`$project` / `$unset`) only AFTER the fusion stage, at the root. - Both a vectorSearch (or autoEmbed) index AND a search (lexical) index must exist on the collection. Use the collection-indexes tool to confirm both before running a hybrid query. - Add a `$limit` stage after the fusion stage to cap the final result set. - Add `$unset` at the end to remove embedding fields and avoid context bloat. ### Usage Rules for `$rerank` (Native Reranking) Use this stage when the user wants to reorder a set of candidate documents using a cross-encoder reranker model. **Construction rules:** - `$rerank` can be any stage in the pipeline on an Atlas cluster running MongoDB 8.3 or higher. - It is recommended to use `$rerank` after a sorted pipeline, e.g. `$search`, `$vectorSearch`, `$rankFusion`, `$scoreFusion`, or [`$match`, `$sort`]. - $rerank must be enabled via the Native Reranking Project Setting - Set `numDocsToRerank` as the number of documents passed into `$rerank`. This will also limit the number of documents returned by `$rerank` - Set `path` as a field name or an array of field names that exist in all documents. Use `$match` or `$set` before `$rerank` to validate no fields are missing. - Add `$addFields` after `$rerank` to retrieve the reranker score. **`$rerank` example (recommended default):** ```javascript [ { $match: { description: { $exists: true }, name: { $exists: true } } }, { $sort: { lastUpdated: -1 } }, { $rerank: { query: { text: "query text including instructions" }, model: "rerank-2.5", numDocsToRerank: 100, path: ["description", "name"] } }, { $addFields: { rerankScore: { $meta: "score" } } } ] ```
collectionstringObligatorioCollection name
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
responseBytesLimitnumberThe maximum number of bytes to return in the response. This value is capped by the server's configured maximum and cannot be exceeded.
Parámetros de salida
countanyObligatorioThe total number of documents returned by the aggregation pipeline
documentsarrayObligatorioThe documents returned by the aggregation pipeline
appliedLimitsstring[]ObligatorioThe limits applied to the aggregation pipeline
Aggregate-dbMONGODB_MCP_AGGREGATE_DBAcciónRun an aggregation against a MongoDB database
MONGODB_MCP_AGGREGATE_DBAcciónRun an aggregation against a MongoDB database
Parámetros de entrada
databasestringObligatorioDatabase name
pipelineobject[]ObligatorioAn array of aggregation stages to execute. The first stage must be a database-level aggregation stage (one of `$changeStream`, `$currentOp`, `$documents`, `$listLocalSessions`, `$queryStats`). https://www.mongodb.com/docs/manual/reference/mql/aggregation-stages/#db.aggregate---stages
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
responseBytesLimitnumberThe maximum number of bytes to return in the response. This value is capped by the server's configured maximum and cannot be exceeded.
Parámetros de salida
documentsarrayObligatorioThe documents returned by the aggregation pipeline
appliedLimitsstring[]ObligatorioThe limits applied to the aggregation pipeline
aggResultsCountnumberThe total number of documents returned by the aggregation pipeline
Atlas-create-access-listMONGODB_MCP_ATLAS_CREATE_ACCESS_LISTAcciónAllow Ip/CIDR ranges to access your MongoDB Atlas clusters.
MONGODB_MCP_ATLAS_CREATE_ACCESS_LISTAcciónAllow Ip/CIDR ranges to access your MongoDB Atlas clusters.
Parámetros de entrada
commentstringComment for the access list entries
projectIdstringObligatorioAtlas project ID
cidrBlocksstring[]CIDR blocks to allow access from
ipAddressesstring[]IP addresses to allow access from
Parámetros de salida
projectIdstringObligatorio
Atlas-create-clusterMONGODB_MCP_ATLAS_CREATE_CLUSTERAcciónCreate 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 set two tiers above. Disk autoscaling is always enabled. For encryption at rest, the CMK provider must already have a valid configuration in the Atlas project. The tool returns immediately, use the atlas-inspect-cluster tool to poll the cluster state for readiness (state: IDLE). Connection strings are unavailable until the cluster reaches IDLE state. Note to LLM: Omit instance size unless specified by the user. If provider and regions are not already known, ask for both together in a single question before calling this tool. Common, non-exhaustive region default mappings by provider:
AWS: "East Coast"/"Virginia"/"US East" → US_EAST_1, "Ohio" → US_EAST_2, "California"/"West Coast" → US_WEST_2, "Southeast Asia"/"APAC"/"Singapore" → AP_SOUTHEAST_1, "Europe"/"EU"/"Ireland" → EU_WEST_1.
GCP: "Central US" → CENTRAL_US, "Western US" → WESTERN_US, "Southeast Asia"/"APAC" → SOUTHEASTERN_ASIA_PACIFIC, "Europe"/"EU" → WESTERN_EUROPE.
AZURE: "East US" → US_EAST_2, "West US" → US_WEST_2, "Europe North" → EUROPE_NORTH, "Europe West" → EUROPE_WEST.
Default recommendation: AWS US_EAST_1.
User-specified regions not present in the mapping MUST be respected, rely on the tool to surface errors if a region is not supported.
MONGODB_MCP_ATLAS_CREATE_CLUSTERAcciónCreate 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 set two tiers above. Disk autoscaling is always enabled. For encryption at rest, the CMK provider must already have a valid configuration in the Atlas project. The tool returns immediately, use the atlas-inspect-cluster tool to poll the cluster state for readiness (state: IDLE). Connection strings are unavailable until the cluster reaches IDLE state. Note to LLM: Omit instance size unless specified by the user. If provider and regions are not already known, ask for both together in a single question before calling this tool. Common, non-exhaustive region default mappings by provider: AWS: "East Coast"/"Virginia"/"US East" → US_EAST_1, "Ohio" → US_EAST_2, "California"/"West Coast" → US_WEST_2, "Southeast Asia"/"APAC"/"Singapore" → AP_SOUTHEAST_1, "Europe"/"EU"/"Ireland" → EU_WEST_1. GCP: "Central US" → CENTRAL_US, "Western US" → WESTERN_US, "Southeast Asia"/"APAC" → SOUTHEASTERN_ASIA_PACIFIC, "Europe"/"EU" → WESTERN_EUROPE. AZURE: "East US" → US_EAST_2, "West US" → US_WEST_2, "Europe North" → EUROPE_NORTH, "Europe West" → EUROPE_WEST. Default recommendation: AWS US_EAST_1. User-specified regions not present in the mapping MUST be respected, rely on the tool to surface errors if a region is not supported.
Parámetros de entrada
backupstringenum`OFF`: no backups. `SNAPSHOT`: cloud backup snapshots, recommended for most workloads. `CONTINUOUS`: point-in-time restore, required for RPO-sensitive production workloads. Defaults to `SNAPSHOT`.
OFFSNAPSHOTCONTINUOUSregionsstring[]ObligatorioCloud provider regions in Atlas format using uppercase letters and underscores (e.g. US_EAST_1). The first region has the highest priority. Do not include duplicate regions.
providerstringObligatorioenumCloud provider for the cluster.
AWSGCPAZUREprojectIdstringObligatorioAtlas project ID to create the cluster in. Use the atlas-list-projects to find project IDs if not provided.
diskSizeGBnumberInitial disk size in GB. Disk autoscaling is always enabled regardless of this value. Omit unless explicitly specified by the user.
clusterNamestringObligatorioName of the cluster.
clusterTypestringenumCluster topology. Use `SHARDED` for single-shard clusters, requires M30 or higher. Defaults to `REPLICASET`.
REPLICASETSHARDEDinstanceSizestringenumInstance size. NVME and high-memory instances are not supported. Minimum M30 when clusterType is SHARDED. Defaults to M10 for projects with fewer than 2 existing clusters, M30 otherwise. Omit unless explicitly specified by the user.
M10M20M30M40M50M60M80mongoDBVersionstringenumMongoDB version to deploy. Use a pinned version for production environments where version stability is required. Defaults to `LATEST`.
7.08.0LATESTcomputeAutoScalingbooleanWhen true, enables compute autoscaling. Min instance size is set to the selected instance size, max is set two tiers above. Omit unless explicitly specified by the user.
encryptionAtRestProviderstringenumCustomer-managed key provider for encryption at rest. Defaults to the cluster's provider if a valid configuration exists. Use `NONE` to explicitly disable the feature. Omit unless explicitly specified by the user.
AWSAZUREGCPNONEterminationProtectionEnabledbooleanWhen true, prevents the cluster from being deleted until protection is explicitly disabled. Recommended for production clusters. Defaults to false.
Parámetros de salida
backupstringObligatorioenumOFFSNAPSHOTCONTINUOUSregionsstring[]ObligatorioproviderstringObligatorioenumAWSGCPAZUREclusterIdstringdiskSizeGBnumberclusterTypestringObligatorioenumREPLICASETSHARDEDinstanceSizestringObligatorioenumM10M20M30M40M50M60M80mongoDBVersionstringObligatorioenum7.08.0LATESTcomputeAutoScalingbooleanObligatorioencryptionAtRestProviderstringObligatorioenumAWSAZUREGCPNONEterminationProtectionEnabledbooleanObligatorio
Atlas-create-db-userMONGODB_MCP_ATLAS_CREATE_DB_USERAcciónCreate an MongoDB Atlas database user
MONGODB_MCP_ATLAS_CREATE_DB_USERAcciónCreate an MongoDB Atlas database user
Parámetros de entrada
rolesobject[]ObligatorioRoles for the new user
clustersstring[]Clusters to assign the user to, leave empty for access to all clusters
passwordstringPassword for the new user. IMPORTANT: If the user hasn't supplied an explicit password, leave it unset and under no circumstances try to generate a random one. A secure password will be generated by the MCP server if necessary.
usernamestringObligatorioUsername for the new user
projectIdstringObligatorioAtlas project ID
Parámetros de salida
passwordstringusernamestringObligatorio
Atlas-create-free-clusterMONGODB_MCP_ATLAS_CREATE_FREE_CLUSTERAcciónCreate a free MongoDB Atlas cluster
MONGODB_MCP_ATLAS_CREATE_FREE_CLUSTERAcciónCreate a free MongoDB Atlas cluster
Parámetros de entrada
namestringObligatorioName of the cluster
regionstringRegion of the cluster
projectIdstringObligatorioAtlas project ID to create the cluster in
Parámetros de salida
createdbooleanObligatorioWhether the cluster was created successfully
Atlas-create-projectMONGODB_MCP_ATLAS_CREATE_PROJECTAcciónCreate a MongoDB Atlas project
MONGODB_MCP_ATLAS_CREATE_PROJECTAcciónCreate a MongoDB Atlas project
Parámetros de entrada
orgIdstringObligatorioOrganization ID that will own the new project
projectNamestringObligatorioName for the new project
Parámetros de salida
orgIdstringObligatorioprojectNamestringObligatorio
Atlas-get-performance-advisorMONGODB_MCP_ATLAS_GET_PERFORMANCE_ADVISORAcciónGet 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
MONGODB_MCP_ATLAS_GET_PERFORMANCE_ADVISORAcciónGet 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
Parámetros de entrada
sincestringdate-timeDate to get slow query logs since. Must be a string in ISO 8601 format. Only relevant for the slowQueryLogs operation.
projectIdstringObligatorioAtlas project ID to get performance advisor recommendations. The project ID is a hexadecimal identifier of 24 characters. If the user has only specified the name, use the `atlas-list-projects` tool to retrieve the user's projects with their ids.
namespacesstring[]Namespaces to get slow query logs. Only relevant for the slowQueryLogs operation.
operationsstring[]Operations to get performance advisor recommendations
clusterNamestringObligatorioAtlas cluster name to get performance advisor recommendations
Parámetros de salida
projectIdstringObligatorioclusterNamestringObligatorioslowQueryLogsarraysuggestedIndexesarrayschemaSuggestionsarraydropIndexSuggestionsobject
Atlas-inspect-access-listMONGODB_MCP_ATLAS_INSPECT_ACCESS_LISTAcciónInspect Ip/CIDR ranges with access to your MongoDB Atlas clusters.
MONGODB_MCP_ATLAS_INSPECT_ACCESS_LISTAcciónInspect Ip/CIDR ranges with access to your MongoDB Atlas clusters.
Parámetros de entrada
projectIdstringObligatorioAtlas project ID
Parámetros de salida
entriesobject[]ObligatorioprojectIdstringObligatoriototalCountnumberObligatorio
Atlas-inspect-clusterMONGODB_MCP_ATLAS_INSPECT_CLUSTERAcciónInspect metadata of a MongoDB Atlas cluster
MONGODB_MCP_ATLAS_INSPECT_CLUSTERAcciónInspect metadata of a MongoDB Atlas cluster
Parámetros de entrada
projectIdstringObligatorioAtlas project ID
clusterNamestringObligatorioAtlas cluster name
Parámetros de salida
namestringObligatoriostatestringObligatoriopausedbooleanObligatorioregionstringproviderstringinstanceSizestringObligatorioinstanceTypestringObligatorioenumFREEDEDICATEDFLEXmongoDBVersionstringObligatorioconnectionStringsobjectObligatorio
Atlas-list-alertsMONGODB_MCP_ATLAS_LIST_ALERTSAcciónList 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.
MONGODB_MCP_ATLAS_LIST_ALERTSAcciónList 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.
Parámetros de entrada
limitintegerMax results per page.
statusstringenumStatus of the alerts to return. Defaults to OPEN. TRACKING means the alert condition exists but hasn't persisted beyond the notification delay. OPEN means the alert condition currently exists. CLOSED means the alert has been resolved.
OPENTRACKINGCLOSEDpageNumintegerPage number.
projectIdstringObligatorioAtlas project ID to list alerts for
Parámetros de salida
alertsobject[]ObligatoriostatusstringObligatorioenumOPENTRACKINGCLOSEDprojectIdstringObligatoriototalCountnumber
Atlas-list-clustersMONGODB_MCP_ATLAS_LIST_CLUSTERSAcciónList MongoDB Atlas clusters
MONGODB_MCP_ATLAS_LIST_CLUSTERSAcciónList MongoDB Atlas clusters
Parámetros de entrada
projectIdstringAtlas project ID to filter clusters
Parámetros de salida
clustersarrayObligatorioprojectIdstringtotalCountnumberObligatorioprojectNamestring
Atlas-list-db-usersMONGODB_MCP_ATLAS_LIST_DB_USERSAcciónList MongoDB Atlas database users
MONGODB_MCP_ATLAS_LIST_DB_USERSAcciónList MongoDB Atlas database users
Parámetros de entrada
projectIdstringObligatorioAtlas project ID to filter DB users
Parámetros de salida
usersobject[]ObligatorioprojectIdstringObligatoriototalCountnumberObligatorio
Atlas-list-orgsMONGODB_MCP_ATLAS_LIST_ORGSAcciónList MongoDB Atlas organizations
MONGODB_MCP_ATLAS_LIST_ORGSAcciónList MongoDB Atlas organizations
Parámetros de entrada
limitintegerMax number of organizations to return per page.
pageNumintegerPage number of organizations to return.
Parámetros de salida
totalCountnumberObligatorioorganizationsobject[]Obligatorio
Atlas-list-projectsMONGODB_MCP_ATLAS_LIST_PROJECTSAcciónList MongoDB Atlas projects.
MONGODB_MCP_ATLAS_LIST_PROJECTSAcciónList MongoDB Atlas projects.
Parámetros de entrada
limitintegerMax number of projects to return per page.
orgIdstringAtlas organization ID to filter projects. If not provided, projects for all orgs are returned.
pageNumintegerPage number of projects to return.
Parámetros de salida
orgIdstringprojectsobject[]ObligatoriototalCountnumberObligatorio
Atlas-load-sample-datasetMONGODB_MCP_ATLAS_LOAD_SAMPLE_DATASETAcciónLoad 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 includes a `jobId` and initial state. To check progress, call this tool again with `jobId` (sample dataset loads typically take 1–5 minutes). State can be WORKING, COMPLETED, or FAILED.
MONGODB_MCP_ATLAS_LOAD_SAMPLE_DATASETAcciónLoad 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 includes a `jobId` and initial state. To check progress, call this tool again with `jobId` (sample dataset loads typically take 1–5 minutes). State can be WORKING, COMPLETED, or FAILED.
Parámetros de entrada
jobIdstringJob id returned by a previous load request. Provide this to check the status of an in-progress load. Mutually exclusive with clusterName.
projectIdstringObligatorioAtlas project ID that owns the cluster
clusterNamestringCluster name to load the sample dataset into. Provide this to initiate a new load. Mutually exclusive with jobId.
Parámetros de salida
jobIdstringObligatorioUnique identifier for the sample dataset load job
statestringObligatorioenumCurrent state of the load job
WORKINGFAILEDCOMPLETEDcreateDatestringObligatorioISO 8601 timestamp (UTC) when the load was initiated
clusterNamestringObligatorioName of the cluster the sample dataset is being loaded into
completeDatestringISO 8601 timestamp (UTC) when the load completed (only set when state is COMPLETED or FAILED)
errorMessagestringFailure reason (only set when state is FAILED)
Atlas-pause-resume-clusterMONGODB_MCP_ATLAS_PAUSE_RESUME_CLUSTERAcciónPause 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 cluster being paused is the current active connection, it will be automatically disconnected. Returns an error if the cluster is already paused or not in a pausable state (must be IDLE). Resume: the cluster will not be immediately available after resuming. Use the atlas-inspect-cluster tool to poll the cluster state for readiness (state: IDLE). If the cluster is not paused, resuming it is a no-op.
MONGODB_MCP_ATLAS_PAUSE_RESUME_CLUSTERAcciónPause 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 cluster being paused is the current active connection, it will be automatically disconnected. Returns an error if the cluster is already paused or not in a pausable state (must be IDLE). Resume: the cluster will not be immediately available after resuming. Use the atlas-inspect-cluster tool to poll the cluster state for readiness (state: IDLE). If the cluster is not paused, resuming it is a no-op.
Parámetros de entrada
actionstringObligatorioenumAction to perform on the cluster.
PAUSERESUMEprojectIdstringObligatorioAtlas project ID the cluster belongs to.
clusterNamestringObligatorioName of the cluster to pause or resume.
Parámetros de salida
actionstringObligatorioenumPAUSERESUMEclusterIdstringclusterNamestringObligatoriodisconnectedConnectionIdsstring[]ObligatorioConnection IDs that were disconnected due to the cluster being paused.
Atlas-streams-buildMONGODB_MCP_ATLAS_STREAMS_BUILDAcciónCreate 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 workspace (specify cloud provider, region, and tier). Use resource='connection' to add a data source or sink to an existing workspace. Use resource='processor' to deploy a stream processor with a pipeline. Use resource='privatelink' to set up private networking. Typical workflow: create workspace → add connections → deploy processor.
MONGODB_MCP_ATLAS_STREAMS_BUILDAcciónCreate 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 workspace (specify cloud provider, region, and tier). Use resource='connection' to add a data source or sink to an existing workspace. Use resource='processor' to deploy a stream processor with a pipeline. Use resource='privatelink' to set up private networking. Typical workflow: create workspace → add connections → deploy processor.
Parámetros de entrada
dlqobjectDead letter queue configuration. Only for resource='processor'. Only include when the user explicitly requests a DLQ, or when the pipeline uses $https with default onError='dlq'. The DLQ connection must already exist in the workspace.
tierstringenumProcessing tier. Default: SP10. Only for resource='workspace'.
SP2SP5SP10SP30SP50regionstringCloud region. Required when resource='workspace'. Use Atlas region names: AWS examples: 'VIRGINIA_USA', 'OREGON_USA', 'DUBLIN_IRL'. Azure examples: 'eastus2', 'westeurope'. GCP examples: 'US_CENTRAL1', 'EUROPE_WEST1'.
pipelineobject[]Pipeline stages for the stream processor. Required when resource='processor'. Must start with a $source stage and end with a terminal stage ($merge, $emit, $https, or $externalFunction). Use $merge to write to Atlas cluster collections: {$merge: {into: {connectionName, db, coll}}}. Use $emit to write to Kafka or Kinesis sinks: {$emit: {connectionName, topic}}. $emit only works with Kafka/Kinesis connections — do NOT use $emit with Https connections. Use $https to POST data to an Https connection: {$https: {connectionName}}. Use $externalFunction for Lambda: {$externalFunction: {connectionName, functionName, execution: 'async', as: 'result'}}. Lambda does NOT use $emit — use $externalFunction with execution='async' as a terminal stage or execution='sync' for mid-pipeline enrichment. By default $https.onError is 'dlq', which requires a DLQ (see dlq parameter). Set {$https: {connectionName, onError: 'ignore'}} to skip DLQ. For Kafka $emit with Schema Registry: {$emit: {connectionName, topic, schemaRegistry: {connectionName: '<sr-connection>', valueSchema: {type: 'avro', schema: {<avro-schema>}, options: {subjectNameStrategy: 'TopicNameStrategy', autoRegisterSchemas: true}}}}}. Note: valueSchema.type must be lowercase 'avro'. valueSchema.schema (Avro schema definition) is always required even with autoRegisterSchemas. Kafka/Kinesis $source must include a 'topic'/'stream' field. $$NOW, $$ROOT, and $$CURRENT are not available in streaming context. Connections referenced in $source/$merge/$emit/$https must already exist in the workspace.
resourcestringObligatorioenumWhat to create. Start with 'workspace', then 'connection', then 'processor'. Use 'privatelink' only if connections need private networking.
workspaceconnectionprocessorprivatelinkautoStartbooleanStart the processor immediately after creation. Default: false. Only for resource='processor'. Omit unless the user explicitly asks to start the processor right away.
projectIdstringObligatorioAtlas project ID. Use atlas-list-projects to find project IDs if not available.
cloudProviderstringenumCloud provider. Required when resource='workspace'.
AWSAZUREGCPprocessorNamestringProcessor name. Required when resource='processor'.
workspaceNamestringWorkspace name. Required for workspace, connection, and processor resources. Not required for privatelink (which is project-level). For 'workspace': the name to create. For others: the existing workspace to add to. Use `atlas-streams-discover` with action 'list-workspaces' to see existing workspaces.
connectionNamestringConnection name. Required when resource='connection'.
connectionTypestringenumConnection type. Required when resource='connection'. Kafka: needs bootstrapServers, authentication, security config. Cluster: needs clusterName and dbRoleToExecute. S3: needs aws.roleArn (must be registered via Atlas Cloud Provider Access). Https: needs url. AWSKinesisDataStreams: needs aws.roleArn (must be registered via Atlas Cloud Provider Access). AWSLambda: needs aws.roleArn (must be registered via Atlas Cloud Provider Access). SchemaRegistry: needs provider, schemaRegistryUrls, and authentication config. Sample: provides sample data for testing (no config needed).
KafkaClusterS3HttpsAWSKinesisDataStreamsAWSLambdaSchemaRegistrySampleconnectionConfigobjectType-specific connection configuration. Only for resource='connection'. Omit entirely for connectionType='Sample' (no config needed). You may pass a partial config — the tool uses elicitation to collect missing required fields directly from the user.
includeSampleDatabooleanInclude the sample_stream_solar connection for testing. Default: true. Only for resource='workspace'.
privateLinkConfigobjectPrivateLink configuration including provider and provider-specific fields. Required when resource='privatelink'.
Parámetros de salida
resourcestringObligatorioenumWhich build step completed
workspaceconnectionprocessorprivatelink
Atlas-streams-discoverMONGODB_MCP_ATLAS_STREAMS_DISCOVERAcciónDiscover 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-workspaces' to see all workspaces in a project. Use inspect actions for details on a specific resource. Use 'diagnose-processor' for a combined health report including state, stats, connection health, and recent errors. Use 'get-networking' for PrivateLink and account details.
MONGODB_MCP_ATLAS_STREAMS_DISCOVERAcciónDiscover 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-workspaces' to see all workspaces in a project. Use inspect actions for details on a specific resource. Use 'diagnose-processor' for a combined health report including state, stats, connection health, and recent errors. Use 'get-networking' for PrivateLink and account details.
Parámetros de entrada
limitintegerMax results per page for list actions. Default: 20.
actionstringObligatorioenumWhat to look up. Start with 'list-workspaces' to see available workspaces, then use inspect actions for details or 'diagnose-processor' for a health report.
list-workspacesinspect-workspacelist-connectionsinspect-connectionlist-processorsinspect-processordiagnose-processorget-networkingregionstringCloud region. Only for 'get-networking': returns account details for the specified region.
pageNumintegerPage number for list actions. Default: 1.
projectIdstringObligatorioAtlas project ID. Use atlas-list-projects to find project IDs if not available.
resourceNamestringConnection or processor name. Required for 'inspect-connection', 'inspect-processor', and 'diagnose-processor'.
cloudProviderstringCloud provider (AWS, AZURE, GCP). Only for 'get-networking': returns account details for the specified provider.
workspaceNamestringWorkspace name. Required for all actions except 'list-workspaces' and 'get-networking'.
responseFormatstringenumResponse detail level. 'concise' returns names and states only. 'detailed' returns full configuration and stats. Default: 'concise' for list actions, 'detailed' for inspect/diagnose.
concisedetailed
Parámetros de salida
dlqobjecttierstringstatsobjectpipelineobject[]workspaceobjectconnectionobjectprocessorsobject[]workspacesobject[]connectionsobject[]privateLinksobject[]accountDetailsobjectprocessorStatestringenumSTARTEDSTOPPEDCREATEDFAILEDconnectionHealthobject[]
Atlas-streams-manageMONGODB_MCP_ATLAS_STREAMS_MANAGEAcciónManage 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'. Common workflow: action='stop-processor' → action='modify-processor' → action='start-processor'. Use `atlas-streams-discover` with action 'inspect-processor' to check state before managing.
MONGODB_MCP_ATLAS_STREAMS_MANAGEAcciónManage 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'. Common workflow: action='stop-processor' → action='modify-processor' → action='start-processor'. Use `atlas-streams-discover` with action 'inspect-processor' to check state before managing.
Parámetros de entrada
dlqobjectNew DLQ configuration. Only for 'modify-processor'.
tierstringenumOverride processing tier for this run. Must not exceed the workspace's max tier. Use `atlas-streams-discover` action='inspect-workspace' to check. Only for 'start-processor'.
SP2SP5SP10SP30SP50actionstringObligatorioenumAction to perform. One of: 'start-processor' — begin or resume processing (requires resourceName). 'stop-processor' — pause processing (requires resourceName). 'modify-processor' — change pipeline, DLQ, or rename (requires resourceName and at least one of: pipeline, dlq, newName; processor must be stopped first). 'update-workspace' — change workspace tier or region. 'update-connection' — update connection config (requires resourceName). 'accept-peering' — accept a VPC peering request (requires peeringId, requesterAccountId, requesterVpcId). 'reject-peering' — reject a VPC peering request (requires peeringId). For peering actions, workspaceName can be any workspace in the project (peering is project-level).
start-processorstop-processormodify-processorupdate-workspaceupdate-connectionaccept-peeringreject-peeringnewNamestringRename processor. Only for 'modify-processor'.
newTierstringenumNew default tier for workspace. Only for 'update-workspace'.
SP2SP5SP10SP30SP50pipelineobject[]New pipeline stages as an array of objects, e.g. [{$source: {connectionName: 'src'}}, {$match: {status: 'active'}}, {$merge: {into: {connectionName: 'dest', db: 'db', coll: 'coll'}}}]. Only for 'modify-processor'. Processor must be stopped first. If changing a window stage interval, the processor must be restarted with resumeFromCheckpoint=false.
newRegionstringNew region for workspace. Only for 'update-workspace'. Use Atlas region names (e.g. AWS: 'VIRGINIA_USA', Azure: 'eastus2', GCP: 'US_CENTRAL1').
peeringIdstringVPC peering connection ID. Required for 'accept-peering' and 'reject-peering'.
projectIdstringObligatorioAtlas project ID. Use atlas-list-projects to find project IDs if not available.
resourceNamestringProcessor or connection name. Required for processor and connection actions.
workspaceNamestringObligatorioWorkspace name containing the resource to manage.
requesterVpcIdstringVPC ID of the peering requester. Required for 'accept-peering'.
connectionConfigobjectUpdated connection configuration. Only for 'update-connection'. Provide only the fields to change. Note: networking config and connection type cannot be modified after creation — to change these, delete and recreate the connection.
requesterAccountIdstringAWS account ID of the peering requester. Required for 'accept-peering'.
resumeFromCheckpointbooleanResume from last checkpoint on start. Default: true. Set false to reprocess from beginning (drops accumulated window state). Only for 'start-processor'.
startAtOperationTimestringISO 8601 timestamp to resume from. Only for 'start-processor'.
Parámetros de salida
tierstringConfirmed workspace tier after an update
regionstringConfirmed workspace region after an update
maxTierstringConfirmed workspace max tier after an update
peeringStatestringenumOutcome of a VPC peering accept or reject action
ACCEPTEDREJECTEDprocessorStatestringenumProcessor state after a lifecycle action
STARTEDSTOPPEDCREATEDFAILEDconnectionStatestringenumConnection state after an update
PENDINGREADYDELETINGFAILED
Atlas-streams-teardownMONGODB_MCP_ATLAS_STREAMS_TEARDOWNAcciónDelete 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 deletion: summarizes counts of processors and connections, highlights connections referenced by processors where possible, and surfaces API errors if processors are still running when deletion is attempted. Use `atlas-streams-discover` to review resources before deleting.
MONGODB_MCP_ATLAS_STREAMS_TEARDOWNAcciónDelete 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 deletion: summarizes counts of processors and connections, highlights connections referenced by processors where possible, and surfaces API errors if processors are still running when deletion is attempted. Use `atlas-streams-discover` to review resources before deleting.
Parámetros de entrada
resourcestringObligatorioenumWhat to delete. 'processor': stop first recommended. 'connection': ensure no processor references it. 'workspace': removes all contained connections and processors.
processorconnectionworkspaceprivatelinkpeeringprojectIdstringObligatorioAtlas project ID. Use atlas-list-projects to find project IDs if not available.
resourceNamestringName or ID of the specific resource to delete.
workspaceNamestringWorkspace name. Required for workspace, connection, and processor deletion.
Parámetros de salida
resourcestringObligatorioenumWhich resource deletion completed or was initiated
processorconnectionworkspaceprivatelinkpeeringprocessorsRemovedintegerProcessors removed as part of workspace deletion (when inventory was available)
connectionsRemovedintegerConnections removed as part of workspace deletion (when inventory was available)
Atlas-upgrade-clusterMONGODB_MCP_ATLAS_UPGRADE_CLUSTERAcciónUpgrade 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 overridden with targetTier. Note to LLM: If provider and region are not already known, ask for both together in a single question before calling this tool. Common region mappings by provider (default recommendation: AWS US_EAST_1):
AWS: "East Coast"/"Virginia"/"US East" → US_EAST_1, "Ohio" → US_EAST_2, "California"/"West Coast" → US_WEST_2, "Southeast Asia"/"APAC"/"Singapore" → AP_SOUTHEAST_1, "Europe"/"EU"/"Ireland" → EU_WEST_1.
GCP: "Central US" → CENTRAL_US, "Western US" → WESTERN_US, "Southeast Asia"/"APAC" → SOUTHEASTERN_ASIA_PACIFIC, "Europe"/"EU" → WESTERN_EUROPE.
AZURE: "East US" → US_EAST_2, "West US" → US_WEST_2, "Europe"/"EU" → EUROPE_NORTH.
MONGODB_MCP_ATLAS_UPGRADE_CLUSTERAcciónUpgrade 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 overridden with targetTier. Note to LLM: If provider and region are not already known, ask for both together in a single question before calling this tool. Common region mappings by provider (default recommendation: AWS US_EAST_1): AWS: "East Coast"/"Virginia"/"US East" → US_EAST_1, "Ohio" → US_EAST_2, "California"/"West Coast" → US_WEST_2, "Southeast Asia"/"APAC"/"Singapore" → AP_SOUTHEAST_1, "Europe"/"EU"/"Ireland" → EU_WEST_1. GCP: "Central US" → CENTRAL_US, "Western US" → WESTERN_US, "Southeast Asia"/"APAC" → SOUTHEASTERN_ASIA_PACIFIC, "Europe"/"EU" → WESTERN_EUROPE. AZURE: "East US" → US_EAST_2, "West US" → US_WEST_2, "Europe"/"EU" → EUROPE_NORTH.
Parámetros de entrada
regionstringCloud provider region in Atlas format using uppercase letters and underscores (e.g. US_EAST_1). If omitted, the existing value is preserved.
providerstringCloud provider (e.g. AWS, GCP, AZURE). If omitted, the existing value is preserved.
projectIdstringObligatorioAtlas project ID
targetTierstringenumTarget tier to upgrade to. Defaults to FLEX for Free clusters and M10 for Flex clusters.
FLEXM10clusterNamestringObligatorioName of the cluster to upgrade
Parámetros de salida
clusterIdstringtargetTierstringObligatorioenumFLEXM10originalTierstringObligatorioenumFREEFLEXresolvedRegionstringresolvedProviderstring
Collection-indexesMONGODB_MCP_COLLECTION_INDEXESAcciónDescribe the indexes for a collection
MONGODB_MCP_COLLECTION_INDEXESAcciónDescribe the indexes for a collection
Parámetros de entrada
databasestringObligatorioDatabase name
collectionstringObligatorioCollection name
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
Parámetros de salida
searchIndexesobject[]ObligatorioclassicIndexesobject[]ObligatoriosearchIndexesCountnumberObligatorioclassicIndexesCountnumberObligatorio
Collection-schemaMONGODB_MCP_COLLECTION_SCHEMAAcciónDescribe the schema for a collection
MONGODB_MCP_COLLECTION_SCHEMAAcciónDescribe the schema for a collection
Parámetros de entrada
databasestringObligatorioDatabase name
collectionstringObligatorioCollection name
sampleSizenumberNumber of documents to sample for schema inference
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
responseBytesLimitnumberThe maximum number of bytes to return in the response. This value is capped by the server's configured maximum and cannot be exceeded.
Parámetros de salida
schemaobjectObligatoriofieldsCountnumberObligatorio
Collection-storage-sizeMONGODB_MCP_COLLECTION_STORAGE_SIZEAcciónGets the size of the collection
MONGODB_MCP_COLLECTION_STORAGE_SIZEAcciónGets the size of the collection
Parámetros de entrada
databasestringObligatorioDatabase name
collectionstringObligatorioCollection name
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
Parámetros de salida
sizenumberObligatoriounitsstringObligatorio
CountMONGODB_MCP_COUNTAcciónGets the number of documents in a MongoDB collection using db.collection.count() and query as an optional filter parameter
MONGODB_MCP_COUNTAcciónGets the number of documents in a MongoDB collection using db.collection.count() and query as an optional filter parameter
Parámetros de entrada
queryobjectA filter/query parameter. Allows users to filter the documents to count. Matches the syntax of the filter argument of db.collection.count().
databasestringObligatorioDatabase name
collectionstringObligatorioCollection name
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
Parámetros de salida
countnumberObligatorioThe number of documents in the collection
Create-collectionMONGODB_MCP_CREATE_COLLECTIONAcciónCreates a new collection in a database. If the database doesn't exist, it will be created automatically.
MONGODB_MCP_CREATE_COLLECTIONAcciónCreates a new collection in a database. If the database doesn't exist, it will be created automatically.
Parámetros de entrada
databasestringObligatorioDatabase name
collectionstringObligatorioCollection name
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
Parámetros de salida
createdbooleanObligatoriodatabasestringObligatoriocollectionstringObligatorio
Create-indexMONGODB_MCP_CREATE_INDEXAcciónCreate an index for a collection
MONGODB_MCP_CREATE_INDEXAcciónCreate an index for a collection
Parámetros de entrada
namestringThe name of the index
databasestringObligatorioDatabase name
collectionstringObligatorioCollection name
definitionarrayObligatorioThe index definition. Use 'classic' for standard indexes, 'vectorSearch' for vector search indexes, and 'search' for Atlas Search (lexical) indexes.
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
Parámetros de salida
databasestringObligatorioindexNamestringObligatorioindexTypestringObligatorioenumclassicvectorSearchsearchcollectionstringObligatorio
Db-statsMONGODB_MCP_DB_STATSAcciónReturns statistics that reflect the use state of a single database
MONGODB_MCP_DB_STATSAcciónReturns statistics that reflect the use state of a single database
Parámetros de entrada
databasestringObligatorioDatabase name
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
Parámetros de salida
statsobjectObligatorio
Delete-manyMONGODB_MCP_DELETE_MANYAcciónRemoves all documents that match the filter from a MongoDB collection
MONGODB_MCP_DELETE_MANYAcciónRemoves all documents that match the filter from a MongoDB collection
Parámetros de entrada
filterobjectThe query filter, specifying the deletion criteria. Matches the syntax of the filter argument of db.collection.deleteMany()
databasestringObligatorioDatabase name
collectionstringObligatorioCollection name
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
Parámetros de salida
databasestringObligatoriocollectionstringObligatoriodeletedCountnumberObligatorio
Drop-collectionMONGODB_MCP_DROP_COLLECTIONAcciónRemoves a collection or view from the database. The method also removes any indexes associated with the dropped collection.
MONGODB_MCP_DROP_COLLECTIONAcciónRemoves a collection or view from the database. The method also removes any indexes associated with the dropped collection.
Parámetros de entrada
databasestringObligatorioDatabase name
collectionstringObligatorioCollection name
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
Parámetros de salida
droppedbooleanObligatoriodatabasestringObligatoriocollectionstringObligatorio
Drop-databaseMONGODB_MCP_DROP_DATABASEAcciónRemoves the specified database, deleting the associated data files
MONGODB_MCP_DROP_DATABASEAcciónRemoves the specified database, deleting the associated data files
Parámetros de entrada
databasestringObligatorioDatabase name
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
Parámetros de salida
droppedbooleanObligatoriodatabasestringObligatorio
Drop-indexMONGODB_MCP_DROP_INDEXAcciónDrop an index for the provided database and collection.
MONGODB_MCP_DROP_INDEXAcciónDrop an index for the provided database and collection.
Parámetros de entrada
typestringObligatorioenumThe type of index to be deleted. Use 'classic' for standard indexes and 'search' for atlas search and vector search indexes.
classicsearchdatabasestringObligatorioDatabase name
indexNamestringObligatorioThe name of the index to be dropped.
collectionstringObligatorioCollection name
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
Parámetros de salida
droppedbooleanObligatoriodatabasestringObligatorioindexNamestringObligatoriocollectionstringObligatorio
ExplainMONGODB_MCP_EXPLAINAcciónReturns statistics describing the execution of the winning plan chosen by the query optimizer for the evaluated method
MONGODB_MCP_EXPLAINAcciónReturns statistics describing the execution of the winning plan chosen by the query optimizer for the evaluated method
Parámetros de entrada
methodarrayObligatorioThe method and its arguments to run
databasestringObligatorioDatabase name
verbositystringenumThe verbosity of the explain plan, defaults to queryPlanner. If the user wants to know how fast is a query in execution time, use executionStats. It supports all verbosities as defined in the MongoDB Driver.
queryPlannerqueryPlannerExtendedexecutionStatsallPlansExecutioncollectionstringObligatorioCollection name
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
Parámetros de salida
methodstringObligatorioenumaggregatefindcountverbositystringObligatorioenumqueryPlannerqueryPlannerExtendedexecutionStatsallPlansExecutionexplainResultobjectObligatorio
FindMONGODB_MCP_FINDAcciónRun a find query against a MongoDB collection
MONGODB_MCP_FINDAcciónRun a find query against a MongoDB collection
Parámetros de entrada
sortobjectA document, describing the sort order, matching the syntax of the sort argument of cursor.sort(). The keys of the object are the fields to sort on, while the values are the sort directions (1 for ascending, -1 for descending).
limitnumberThe maximum number of documents to return
filterobjectThe query filter, matching the syntax of the query argument of db.collection.find()
databasestringObligatorioDatabase name
collectionstringObligatorioCollection name
projectionobjectThe projection, matching the syntax of the projection argument of db.collection.find()
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
responseBytesLimitnumberThe maximum number of bytes to return in the response. This value is capped by the server's configured maximum and cannot be exceeded.
Parámetros de salida
documentsarrayObligatorioThe documents returned by the find query
appliedLimitsstring[]ObligatorioThe limits applied to the find query
queryResultsCountnumberThe total number of documents returned by the find query
Insert-manyMONGODB_MCP_INSERT_MANYAcciónInsert an array of documents into a MongoDB collection. If the list of documents is above com.mongodb/maxRequestPayloadBytes, consider inserting them in batches.
MONGODB_MCP_INSERT_MANYAcciónInsert an array of documents into a MongoDB collection. If the list of documents is above com.mongodb/maxRequestPayloadBytes, consider inserting them in batches.
Parámetros de entrada
databasestringObligatorioDatabase name
documentsobject[]ObligatorioThe array of documents to insert, matching the syntax of the document argument of db.collection.insertMany().
collectionstringObligatorioCollection name
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
Parámetros de salida
databasestringObligatoriocollectionstringObligatorioinsertedIdsarrayObligatorioinsertedCountnumberObligatorio
List-collectionsMONGODB_MCP_LIST_COLLECTIONSAcciónList all collections for a given database
MONGODB_MCP_LIST_COLLECTIONSAcciónList all collections for a given database
Parámetros de entrada
databasestringObligatorioDatabase name
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
Parámetros de salida
totalCountnumberObligatoriocollectionsobject[]Obligatorio
List-databasesMONGODB_MCP_LIST_DATABASESAcciónList all databases for a MongoDB connection
MONGODB_MCP_LIST_DATABASESAcciónList all databases for a MongoDB connection
Parámetros de entrada
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
Parámetros de salida
databasesobject[]ObligatoriototalCountnumberObligatorio
Remote-atlas-connectMONGODB_MCP_REMOTE_ATLAS_CONNECTAcciónConnect to MongoDB Atlas cluster
MONGODB_MCP_REMOTE_ATLAS_CONNECTAcciónConnect to MongoDB Atlas cluster
Parámetros de entrada
projectIdstringObligatorioclusterNamestringObligatorio
Parámetros de salida
clusterIdstringThe unique identifier of the connected Atlas cluster.
connectionIdstringObligatorioOpaque handle for the established connection. Pass it as the connectionId argument of MongoDB tool calls.
Rename-collectionMONGODB_MCP_RENAME_COLLECTIONAcciónRenames a collection in a MongoDB database
MONGODB_MCP_RENAME_COLLECTIONAcciónRenames a collection in a MongoDB database
Parámetros de entrada
newNamestringObligatorioThe new name for the collection
databasestringObligatorioDatabase name
collectionstringObligatorioCollection name
dropTargetbooleanIf true, drops the target collection if it exists
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
Parámetros de salida
renamedbooleanObligatoriodatabasestringObligatorionewCollectionstringObligatoriooldCollectionstringObligatorio
Update-manyMONGODB_MCP_UPDATE_MANYAcciónUpdates 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.
MONGODB_MCP_UPDATE_MANYAcciónUpdates 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.
Parámetros de entrada
filterobjectThe selection criteria for the update, matching the syntax of the filter argument of db.collection.updateOne()
updateobjectObligatorioAn update document describing the modifications to apply using update operator expressions
upsertbooleanControls whether to insert a new document if no documents match the filter
databasestringObligatorioDatabase name
collectionstringObligatorioCollection name
connectionIdstringObligatorioThe connection to run the operation against. Use the id returned by one of the connect tools.
Parámetros de salida
databasestringObligatoriocollectionstringObligatorioupsertedIdstringmatchedCountnumberObligatoriomodifiedCountnumberObligatorioupsertedCountnumberObligatorio