Docs Menu
Docs Home
/
MongoDB MCP Server

MongoDB MCP Server Tools

Model Context Protocol (MCP) is a standard for connecting large language models to external software, services, and data sources.

The MongoDB MCP Server allows you to interact with MongoDB clusters using natural language queries from AI clients that support MCP. The MCP Server provides tools that perform cluster operations.

This page describes the MCP Server tools.

MCP Server tool categories:

  • Atlas tools, which perform operations on Atlas system resources, like organizations, projects, clusters, database user accounts, and others.

  • Database tools, which perform operations such as inserting, updating, and deleting documents, and running queries and aggregation pipelines.

The Atlas tools are only available if you have set up Atlas API credentials as shown in MongoDB MCP Server Configuration.

The following table describes the Atlas tools:

MCP Server Atlas Tool Name
Description

atlas-list-orgs

Returns a list of Atlas organizations.

atlas-list-projects

Returns a list of Atlas projects.

atlas-create-project

Creates a new Atlas project.

atlas-list-clusters

Returns list of Atlas clusters.

atlas-inspect-cluster

Returns information about a specific Atlas cluster.

atlas-create-free-cluster

Creates a free Atlas cluster.

atlas-connect-cluster

Connects to an Atlas cluster.

atlas-inspect-access-list

Returns information about the IP and CIDR ranges that can access an Atlas cluster.

atlas-create-access-list

Configures the IP and CIDR access list for an Atlas cluster.

atlas-list-db-users

Returns a list of Atlas database users.

atlas-create-db-user

Creates an Atlas database user.

atlas-list-alerts

Returns a list of alerts for an Atlas project.

The following table describes the database tools:

MCP Server Database Tool Name
Description

connect

Connects to a cluster.

find

Runs a database query.

aggregate

Runs an aggregation pipeline.

count

Returns the number of documents in a collection.

insert-one

Adds a single document to a collection.

insert-many

Adds multiple documents to a collection.

create-index

Adds an index to a collection.

update-one

Modifies a single document in a collection.

update-many

Modifies multiple documents in a collection.

rename-collection

Changes the name of a collection.

delete-one

Removes a single document from a collection.

delete-many

Removes multiple documents from a collection.

drop-collection

Deletes a collection from a database.

drop-database

Deletes a database.

list-databases

Returns a list of all databases available through the current connection.

list-collections

Returns a list of collections in a database.

collection-indexes

Returns information about collection indexes.

collection-schema

Returns collection schema information.

collection-storage-size

Returns collection size in megabytes.

db-stats

Returns database statistics.

To disable specific tools and restrict the MCP Server to read-only mode, see MongoDB MCP Server Configuration.

To see some MCP Server example natural language prompts, see MongoDB MCP Server Usage Examples.

Back

Configure

On this page