Mongodb MCP Server logo

Mongodb MCP Server

未认领

作者:mongodb-js

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

mcpmcp-servermongodbmongodb-atlasmongodb-database

01 / 选择客户端

02 / 连接前的准备

认证方式尚未指定。连接前请查看项目说明。

安装项目所需的运行环境,并确保客户端能够使用它。

项目说明

输入项目说明中的变量名,用逗号分隔。只输入名称,不要输入密钥值。

03 / 添加配置

来源:根据公开安装说明生成

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

替换占位符后在终端中运行。

04 / 在客户端中确认

打开客户端的 MCP 设置,确认服务器已连接并列出工具。复制配置不代表连接成功。

更多Databases服务器

浏览完整目录

未认领列表

这个 MCP 服务器是你的吗?

此列表根据公开信息自动生成。认领后,你可以编辑页面、设置兼容性并解锁增长工具。全程不超两分钟。

认领此服务器

安全概况

已认领和已认证的服务器每周接受一次静态扫描,显示代码能触及的范围(外部服务、环境变量、shell 命令、代理配置目录)以及带有已知公告的依赖。认领此列表即可获得。 安全概况的工作原理

40 个工具中显示 40 个

文档中列出的工具 (40)

内容来自项目文档。服务器握手不会验证每个工具的说明或行为。

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.

工具变更历史

比较相同配置的完整检查。只列出工具,未调用工具。此处不测量输入结构的变化。

尚无完整工具检查。