数据库 · 开发者工具

Atlas MCP Server logo

Atlas MCP Server

mongodb-js/mongodb-mcp-server

一个实现MCP协议的服务器,允许AI助手通过自然语言与MongoDB Atlas资源交互

安装

npx -y mongodb-mcp-server@latest --readOnly

客户端配置

{
  "mcpServers": {
    "MongoDB": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server@latest",
        "--readOnly"
      ],
      "env": {
        "MDB_MCP_CONNECTION_STRING": "<MDB_MCP_CONNECTION_STRING>"
      }
    }
  }
}

环境变量

MDB_MCP_CONNECTION_STRINGMDB_MCP_API_CLIENT_IDMDB_MCP_API_CLIENT_SECRETMDB_MCP_LOGGERSMDB_MCP_CONFIGMDB_MCP_LOG_PATHHTTPS_PROXYNO_PROXY
GitHub 星标
9
分类
数据库, 开发者工具
更新于
2026年10月6日

工具(40)

  • aggregate

    Run an aggregation against a MongoDB collection

  • aggregate-db

    Run an aggregation against a MongoDB database

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

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

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

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

  • atlas-connect-cluster

    Connect to MongoDB Atlas cluster and get back a connectionId to pass to the other MongoDB tools.

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

  • 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…

  • 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-load-sample-dataset

    Load a MongoDB sample dataset into an Atlas cluster, or check the status of a previously-initiated load.

  • atlas-pause-resume-cluster

    Pause or resume a dedicated (M10+) MongoDB Atlas cluster.

  • atlas-streams-build

    Create Atlas Stream Processing resources.

  • atlas-streams-discover

    Discover and inspect Atlas Stream Processing resources.

  • atlas-streams-manage

    Manage Atlas Stream Processing resources: start/stop processors, modify pipelines, update configurations.

  • atlas-streams-teardown

    Delete Atlas Stream Processing resources.

  • atlas-upgrade-cluster

    Upgrade or scale a MongoDB Atlas cluster.

  • atlas-local-connect-deployment

    Connect to a MongoDB Atlas Local deployment and get back a connectionId to pass to the other MongoDB tools

  • atlas-local-create-deployment

    Create a MongoDB Atlas local deployment.

本页信息摘自该项目的 README。 查看 README

支持的客户端

该服务器 README 中提到的客户端:

查看全部
Claude Desktop logo

Claude Desktop

桌面端 · 免费增值 · Proprietary

Anthropic 官方推出的 Claude AI 桌面应用程序。支持 MCP 服务器以扩展功能。

WindowsMacOS
Cursor logo

Cursor

桌面端 · 免费增值 · Proprietary

首个代理式 IDE。Cursor 编辑器让开发者与 AI 的工作真正融合在一起,提供如魔法般的编码体验。

WindowsMacOSLinux
VS Code GitHub Copilot logo

VS Code GitHub Copilot

桌面端 · 免费增值 · MIT

VS Code 通过代理模式将 MCP 与 GitHub Copilot 集成,允许在你的代理编码工作流中直接与 MCP 提供的工具交互。在 Claude Desktop、工作区或用户设置中配置服务器,提供引导式 MCP 安装和安全处理输入变量中的密钥,避免泄露硬编码密钥。

WindowsMacOSLinuxWeb

相关 MCP 服务器

更多服务器
Supabase MCP logo

Supabase MCP

supabase-community/supabase-mcp

1.3k

Supabase MCP Server是一个连接Supabase项目与AI助手的工具,通过Model Context Protocol(MCP)标准化大型语言模型(LLMs)与外部服务的交互,实现数据库管理、配置获取和数据查询等功能。

数据库
Genai Toolbox logo

Genai Toolbox

googleapis/genai-toolbox

769

MCP Toolbox for Databases是一个开源数据库MCP服务器,专注于企业级和生产质量,简化工具开发,提供连接池、认证等复杂功能。

数据库
Supabase MCP Server logo

Supabase MCP Server

alexander-zuev/supabase-mcp-server

677

Supabase MCP服务器是一个开源工具,允许IDE安全执行SQL、管理模式变更、调用Supabase管理API和使用Auth Admin SDK,内置安全控制。

数据库
Awesome MCP List logo

Awesome MCP List

MobinX/awesome-mcp-list

645

这是一个持续更新的MCP服务器精选列表,涵盖了浏览器控制、艺术与文化、云平台、命令行、通信、客户数据平台、数据库、开发者工具、数据科学工具、文件系统、金融与金融科技、游戏、知识与记忆、位置服务、营销、监控、搜索和实用工具等多个类别。每个项目都附带了GitHub链接和星标数量,方便用户快速了解和使用。

数据库
PostgreSQL Model Context Protocol (PG MCP) Server logo

PostgreSQL Model Context Protocol (PG MCP) Server

stuzero/pg-mcp-server

440

PG-MCP是一个为PostgreSQL数据库设计的模型上下文协议服务器,提供AI代理发现、连接、查询和理解数据库的API,支持多数据库连接、丰富的目录信息和查询解释功能。

数据库
dbhub logo

dbhub

bytebase/dbhub

332

DBHub是一个实现模型上下文协议(MCP)的通用数据库网关,支持多种数据库连接和操作。

数据库