MongoDB · Vendor

MongoDB MCP Server

Query, inspect and administer MongoDB databases, and manage Atlas organizations, projects and clusters, from a local npm/Docker server or MongoDB's hosted Atlas Managed MCP Server.

Is it a fit?

Suitable for

  • Exploring collection schemas, indexes and data with find/aggregate on any MongoDB deployment (self-managed or Atlas) through a connection string.
  • Atlas administration (projects, clusters, database users, access lists, performance advisor, stream processing) with a least-privilege service account.
  • Read-only analysis when run with --readOnly and a read-only database user, as the vendor recommends.

Choose another option when

  • Running as a shared or internet-facing server: the local server has no built-in inbound authentication or multi-user isolation (vendor 'Deployment Constraints').
  • Unattended writes without review, because writes are allowed by default and confirmation prompts silently fail closed or are skipped depending on client elicitation support.
  • The hosted Atlas Managed server for non-Atlas deployments (Atlas only).
  • Giving an agent an Atlas service account without review: the Atlas tools can create database users, add access-list entries that open a cluster to 0.0.0.0/0, and create or scale paid clusters.

Your client host

Read and write · Host process execution. MDB_MCP_CONNECTION_STRING holds the deployment URI, including database user credentials, for local, self-managed or Atlas clusters. Supply credentials through the environment. If no connection string is set, the agent must call the `connect` tool, which would put the URI into tool arguments. The vendor recommends --readOnly (MDB_MCP_READ_ONLY=true) plus a read-only database user, and all README examples include --readOnly. The server default is readOnly=false.

Software: Free; hosting: Not applicable; external API: Unknown.

Your client host

Read and write · Host process execution. MDB_MCP_API_CLIENT_ID and MDB_MCP_API_CLIENT_SECRET come from an Atlas service account created under Access Manager. The secret is shown once. The caller's IP must be added to the API access list. The vendor says to assign the minimum role (prefer project-level roles; avoid Organization Owner) and gives a per-operation role table. A connection string can be set alongside. Atlas tools appear only when these credentials are set. atlas-connect-cluster creates temporary database users that are auto-deleted after 4 hours by default.

Software: Free; hosting: Not applicable; external API: Unknown.

No setup recipe published

This is a reference entry. The catalog has no published setup recipe for this server and does not generate one.

Use the publisher’s own instructions in the sources on this page. A listing here is not a compatibility test.

Check client compatibility · Troubleshoot a setup

What the record establishes

Publisher identity
Source matched; this is not a general safety certification.
Editorial record
Human review recorded ·
Last content review
Next review due
License
Apache-2.0
Network observation
No network check is inferred from this directory record. A client test, a recipe test, and your own task result are separate evidence.

Runtime variants, permissions, and costs

Your client host · Local process · stdio · npm mongodb-mcp-server 3.3.0

Reference only
Version
3.3.0
Authentication
Local credentials
Account and credentials
MDB_MCP_CONNECTION_STRING holds the deployment URI, including database user credentials, for local, self-managed or Atlas clusters. Supply credentials through the environment. If no connection string is set, the agent must call the `connect` tool, which would put the URI into tool arguments. The vendor recommends --readOnly (MDB_MCP_READ_ONLY=true) plus a read-only database user, and all README examples include --readOnly. The server default is readOnly=false.
Runtime
Node.js ^20.19.0 || ^22.13.0 || >= 24.0.0
Data contact
Database records, Local files
Access and execution
Read and write · Host process execution
Permissions
Database tools: find, aggregate, count, explain, schema/index inspection, insert-many, update-many, delete-many, create/drop/rename collection, drop-database, create/drop index, mongodb-logs. `export` writes EJSON files to ~/.mongodb/mongodb-mcp/exports, which expire after 5 minutes. Atlas Local tools create and delete local Atlas deployments, presumably through Docker (not stated), hence host_process. Assistant tools (search-knowledge) call knowledge.mongodb.com. Telemetry is on by default and sends usage data to MongoDB (destination not stated; MDB_MCP_TELEMETRY=disabled or DO_NOT_TRACK=1 turns it off). Confirmation-gated by default: drop-database, drop-collection, delete-many, drop-index, atlas-create-db-user, atlas-create-access-list, atlas-streams-manage, atlas-streams-teardown; without client elicitation these run unconfirmed. Results carry prompt-injection warnings by default. Server-side JS is off by default. Caps: 100 documents and 16 MiB per query. Source declared
External destinations
knowledge.mongodb.com · additional destinations are unknown

