Mongodb MCP Server logo

Mongodb MCP Server

Unclaimed

by mongodb-js

A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.

Set up this server

01 / Choose your client

02 / Before you connect

Authentication is not specified. Check the project instructions before connecting.

Install the runtime required by the project and make it available to your client.

Project instructions

Use names from the project instructions, separated by commas. Enter names only, never secret values.

03 / Add the configuration

Source: generated from public install instructions

claude mcp add --transport stdio 'mongodb-mcp-server' -- 'npx' '-y' 'mongodb-mcp-server@latest' '--readOnly'

Run in your terminal after replacing any placeholders.

04 / Check it in your client

Open your client’s MCP settings and confirm the server connects and lists its tools. A copied configuration does not confirm a working connection.

mcpmcp-servermongodbmongodb-atlasmongodb-database

More in Databases

Browse the full directory

Unclaimed listing

Is this your MCP server?

This listing was auto-indexed from the public record. Claim it to edit the page, set compatibility and unlock growth tools. Takes under two minutes.

Claim this server

Security profile

Claimed and verified servers get a weekly static scan that shows what the code can reach: external services, environment variables, shell commands, agent configuration folders, plus any dependencies with known advisories. Claim this listing to get one. How the security profile works

40 of 40 tools

Documented tools (40)

From project documentation. A server handshake does not verify each tool’s description or behavior.

aggregate

Run an aggregation against a MongoDB collection

aggregate-db

Run an aggregation against a MongoDB database

atlas-connect-cluster

Connect to MongoDB Atlas cluster and get back a connectionId to pass to the other MongoDB tools. Each call establishes a new, independent connection — multiple connections can be active at the same time.

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). Compute autoscaling is enabled by default: min instance size is set to the selected instance size, max is set two tiers above. Disk autoscaling is always enabled. Encryption at rest with customer-managed keys (CMK) is supported,

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-get-regions

List supported MongoDB Atlas regions for a cloud provider.

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.

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

connect

Connect to a MongoDB instance

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

disconnect

Close a MongoDB connection and revoke its connectionId.

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

export

Export a query or aggregation results in the specified EJSON format.

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-connections

List the active MongoDB connections and their connectionIds. Use this to find a connectionId established earlier.

list-databases

List all databases for a MongoDB connection

mongodb-logs

Returns the most recent logged mongod events

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.

Tool change history

Compared across complete checks of the same configuration. Tools were listed, not invoked. Input-schema changes are not measured here.

No complete tool checks yet.

FAQ

Questions about Mongodb MCP Server

How do I connect Mongodb MCP Server to Claude?
Run `claude mcp add mongodb-mcp-server -- npx -y mongodb-mcp-server@latest --readOnly` in Claude Code, or add the same command and arguments under mcpServers in Cursor's mcp.json or Claude Desktop's claude_desktop_config.json, then restart the client. The blocks above are ready to paste.
Is Mongodb MCP Server free?
The listed licence is Apache-2.0. Check the upstream terms for permitted use and commercial requirements; a public repository does not by itself mean the software is free or open source. Connected APIs and hosted services may have separate charges.
What can Mongodb MCP Server do?
Mongodb MCP Server documents 40 tools to the agent, including aggregate, aggregate-db, atlas-connect-cluster. The descriptions above come from project documentation. A live handshake does not test individual tool behavior.