# MongoDB MCP MCP

Vendor: MongoDB MCP  
Category: other  
Auth: OAUTH2  
Composio slug: `mongodb_mcp`

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

## Verdict

MongoDB MCP connects your team's AI directly to MongoDB Atlas and self-hosted clusters. @mention it to run aggregations, query collections, manage Atlas projects, create clusters, provision database users, and pull performance advisor recommendations — all without leaving Switchy. Engineers use it to prototype queries and troubleshoot slow operations; product managers use it to pull metrics for dashboards; ops teams use it to spin up test environments. OAuth setup requires cluster admin permissions, and some tools (like cluster creation) need Atlas API credentials beyond the initial auth flow.

## Tools

- **Aggregate** — Run an aggregation against a MongoDB collection
- **Aggregate-db** — Run an aggregation against a MongoDB database
- **Atlas-create-access-list** — Allow Ip/CIDR ranges to access your MongoDB Atlas clusters.
- **Atlas-create-cluster** — 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 i
- **Atlas-create-db-user** — Create an MongoDB Atlas database user
- **Atlas-create-free-cluster** — Create a free MongoDB Atlas cluster
- **Atlas-create-project** — Create a MongoDB Atlas project
- **Atlas-get-performance-advisor** — 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
- **Atlas-inspect-access-list** — Inspect Ip/CIDR ranges with access to your MongoDB Atlas clusters.
- **Atlas-inspect-cluster** — Inspect metadata of a MongoDB Atlas cluster
- **Atlas-list-alerts** — 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.
- **Atlas-list-clusters** — List MongoDB Atlas clusters
- **Atlas-list-db-users** — List MongoDB Atlas database users
- **Atlas-list-orgs** — List MongoDB Atlas organizations
- **Atlas-list-projects** — List MongoDB Atlas projects.
- **Atlas-load-sample-dataset** — 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 che
- **Atlas-pause-resume-cluster** — 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 con
- **Atlas-streams-build** — 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, an
- **Atlas-streams-discover** — 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. 
- **Atlas-streams-manage** — 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' →
- **Atlas-streams-teardown** — 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 processor
- **Atlas-upgrade-cluster** — 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
- **Collection-indexes** — Describe the indexes for a collection
- **Collection-schema** — Describe the schema for a collection
- **Collection-storage-size** — Gets the size of the collection
- **Count** — Gets the number of documents in a MongoDB collection using db.collection.count() and query as an optional filter parameter
- **Create-collection** — Creates a new collection in a database. If the database doesn't exist, it will be created automatically.
- **Create-index** — Create an index for a collection
- **Db-stats** — Returns statistics that reflect the use state of a single database
- **Delete-many** — Removes all documents that match the filter from a MongoDB collection
- **Drop-collection** — Removes a collection or view from the database. The method also removes any indexes associated with the dropped collection.
- **Drop-database** — Removes the specified database, deleting the associated data files
- **Drop-index** — Drop an index for the provided database and collection.
- **Explain** — Returns statistics describing the execution of the winning plan chosen by the query optimizer for the evaluated method
- **Find** — Run a find query against a MongoDB collection
- **Insert-many** — Insert an array of documents into a MongoDB collection. If the list of documents is above com.mongodb/maxRequestPayloadBytes, consider inserting them in batches.
- **List-collections** — List all collections for a given database
- **List-databases** — List all databases for a MongoDB connection
- **Remote-atlas-connect** — Connect to MongoDB Atlas cluster
- **Rename-collection** — Renames a collection in a MongoDB database
- **Update-many** — 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.

## Setup

1. Create or open a Switchy Project.
2. Open Integrations and connect MongoDB MCP.
3. Authorise through oauth2.
4. Teammates can now @-mention MongoDB MCP tools in chat.

---
Last verified: 2026-10-17T02:00:10.360Z  
Canonical URL: https://switchy.build/directory/mcps/mongodb-mcp