Three layers of cost

Software
Free

Apache-2.0 npm package.

Checked
Review due

raw.githubusercontent.com · registry.npmjs.org
Hosting
Not applicable

Runs on the client host.

Checked
Review due

raw.githubusercontent.com
External API
Unknown

The deployment or Atlas account may incur charges. The cited repository does not establish a plan price.

Checked Not recorded
Review due Not recorded

Variant sources and lifecycle

Source lifecycle: active · observed . This is not a live connection check.

Your client host · Local process · stdio · npm mongodb-mcp-server 3.3.0

Reference only
Version
3.3.0
Authentication
API key
Account and credentials
MDB_MCP_API_CLIENT_ID and MDB_MCP_API_CLIENT_SECRET come from an Atlas service account created under Access Manager. The secret is shown once. The caller's IP must be added to the API access list. The vendor says to assign the minimum role (prefer project-level roles; avoid Organization Owner) and gives a per-operation role table. A connection string can be set alongside. Atlas tools appear only when these credentials are set. atlas-connect-cluster creates temporary database users that are auto-deleted after 4 hours by default.
Runtime
Node.js ^20.19.0 || ^22.13.0 || >= 24.0.0
Data contact
Database records, Account information, Local files
Access and execution
Read and write · Host process execution
Permissions
Adds Atlas tools: list orgs, projects, clusters, alerts and database users; create project, cluster, free cluster, database user and access-list entry; pause, resume and upgrade clusters; load sample data; performance advisor; stream-processing build, manage and teardown. atlas-create-access-list can open a cluster to 0.0.0.0/0. Bounded by the service account's Atlas roles and by --readOnly. cloud.mongodb.com as the API host comes from the README's service-account steps; the exact API base URL the server calls is not quoted. Source declared
External destinations
cloud.mongodb.com, knowledge.mongodb.com · additional destinations are unknown

Three layers of cost

Software
Free

Apache-2.0 npm package.

Checked
Review due

raw.githubusercontent.com · registry.npmjs.org
Hosting
Not applicable

Runs on the client host.

Checked
Review due

raw.githubusercontent.com
External API
Unknown

The deployment or Atlas account may incur charges. The cited repository does not establish a plan price.

Checked Not recorded
Review due Not recorded

Variant sources and lifecycle

Source lifecycle: active · observed . This is not a live connection check.

Your client host · Local process · stdio · oci docker.io/mongodb/mongodb-mcp-server 3.3.0

Reference only
Version
3.3.0
Authentication
Local credentials
Account and credentials
`docker run --rm -i -e MDB_MCP_CONNECTION_STRING -e MDB_MCP_READ_ONLY=true mongodb/mongodb-mcp-server`. The Atlas service-account env pair works the same way. The README also shows a no-configuration run, after which the agent must call `connect`.
Runtime
Docker (version not recorded)
Data contact
Database records
Access and execution
Read and write · Unknown
Permissions
Same tool families as npm-stdio inside a container. Exports land inside the container unless a volume is mounted (not documented). Whether Atlas Local tools work inside the container is not stated. Source declared
External destinations
knowledge.mongodb.com · additional destinations are unknown

Three layers of cost

Software
Free

Same Apache-2.0 code as the npm package.

Checked
Review due

raw.githubusercontent.com · raw.githubusercontent.com
Hosting
Not applicable

Runs on the client host.

Checked
Review due

raw.githubusercontent.com
External API
Unknown

The deployment or Atlas account may incur charges. The cited repository does not establish a plan price.

Checked Not recorded
Review due Not recorded

Variant sources and lifecycle

Source lifecycle: active · observed . This is not a live connection check.

Vendor cloud · Streamable HTTP · fixed endpoint mcp.mongodb.com

