Volver al catálogo

MongoDB MCP

mongodb_mcp

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

Acciones
41
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

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ón

Run an aggregation against a MongoDB collection

Parámetros de entrada

  • databasestringObligatorio

    Database name

  • pipelinearrayObligatorio

    An 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" } } } ] ```

  • collectionstringObligatorio

    Collection name

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

  • responseBytesLimitnumber

    The 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

  • countanyObligatorio

    The total number of documents returned by the aggregation pipeline

  • documentsarrayObligatorio

    The documents returned by the aggregation pipeline

  • appliedLimitsstring[]Obligatorio

    The limits applied to the aggregation pipeline

Aggregate-dbMONGODB_MCP_AGGREGATE_DBAcción

Run an aggregation against a MongoDB database

Parámetros de entrada

  • databasestringObligatorio

    Database name

  • pipelineobject[]Obligatorio

    An 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

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

  • responseBytesLimitnumber

    The 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

  • documentsarrayObligatorio

    The documents returned by the aggregation pipeline

  • appliedLimitsstring[]Obligatorio

    The limits applied to the aggregation pipeline

  • aggResultsCountnumber

    The total number of documents returned by the aggregation pipeline

Atlas-create-access-listMONGODB_MCP_ATLAS_CREATE_ACCESS_LISTAcción

Allow Ip/CIDR ranges to access your MongoDB Atlas clusters.

Parámetros de entrada

  • commentstring

    Comment for the access list entries

  • projectIdstringObligatorio

    Atlas 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ón

