Database · Developer Tools

Atlas MCP Server logo

Atlas MCP Server

mongodb-js/mongodb-mcp-server

A Model Context Protocol server for interacting with MongoDB Databases and MongoDB Atlas.

Install

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

Client configuration

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

Environment variables

MDB_MCP_CONNECTION_STRINGMDB_MCP_API_CLIENT_IDMDB_MCP_API_CLIENT_SECRETMDB_MCP_LOGGERSMDB_MCP_CONFIGMDB_MCP_LOG_PATHHTTPS_PROXYNO_PROXY
GitHub stars
9
Category
Database, Developer Tools
Updated
Oct 6, 2026

Features

  • For environment variable configuration, use a comma-separated string: export MDB_MCP_PREVIEW_FEATURES="feature1,feature2".

  • For command-line argument configuration, use a space-separated string: --previewFeatures feature1 feature2.

  • mcpUI - Enables an optional web-based UI for interacting with the MCP server.

Tools (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.

Details on this page are taken from the project's README. Open README

Supported clients

Clients mentioned in this server's README:

View all
Claude Desktop logo

Claude Desktop

Desktop · Freemium · Proprietary

Anthropic's official Claude AI desktop application. Supports MCP servers to extend functionality.

WindowsMacOS
Cursor logo

Cursor

Desktop · Freemium · Proprietary

The first agentic IDE. The Cursor editor truly merges how developers and AI work together, delivering a magical coding experience.

WindowsMacOSLinux
VS Code GitHub Copilot logo

VS Code GitHub Copilot

Desktop · Freemium · MIT

VS Code integrates MCP with GitHub Copilot through agent mode, allowing direct interaction with MCP-provided tools in your agentic coding workflow. Configure servers in Claude Desktop, workspace, or user settings, with guided MCP installation and secure handling of secrets in input variables to avoid leaking hardcoded keys.

WindowsMacOSLinuxWeb

Related MCP servers

More servers
Supabase MCP logo

Supabase MCP

supabase-community/supabase-mcp

1.3k

The Model Context Protocol (MCP) standardizes how Large Language Models (LLMs) talk to external services like Supabase. It connects AI assistants directly with your Supabase project and allows them to perform tasks like managing tables, fetching config, and querying data. See the full list of tools.

Database
Genai Toolbox logo

Genai Toolbox

googleapis/genai-toolbox

769

MCP Toolbox for Databases is an open source Model Context Protocol (MCP) server that connects your AI agents, IDEs, and applications directly to your enterprise databases.

Database
Supabase MCP Server logo

Supabase MCP Server

alexander-zuev/supabase-mcp-server

677

Query MCP is an open-source MCP server that lets your IDE safely run SQL, manage schema changes, call the Supabase Management API, and use Auth Admin SDK — all with built-in safety controls.

Database
Awesome MCP List logo

Awesome MCP List

MobinX/awesome-mcp-list

645

This is a continuously updated curated list of MCP servers, covering categories such as browser control, arts and culture, cloud platforms, command line, communication, customer data platforms, databases, developer tools, data science tools, file systems, finance and fintech, gaming, knowledge and memory, location services, marketing, monitoring, search and utilities. Each project includes a GitHub link and star count for quick reference and use.

Database
PostgreSQL Model Context Protocol (PG MCP) Server logo

PostgreSQL Model Context Protocol (PG MCP) Server

stuzero/pg-mcp-server

440

PG-MCP is a server implementation of the Model Context Protocol for PostgreSQL databases. It provides a comprehensive API for AI agents to discover, connect to, query, and understand PostgreSQL databases through MCP's resource-oriented architecture.

Database
dbhub logo

dbhub

bytebase/dbhub

332

[!NOTE] If you need an enterprise-level database MCP server with built-in guardrails like approval flow, access control, data masking, and audit logging beyond what DBHub offers, check out Bytebase.

Database