Reference only
Version
Not recorded
Authentication
OAuth
Account and credentials
Atlas uses OAuth for compatible clients. The current client allowlist, grant lifetime and rate limits are unverified. Review the permissions shown during authorization.
Runtime
Hosted service (version not recorded)
Data contact
Database records, Account information
Access and execution
Unknown · Unknown
Permissions
The remote service operates with the Atlas identity used to connect. Its effective write scope and tool set have not been verified. Check the intended access in Atlas before connecting. Unknown
External destinations
mcp.mongodb.com · additional destinations are unknown

Three layers of cost

Software
Not applicable

Vendor-hosted endpoint.

Checked
Review due

raw.githubusercontent.com
Hosting
Not applicable

MongoDB hosts and operates the server.

Checked
Review due

raw.githubusercontent.com
External API
Unknown

The deployment or Atlas account may incur charges. The cited repository does not establish a plan price.

Checked Not recorded
Review due Not recorded

Variant sources and lifecycle

Source lifecycle: Unknown · observed Not recorded. This is not a live connection check.

Vendor cloud · Streamable HTTP · fixed endpoint mcp.mongodb.com

Reference only
Version
Not recorded
Authentication
OAuth
Account and credentials
An Organization Owner or Project Owner can create an Atlas MCP configuration to obtain the client ID and secret. These credentials differ from Atlas API credentials used by the local server.
Runtime
Hosted service (version not recorded)
Data contact
Database records, Account information
Access and execution
Unknown · Unknown
Permissions
The remote service operates with the Atlas identity used to connect. Its effective write scope and tool set have not been verified. Check the intended access in Atlas before connecting. Unknown
External destinations
mcp.mongodb.com · additional destinations are unknown

Three layers of cost

Software
Not applicable

Vendor-hosted endpoint.

Checked
Review due

raw.githubusercontent.com
Hosting
Not applicable

MongoDB hosts and operates the server.

Checked
Review due

raw.githubusercontent.com
External API
Unknown

The deployment or Atlas account may incur charges. The cited repository does not establish a plan price.

Checked Not recorded
Review due Not recorded

Variant sources and lifecycle

Source lifecycle: Unknown · observed Not recorded. This is not a live connection check.

Your client host · Local process · stdio · npm mongodb-atlas-mcp-remote 1.0.0

Reference only
Version
1.0.0
Authentication
API key
Account and credentials
The bridge uses the client ID and secret issued for the Atlas MCP configuration. Its default service URL is https://mcp.mongodb.com. It accepts the credentials through its environment.
Runtime
Node.js ^20.19.0 || ^22.13.0 || >= 24.0.0
Data contact
Database records, Account information
Access and execution
Unknown · Unknown
Permissions
The remote service operates with the Atlas identity used to connect. Its effective write scope and tool set have not been verified. Check the intended access in Atlas before connecting. Unknown
External destinations
mcp.mongodb.com · additional destinations are unknown

Three layers of cost

Software
Free

Apache-2.0 npm package.

Checked
Review due

registry.npmjs.org
Hosting
Not applicable

Bridge runs on the client host; the server is MongoDB-hosted.

Checked
Review due

raw.githubusercontent.com
External API
Unknown

The deployment or Atlas account may incur charges. The cited repository does not establish a plan price.

Checked Not recorded
Review due Not recorded

Variant sources and lifecycle

Source lifecycle: Unknown · observed Not recorded. This is not a live connection check.

Exact published recipes

Reference entry

No supported recipe is published for this server. The sources below and client compatibility guide remain available.

Decision notes

Writes are allowed by default; the vendor recommends --readOnly plus a read-only database user.

Conditions: Local server; README examples include --readOnly, server default is readOnly=false.

Checked

Works with any MongoDB deployment through a connection string, including self-managed and Atlas; the hosted Atlas Managed server is Atlas-only.

Conditions: The repository describes separate local and vendor-hosted deployment modes.

Checked

Hosted Atlas Managed MCP Server with OAuth sign-in for supported AI clients, or service-account (client-credentials) access for agents.

Conditions: The vendor documents OAuth for supported clients and a separate bridge using credentials from an Atlas MCP configuration. Availability and rate limits are unverified.

Checked

Sources and corrections

Report a factual correction · How evidence is labeled

Browse more servers