Create 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`.

    OFFSNAPSHOTCONTINUOUS
  • regionsstring[]Obligatorio

    Cloud 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.

  • providerstringObligatorioenum

    Cloud provider for the cluster.

    AWSGCPAZURE
  • projectIdstringObligatorio

    Atlas project ID to create the cluster in. Use the atlas-list-projects to find project IDs if not provided.

  • diskSizeGBnumber

    Initial disk size in GB. Disk autoscaling is always enabled regardless of this value. Omit unless explicitly specified by the user.

  • clusterNamestringObligatorio

    Name of the cluster.

  • clusterTypestringenum

    Cluster topology. Use `SHARDED` for single-shard clusters, requires M30 or higher. Defaults to `REPLICASET`.

    REPLICASETSHARDED
  • instanceSizestringenum

    Instance 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.

    M10M20M30M40M50M60M80
  • mongoDBVersionstringenum

    MongoDB version to deploy. Use a pinned version for production environments where version stability is required. Defaults to `LATEST`.

    7.08.0LATEST
  • computeAutoScalingboolean

    When 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.

  • encryptionAtRestProviderstringenum

    Customer-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.

    AWSAZUREGCPNONE
  • terminationProtectionEnabledboolean

    When true, prevents the cluster from being deleted until protection is explicitly disabled. Recommended for production clusters. Defaults to false.

Parámetros de salida

  • backupstringObligatorioenum
    OFFSNAPSHOTCONTINUOUS
  • regionsstring[]Obligatorio
  • providerstringObligatorioenum
    AWSGCPAZURE
  • clusterIdstring
  • diskSizeGBnumber
  • clusterTypestringObligatorioenum
    REPLICASETSHARDED
  • instanceSizestringObligatorioenum
    M10M20M30M40M50M60M80
  • mongoDBVersionstringObligatorioenum
    7.08.0LATEST
  • computeAutoScalingbooleanObligatorio
  • encryptionAtRestProviderstringObligatorioenum
    AWSAZUREGCPNONE
  • terminationProtectionEnabledbooleanObligatorio
Atlas-create-db-userMONGODB_MCP_ATLAS_CREATE_DB_USERAcción

Create an MongoDB Atlas database user

Parámetros de entrada

  • rolesobject[]Obligatorio

    Roles for the new user

  • clustersstring[]

    Clusters to assign the user to, leave empty for access to all clusters

  • passwordstring

    Password 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.

  • usernamestringObligatorio

    Username for the new user

  • projectIdstringObligatorio

    Atlas project ID

Parámetros de salida

  • passwordstring
  • usernamestringObligatorio
Atlas-create-free-clusterMONGODB_MCP_ATLAS_CREATE_FREE_CLUSTERAcción

Create a free MongoDB Atlas cluster

Parámetros de entrada

  • namestringObligatorio

    Name of the cluster

  • regionstring

    Region of the cluster

  • projectIdstringObligatorio

    Atlas project ID to create the cluster in

Parámetros de salida

  • createdbooleanObligatorio

    Whether the cluster was created successfully

Atlas-create-projectMONGODB_MCP_ATLAS_CREATE_PROJECTAcción

Create a MongoDB Atlas project

Parámetros de entrada

  • orgIdstringObligatorio

    Organization ID that will own the new project

  • projectNamestringObligatorio

    Name for the new project

Parámetros de salida

  • orgIdstringObligatorio
  • projectNamestringObligatorio
Atlas-get-performance-advisorMONGODB_MCP_ATLAS_GET_PERFORMANCE_ADVISORAcción

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

Parámetros de entrada

  • sincestringdate-time

    Date to get slow query logs since. Must be a string in ISO 8601 format. Only relevant for the slowQueryLogs operation.

  • projectIdstringObligatorio

    Atlas 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

  • clusterNamestringObligatorio

    Atlas cluster name to get performance advisor recommendations

Parámetros de salida

  • projectIdstringObligatorio
  • clusterNamestringObligatorio
  • slowQueryLogsarray
  • suggestedIndexesarray
  • schemaSuggestionsarray
  • dropIndexSuggestionsobject
Atlas-inspect-access-listMONGODB_MCP_ATLAS_INSPECT_ACCESS_LISTAcción

Inspect Ip/CIDR ranges with access to your MongoDB Atlas clusters.

Parámetros de entrada

  • projectIdstringObligatorio

    Atlas project ID

Parámetros de salida

  • entriesobject[]Obligatorio
  • projectIdstringObligatorio
  • totalCountnumberObligatorio
Atlas-inspect-clusterMONGODB_MCP_ATLAS_INSPECT_CLUSTERAcción

Inspect metadata of a MongoDB Atlas cluster

Parámetros de entrada

  • projectIdstringObligatorio

    Atlas project ID

  • clusterNamestringObligatorio

    Atlas cluster name

Parámetros de salida

  • namestringObligatorio
  • statestringObligatorio
  • pausedbooleanObligatorio
  • regionstring
  • providerstring
  • instanceSizestringObligatorio
  • instanceTypestringObligatorioenum
    FREEDEDICATEDFLEX
  • mongoDBVersionstringObligatorio
  • connectionStringsobjectObligatorio
Atlas-list-alertsMONGODB_MCP_ATLAS_LIST_ALERTSAcción

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.

Parámetros de entrada

  • limitinteger

    Max results per page.

  • statusstringenum

    Status 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.

    OPENTRACKINGCLOSED
  • pageNuminteger

    Page number.

  • projectIdstringObligatorio

    Atlas project ID to list alerts for

Parámetros de salida

  • alertsobject[]Obligatorio
  • statusstringObligatorioenum
    OPENTRACKINGCLOSED
  • projectIdstringObligatorio
  • totalCountnumber
Atlas-list-clustersMONGODB_MCP_ATLAS_LIST_CLUSTERSAcción

List MongoDB Atlas clusters

Parámetros de entrada

  • projectIdstring

    Atlas project ID to filter clusters

Parámetros de salida

  • clustersarrayObligatorio
  • projectIdstring
  • totalCountnumberObligatorio
  • projectNamestring
Atlas-list-db-usersMONGODB_MCP_ATLAS_LIST_DB_USERSAcción

List MongoDB Atlas database users

Parámetros de entrada

  • projectIdstringObligatorio

    Atlas project ID to filter DB users

Parámetros de salida

  • usersobject[]Obligatorio
  • projectIdstringObligatorio
  • totalCountnumberObligatorio
Atlas-list-orgsMONGODB_MCP_ATLAS_LIST_ORGSAcción

List MongoDB Atlas organizations

Parámetros de entrada

  • limitinteger

    Max number of organizations to return per page.

  • pageNuminteger

    Page number of organizations to return.

Parámetros de salida

  • totalCountnumberObligatorio
  • organizationsobject[]Obligatorio
Atlas-list-projectsMONGODB_MCP_ATLAS_LIST_PROJECTSAcción

List MongoDB Atlas projects.

Parámetros de entrada

  • limitinteger

    Max number of projects to return per page.

  • orgIdstring

    Atlas organization ID to filter projects. If not provided, projects for all orgs are returned.

  • pageNuminteger

    Page number of projects to return.

Parámetros de salida

  • orgIdstring
  • projectsobject[]Obligatorio
  • totalCountnumberObligatorio
Atlas-load-sample-datasetMONGODB_MCP_ATLAS_LOAD_SAMPLE_DATASETAcción

Load 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

  • jobIdstring

    Job id returned by a previous load request. Provide this to check the status of an in-progress load. Mutually exclusive with clusterName.

  • projectIdstringObligatorio

    Atlas project ID that owns the cluster

  • clusterNamestring

    Cluster name to load the sample dataset into. Provide this to initiate a new load. Mutually exclusive with jobId.

Parámetros de salida

  • jobIdstringObligatorio

    Unique identifier for the sample dataset load job

  • statestringObligatorioenum

    Current state of the load job

    WORKINGFAILEDCOMPLETED
  • createDatestringObligatorio

    ISO 8601 timestamp (UTC) when the load was initiated

  • clusterNamestringObligatorio

    Name of the cluster the sample dataset is being loaded into

  • completeDatestring

    ISO 8601 timestamp (UTC) when the load completed (only set when state is COMPLETED or FAILED)

  • errorMessagestring

    Failure reason (only set when state is FAILED)

Atlas-pause-resume-clusterMONGODB_MCP_ATLAS_PAUSE_RESUME_CLUSTERAcción

Pause 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

  • actionstringObligatorioenum

    Action to perform on the cluster.

    PAUSERESUME
  • projectIdstringObligatorio

    Atlas project ID the cluster belongs to.

  • clusterNamestringObligatorio

    Name of the cluster to pause or resume.

Parámetros de salida

  • actionstringObligatorioenum
    PAUSERESUME
  • clusterIdstring
  • clusterNamestringObligatorio
  • disconnectedConnectionIdsstring[]Obligatorio

    Connection IDs that were disconnected due to the cluster being paused.

Atlas-streams-buildMONGODB_MCP_ATLAS_STREAMS_BUILDAcción

Create 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

  • dlqobject

    Dead 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.

  • tierstringenum

    Processing tier. Default: SP10. Only for resource='workspace'.

    SP2SP5SP10SP30SP50
  • regionstring

    Cloud 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.

  • resourcestringObligatorioenum

    What to create. Start with 'workspace', then 'connection', then 'processor'. Use 'privatelink' only if connections need private networking.

    workspaceconnectionprocessorprivatelink
  • autoStartboolean

    Start the processor immediately after creation. Default: false. Only for resource='processor'. Omit unless the user explicitly asks to start the processor right away.

  • projectIdstringObligatorio

    Atlas project ID. Use atlas-list-projects to find project IDs if not available.

  • cloudProviderstringenum

    Cloud provider. Required when resource='workspace'.

    AWSAZUREGCP
  • processorNamestring

    Processor name. Required when resource='processor'.

  • workspaceNamestring

    Workspace 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.

  • connectionNamestring

    Connection name. Required when resource='connection'.

  • connectionTypestringenum

    Connection 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).

    KafkaClusterS3HttpsAWSKinesisDataStreamsAWSLambdaSchemaRegistrySample
  • connectionConfigobject

    Type-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.

  • includeSampleDataboolean

    Include the sample_stream_solar connection for testing. Default: true. Only for resource='workspace'.

  • privateLinkConfigobject

    PrivateLink configuration including provider and provider-specific fields. Required when resource='privatelink'.

Parámetros de salida

  • resourcestringObligatorioenum

    Which build step completed

    workspaceconnectionprocessorprivatelink
Atlas-streams-discoverMONGODB_MCP_ATLAS_STREAMS_DISCOVERAcción

Discover 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

  • limitinteger

    Max results per page for list actions. Default: 20.

  • actionstringObligatorioenum

    What 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-networking
  • regionstring

    Cloud region. Only for 'get-networking': returns account details for the specified region.

  • pageNuminteger

    Page number for list actions. Default: 1.

  • projectIdstringObligatorio

    Atlas project ID. Use atlas-list-projects to find project IDs if not available.

  • resourceNamestring

    Connection or processor name. Required for 'inspect-connection', 'inspect-processor', and 'diagnose-processor'.

  • cloudProviderstring

    Cloud provider (AWS, AZURE, GCP). Only for 'get-networking': returns account details for the specified provider.

  • workspaceNamestring

    Workspace name. Required for all actions except 'list-workspaces' and 'get-networking'.

  • responseFormatstringenum

    Response 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

  • dlqobject
  • tierstring
  • statsobject
  • pipelineobject[]
  • workspaceobject
  • connectionobject
  • processorsobject[]
  • workspacesobject[]
  • connectionsobject[]
  • privateLinksobject[]
  • accountDetailsobject
  • processorStatestringenum
    STARTEDSTOPPEDCREATEDFAILED
  • connectionHealthobject[]
Atlas-streams-manageMONGODB_MCP_ATLAS_STREAMS_MANAGEAcción

Manage 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

  • dlqobject

    New DLQ configuration. Only for 'modify-processor'.

  • tierstringenum

    Override 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'.

    SP2SP5SP10SP30SP50
  • actionstringObligatorioenum

    Action 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-peering
  • newNamestring

    Rename processor. Only for 'modify-processor'.

  • newTierstringenum

    New default tier for workspace. Only for 'update-workspace'.

    SP2SP5SP10SP30SP50
  • pipelineobject[]

    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.

  • newRegionstring

    New region for workspace. Only for 'update-workspace'. Use Atlas region names (e.g. AWS: 'VIRGINIA_USA', Azure: 'eastus2', GCP: 'US_CENTRAL1').

  • peeringIdstring

    VPC peering connection ID. Required for 'accept-peering' and 'reject-peering'.

  • projectIdstringObligatorio

    Atlas project ID. Use atlas-list-projects to find project IDs if not available.

  • resourceNamestring

    Processor or connection name. Required for processor and connection actions.

  • workspaceNamestringObligatorio

    Workspace name containing the resource to manage.

  • requesterVpcIdstring

    VPC ID of the peering requester. Required for 'accept-peering'.

  • connectionConfigobject

    Updated 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.

  • requesterAccountIdstring

    AWS account ID of the peering requester. Required for 'accept-peering'.

  • resumeFromCheckpointboolean

    Resume from last checkpoint on start. Default: true. Set false to reprocess from beginning (drops accumulated window state). Only for 'start-processor'.

  • startAtOperationTimestring

    ISO 8601 timestamp to resume from. Only for 'start-processor'.

Parámetros de salida

  • tierstring

    Confirmed workspace tier after an update

  • regionstring

    Confirmed workspace region after an update

  • maxTierstring

    Confirmed workspace max tier after an update

  • peeringStatestringenum

    Outcome of a VPC peering accept or reject action

    ACCEPTEDREJECTED
  • processorStatestringenum

    Processor state after a lifecycle action

    STARTEDSTOPPEDCREATEDFAILED
  • connectionStatestringenum

    Connection state after an update

    PENDINGREADYDELETINGFAILED
Atlas-streams-teardownMONGODB_MCP_ATLAS_STREAMS_TEARDOWNAcción

Delete 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

  • resourcestringObligatorioenum

    What to delete. 'processor': stop first recommended. 'connection': ensure no processor references it. 'workspace': removes all contained connections and processors.

    processorconnectionworkspaceprivatelinkpeering
  • projectIdstringObligatorio

    Atlas project ID. Use atlas-list-projects to find project IDs if not available.

  • resourceNamestring

    Name or ID of the specific resource to delete.

  • workspaceNamestring

    Workspace name. Required for workspace, connection, and processor deletion.

Parámetros de salida

  • resourcestringObligatorioenum

    Which resource deletion completed or was initiated

    processorconnectionworkspaceprivatelinkpeering
  • processorsRemovedinteger

    Processors removed as part of workspace deletion (when inventory was available)

  • connectionsRemovedinteger

    Connections removed as part of workspace deletion (when inventory was available)

Atlas-upgrade-clusterMONGODB_MCP_ATLAS_UPGRADE_CLUSTERAcción

Upgrade 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

  • regionstring

    Cloud provider region in Atlas format using uppercase letters and underscores (e.g. US_EAST_1). If omitted, the existing value is preserved.

  • providerstring

    Cloud provider (e.g. AWS, GCP, AZURE). If omitted, the existing value is preserved.

  • projectIdstringObligatorio

    Atlas project ID

  • targetTierstringenum

    Target tier to upgrade to. Defaults to FLEX for Free clusters and M10 for Flex clusters.

    FLEXM10
  • clusterNamestringObligatorio

    Name of the cluster to upgrade

Parámetros de salida

  • clusterIdstring
  • targetTierstringObligatorioenum
    FLEXM10
  • originalTierstringObligatorioenum
    FREEFLEX
  • resolvedRegionstring
  • resolvedProviderstring
Collection-indexesMONGODB_MCP_COLLECTION_INDEXESAcción

Describe the indexes for a collection

Parámetros de entrada

  • databasestringObligatorio

    Database name

  • collectionstringObligatorio

    Collection name

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

Parámetros de salida

  • searchIndexesobject[]Obligatorio
  • classicIndexesobject[]Obligatorio
  • searchIndexesCountnumberObligatorio
  • classicIndexesCountnumberObligatorio
Collection-schemaMONGODB_MCP_COLLECTION_SCHEMAAcción

Describe the schema for a collection

Parámetros de entrada

  • databasestringObligatorio

    Database name

  • collectionstringObligatorio

    Collection name

  • sampleSizenumber

    Number of documents to sample for schema inference

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

  • responseBytesLimitnumber

    The 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

  • schemaobjectObligatorio
  • fieldsCountnumberObligatorio
Collection-storage-sizeMONGODB_MCP_COLLECTION_STORAGE_SIZEAcción

Gets the size of the collection

Parámetros de entrada

  • databasestringObligatorio

    Database name

  • collectionstringObligatorio

    Collection name

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

Parámetros de salida

  • sizenumberObligatorio
  • unitsstringObligatorio
CountMONGODB_MCP_COUNTAcción

Gets the number of documents in a MongoDB collection using db.collection.count() and query as an optional filter parameter

Parámetros de entrada

  • queryobject

    A filter/query parameter. Allows users to filter the documents to count. Matches the syntax of the filter argument of db.collection.count().

  • databasestringObligatorio

    Database name

  • collectionstringObligatorio

    Collection name

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

Parámetros de salida

  • countnumberObligatorio

    The number of documents in the collection

Create-collectionMONGODB_MCP_CREATE_COLLECTIONAcción

Creates a new collection in a database. If the database doesn't exist, it will be created automatically.

Parámetros de entrada

  • databasestringObligatorio

    Database name

  • collectionstringObligatorio

    Collection name

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

Parámetros de salida

  • createdbooleanObligatorio
  • databasestringObligatorio
  • collectionstringObligatorio
Create-indexMONGODB_MCP_CREATE_INDEXAcción

Create an index for a collection

Parámetros de entrada

  • namestring

    The name of the index

  • databasestringObligatorio

    Database name

  • collectionstringObligatorio

    Collection name

  • definitionarrayObligatorio

    The index definition. Use 'classic' for standard indexes, 'vectorSearch' for vector search indexes, and 'search' for Atlas Search (lexical) indexes.

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

Parámetros de salida

  • databasestringObligatorio
  • indexNamestringObligatorio
  • indexTypestringObligatorioenum
    classicvectorSearchsearch
  • collectionstringObligatorio
Db-statsMONGODB_MCP_DB_STATSAcción

Returns statistics that reflect the use state of a single database

Parámetros de entrada

  • databasestringObligatorio

    Database name

  • connectionIdstringObligatorio

    The 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ón

Removes all documents that match the filter from a MongoDB collection

Parámetros de entrada

  • filterobject

    The query filter, specifying the deletion criteria. Matches the syntax of the filter argument of db.collection.deleteMany()

  • databasestringObligatorio

    Database name

  • collectionstringObligatorio

    Collection name

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

Parámetros de salida

  • databasestringObligatorio
  • collectionstringObligatorio
  • deletedCountnumberObligatorio
Drop-collectionMONGODB_MCP_DROP_COLLECTIONAcción

Removes a collection or view from the database. The method also removes any indexes associated with the dropped collection.

Parámetros de entrada

  • databasestringObligatorio

    Database name

  • collectionstringObligatorio

    Collection name

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

Parámetros de salida

  • droppedbooleanObligatorio
  • databasestringObligatorio
  • collectionstringObligatorio
Drop-databaseMONGODB_MCP_DROP_DATABASEAcción

Removes the specified database, deleting the associated data files

Parámetros de entrada

  • databasestringObligatorio

    Database name

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

Parámetros de salida

  • droppedbooleanObligatorio
  • databasestringObligatorio
Drop-indexMONGODB_MCP_DROP_INDEXAcción

Drop an index for the provided database and collection.

Parámetros de entrada

  • typestringObligatorioenum

    The type of index to be deleted. Use 'classic' for standard indexes and 'search' for atlas search and vector search indexes.

    classicsearch
  • databasestringObligatorio

    Database name

  • indexNamestringObligatorio

    The name of the index to be dropped.

  • collectionstringObligatorio

    Collection name

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

Parámetros de salida

  • droppedbooleanObligatorio
  • databasestringObligatorio
  • indexNamestringObligatorio
  • collectionstringObligatorio
ExplainMONGODB_MCP_EXPLAINAcción

Returns statistics describing the execution of the winning plan chosen by the query optimizer for the evaluated method

Parámetros de entrada

  • methodarrayObligatorio

    The method and its arguments to run

  • databasestringObligatorio

    Database name

  • verbositystringenum

    The 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.

    queryPlannerqueryPlannerExtendedexecutionStatsallPlansExecution
  • collectionstringObligatorio

    Collection name

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

Parámetros de salida

  • methodstringObligatorioenum
    aggregatefindcount
  • verbositystringObligatorioenum
    queryPlannerqueryPlannerExtendedexecutionStatsallPlansExecution
  • explainResultobjectObligatorio
FindMONGODB_MCP_FINDAcción

Run a find query against a MongoDB collection

Parámetros de entrada

  • sortobject

    A 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).

  • limitnumber

    The maximum number of documents to return

  • filterobject

    The query filter, matching the syntax of the query argument of db.collection.find()

  • databasestringObligatorio

    Database name

  • collectionstringObligatorio

    Collection name

  • projectionobject

    The projection, matching the syntax of the projection argument of db.collection.find()

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

  • responseBytesLimitnumber

    The 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

  • documentsarrayObligatorio

    The documents returned by the find query

  • appliedLimitsstring[]Obligatorio

    The limits applied to the find query

  • queryResultsCountnumber

    The total number of documents returned by the find query

Insert-manyMONGODB_MCP_INSERT_MANYAcción

Insert 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

  • databasestringObligatorio

    Database name

  • documentsobject[]Obligatorio

    The array of documents to insert, matching the syntax of the document argument of db.collection.insertMany().

  • collectionstringObligatorio

    Collection name

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

Parámetros de salida

  • databasestringObligatorio
  • collectionstringObligatorio
  • insertedIdsarrayObligatorio
  • insertedCountnumberObligatorio
List-collectionsMONGODB_MCP_LIST_COLLECTIONSAcción

List all collections for a given database

Parámetros de entrada

  • databasestringObligatorio

    Database name

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

Parámetros de salida

  • totalCountnumberObligatorio
  • collectionsobject[]Obligatorio
List-databasesMONGODB_MCP_LIST_DATABASESAcción

List all databases for a MongoDB connection

Parámetros de entrada

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

Parámetros de salida

  • databasesobject[]Obligatorio
  • totalCountnumberObligatorio
Remote-atlas-connectMONGODB_MCP_REMOTE_ATLAS_CONNECTAcción

Connect to MongoDB Atlas cluster

Parámetros de entrada

  • projectIdstringObligatorio
  • clusterNamestringObligatorio

Parámetros de salida

  • clusterIdstring

    The unique identifier of the connected Atlas cluster.

  • connectionIdstringObligatorio

    Opaque handle for the established connection. Pass it as the connectionId argument of MongoDB tool calls.

Rename-collectionMONGODB_MCP_RENAME_COLLECTIONAcción

Renames a collection in a MongoDB database

Parámetros de entrada

  • newNamestringObligatorio

    The new name for the collection

  • databasestringObligatorio

    Database name

  • collectionstringObligatorio

    Collection name

  • dropTargetboolean

    If true, drops the target collection if it exists

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

Parámetros de salida

  • renamedbooleanObligatorio
  • databasestringObligatorio
  • newCollectionstringObligatorio
  • oldCollectionstringObligatorio
Update-manyMONGODB_MCP_UPDATE_MANYAcción

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.

Parámetros de entrada

  • filterobject

    The selection criteria for the update, matching the syntax of the filter argument of db.collection.updateOne()

  • updateobjectObligatorio

    An update document describing the modifications to apply using update operator expressions

  • upsertboolean

    Controls whether to insert a new document if no documents match the filter

  • databasestringObligatorio

    Database name

  • collectionstringObligatorio

    Collection name

  • connectionIdstringObligatorio

    The connection to run the operation against. Use the id returned by one of the connect tools.

Parámetros de salida

  • databasestringObligatorio
  • collectionstringObligatorio
  • upsertedIdstring
  • matchedCountnumberObligatorio
  • modifiedCountnumberObligatorio
  • upsertedCountnumberObligatorio