MongoDB MCP Server

A Model Context Protocol server for interacting with MongoDB Databases and MongoDB Atlas. Its 40 documented tools cover atlas, collection, many, cluster. It runs locally over stdio via the published package.

People connecting database tools to Claude, Cursor, VS Code, or another MCP client. The project is written in TypeScript.

VERIFIED ACTIVE

LAST COMMIT 2026-08-24 · ★ 1,106 · #2 OF 151 MAINTAINED DATABASE · VERIFIED 2026-08-25

Apache-2.0 · TypeScript servers · how we verify → /methodology

01 · Install MongoDB MCP Server

before you install - you'll need

Set MDB_MCP_CONNECTION_STRING, MDB_MCP_API_CLIENT_ID, MDB_MCP_API_CLIENT_SECRET, MDB_MCP_READ_ONLY before connecting.

Claude Code

claude mcp add mongodb-js-mongodb-mcp-server -- npx -y mongodb-mcp-server

Claude Desktop / Cursor / VS Code - add to config

{
  "mcpServers": {
    "mongodb-js-mongodb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server"
      ]
    }
  }
}

Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.

Using another client? Same JSON, different key

Claude Desktop · mcpServers

Cursor · mcpServers

VS Code · servers

Windsurf · mcpServers

Zed · context_servers

Cline · mcpServers

Roo Code · mcpServers

Continue · mcpServers

LibreChat · mcpServers

Gemini CLI · mcpServers

Codex CLI · mcp_servers

Full setup guides: every client.

02 · Evidence

Security posture

What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.

runs as local process (stdio) - runs on your machine with your user's permissions · container (OCI image) - can be sandboxed away from your filesystem

license Apache-2.0 - declared in the repository

npm package mongodb-mcp-server - unscoped; check the name against the project README before installing

registry namespace io.github.mongodb-js is GitHub-verified and matches the repo owner

03 · What MongoDB MCP Server can do

Prose above is summarized from the project's README and registry record - no invented capabilities.

What you can build

With this server connected, an agent can run an aggregation against a MongoDB collection, run an aggregation against a MongoDB database, describe the indexes for a collection, and describe the schema for a collection.

Capability map

Tools grouped from the project's README - what MongoDB MCP Server lets an agent do.

Atlas

15 tools - e.g. Allow Ip/CIDR ranges to access your MongoDB Atlas clusters.; Create an MongoDB Atlas database user; Create a free MongoDB Atlas cluster

atlas-create-access-list · atlas-create-db-user · atlas-create-free-cluster · atlas-create-project · atlas-get-regions · atlas-inspect-access-list…

Collection

6 tools - e.g. Describe the indexes for a collection; Describe the schema for a collection; Gets the size of the collection

collection-indexes · collection-schema · collection-storage-size · create-collection · drop-collection · rename-collection

read & search

4 tools - e.g. Run a find query against a MongoDB collection; List all collections for a given database; List the active MongoDB connections and their connectionIds. Use this to find a connectionId established earlier.

find · list-collections · list-connections · list-databases

Many

3 tools - e.g. Removes all documents that match the filter from a MongoDB collection; Insert an array of documents into a MongoDB collection. If the list of documents is above com.mongodb/maxRequestPayloadBytes…

delete-many · insert-many · update-many

Aggregate

2 tools - e.g. Run an aggregation against a MongoDB collection; Run an aggregation against a MongoDB database

aggregate · aggregate-db

Index

2 tools - e.g. Create an index for a collection; Drop an index for the provided database and collection.

create-index · drop-index

Connect

1 tool - e.g. Connect to a MongoDB instance

connect

Count

1 tool - e.g. Gets the number of documents in a MongoDB collection using db.collection.count() and query as an optional filter parameter

count

Latest releases

mongodb-atlas-mcp-remote/v1.0.0 · 2026-08-10

v2.1.0 · 2026-08-10

What's New · You can now create Atlas clusters with advanced options including multi-region configurations and Customer Managed Keys (CMK) for encryption, as well as pause, resume, and upgrade existing clusters…

v2.0.0 · 2026-08-04

What's New · You can now create Atlas clusters with multi-region configurations and Customer-Managed Key (CMK) encryption directly through the AI assistant, alongside new tools to pause, resume, and upgrade existing…

In the wild · how people use MongoDB MCP Server

Public posts that name a concrete use case. Linked source posts - not MCPhq reviews, ratings, or endorsements.

04 · Who maintains MongoDB MCP Server

mongodb-mcp-server is maintained by mongodb-js. It's the only MCP server we track from this author; the repo dates to Apr 2025.

05 · Facts

category
database - ranked #2 of 151 actively-maintained database servers as of 2026-08-25.
release cadence
3 releases in the last 90 days (latest 2026-08-10)
registry
io.github.mongodb-js/mongodb-mcp-server (active, first published 2025-10-24 · 17 versions)
packages
npm:mongodb-mcp-server · oci:docker.io/mongodb/mongodb-mcp-server:2.1.0

06 · MongoDB MCP Server FAQ

Is MongoDB MCP Server still maintained?

Yes - as of 2026-08-25, its last commit was 2026-08-24 and it shipped 3 releases in the last 90 days. We re-verify nightly.

What can MongoDB MCP Server do?

With this server connected, an agent can run an aggregation against a MongoDB collection, run an aggregation against a MongoDB database, describe the indexes for a collection, and describe the schema for a collection.

How do I install MongoDB MCP Server?

Run `npx -y mongodb-mcp-server`. The README documents 4 environment variables (MDB_MCP_CONNECTION_STRING, MDB_MCP_API_CLIENT_ID, MDB_MCP_API_CLIENT_SECRET…) to set first. Set MDB_MCP_CONNECTION_STRING, MDB_MCP_API_CLIENT_ID, MDB_MCP_API_CLIENT_SECRET, MDB_MCP_READ_ONLY before connecting. You can also paste the ready-made client config above.

Does MongoDB MCP Server run locally?

Yes - it's a stdio server: it runs on your machine (via npx) with your user's permissions. Your data stays local unless the server itself calls external APIs.

07 · Alternatives to MongoDB MCP Server

head to head · MongoDB MCP Server vs Supabase · Dbhub vs MongoDB MCP Server · MongoDB MCP Server vs Dbx

More database MCP servers · Server Motherduck · Tabedata MCP · Oraclemcp · Safedb MCP · Apple Health

More TypeScript MCP servers · REA · Boe MCP · Komodo MCP Server · Metricui · Mpp32 MCP Server · see all