MCP.so
登录

MongoDB MCP Server

@yairsabag

关于 MongoDB MCP Server

暂无概览

基本信息

分类

数据库

许可证

Apache-2.0 license

运行时

node

传输方式

stdio

发布者

yairsabag

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mongodb-mcp-server-new": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server",
        "--apiClientId=your-atlas-service-accounts-client-id",
        "--apiClientSecret=your-atlas-service-accounts-client-secret"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MongoDB MCP Server?

A Model Context Protocol server for interacting with MongoDB Databases and MongoDB Atlas. It provides tools for managing Atlas resources and performing database operations, intended for developers using MCP-compatible clients.

How to use MongoDB MCP Server?

Requires Node.js v20.10.0+ and either a MongoDB connection string or Atlas API credentials; the server will not start without these. Run via npx -y mongodb-mcp-server with command-line arguments or environment variables, or use a Docker container. Configuration can be placed in an MCP client settings file (e.g., for Windsurf, VSCode, Claude Desktop, Cursor). Tools are divided into Atlas management and database CRUD categories.

Key features of MongoDB MCP Server

  • Supports MongoDB Atlas administrative tools and direct database operations
  • Configurable via command-line arguments, environment variables, or MCP client config
  • Read-only mode restricts tools to read and metadata operations only
  • Tool disabling by name, operation type, or category (atlas, mongodb)
  • Docker support for isolated execution without local Node.js
  • Telemetry collection can be disabled via configuration or DO_NOT_TRACK

Use cases of MongoDB MCP Server

  • Managing MongoDB Atlas organizations, projects, clusters, and access lists from an LLM interface
  • Running database queries (find, aggregate) and document modifications through natural language
  • Inspecting collection schemas, indexes, and storage sizes for analysis
  • Automating cluster creation, user management, and alert monitoring

FAQ from MongoDB MCP Server

What prerequisites are needed to run the server?

Node.js v20.10.0 or later and either a MongoDB connection string or Atlas API credentials. The server will not start without these credentials.

How can I disable certain tools or categories?

Use the disabledTools configuration option with a comma-separated string (env) or space-separated list (CLI). Categories include atlas, mongodb; operation types include create, update, delete, read, metadata.

Does the server support read-only mode?

Yes. Set readOnly=true via environment variable or --readOnly argument. This prevents all create, update, and delete operations from registering with the server.

Can I run it without installing Node.js?

Yes, using Docker. Pull mongodb/mongodb-mcp-server:latest and pass credentials via environment variables or run without options for an interactive setup.

Is telemetry collected? Can it be disabled?

Telemetry is collected by default but can be disabled using the telemetry option set to disabled, or by setting the DO_NOT_TRACK=1 environment variable.

评论

数据库 分类下的更多 MCP 服务器