MCP.so
Sign In

MongoDB MCP Server

@yairsabag

About MongoDB MCP Server

No overview available yet

Basic information

Category

Databases

License

Apache-2.0 license

Runtime

node

Transports

stdio

Publisher

yairsabag

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "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"
      ]
    }
  }
}

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

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.

Comments

More Databases MCP servers