AgentIndex icon
AgentIndex
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Submit Tool
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Home/
API Integration/
mongodb-mcp-server
mongodb-mcp-server logo

mongodb-mcp-server

Active·★ 1.1k·Apache-2.0·Updated 2026-10-23

This is an MCP server from the mongodb-js organization for working with MongoDB databases and MongoDB Atlas from an AI client. It needs Node.js 20.19 or newer (22.12 or newer on v22) and either a MongoDB connection string or Atlas API service-account credentials; the README says the server will not start unless one of them is configured.

The tool list is split into Atlas tools (list organizations, projects and clusters, inspect a cluster, manage access lists and database users, create a free cluster, read performance-advisor suggestions and alerts), Atlas Local tools (create, connect to and delete local deployments) and database tools. Atlas tools only appear when API credentials are set. Configuration comes from environment variables, command-line arguments or the MCP client config file, with proxy support, and a `disabledTools` option can turn off tool names, operation types or whole categories.

Every example in the README includes `--readOnly`, which blocks write operations until you remove it. It also recommends giving the Atlas service account only the permissions it needs, and passing secrets through environment variables rather than command-line arguments, which can show up in process lists. A section covers deployment on Azure. Install in Cursor or VS Code from the README badges, or run `npx -y mongodb-mcp-server@latest --readOnly`. This review is based on the README and repository data; we have not run it ourselves.

This write-up is based on the project's README and public repository data. We have not hand-tested the tool. Data as of 2026-10-20.

License
Apache-2.0
Latest release
v3.1.0 · 2026-10-15
Last commit
2026-10-20
Contributors
50
Forks
298
Open issues and PRs
34
First published
2025-04-04
npm package
mongodb-mcp-server 3.1.0 · 84,315 downloads last week

Source: GitHub, npm and PyPI public APIs.

#MongoDB#MongoDB Atlas#Model Context Protocol#Server#Node.js#Docker#Database Management#API
$ Install
$ npx -y mongodb-mcp-server@latest --readOnly
↗ Visit site★ GitHub
01

Features

01Model Context Protocol (MCP) Compliance for integrating MongoDB with AI/ML tools and environments.
02Comprehensive MongoDB Database Tools for queries, aggregations, schema inspection, and data manipulation.
03Seamless MongoDB Atlas Integration with tools for cluster management, user administration, and performance insights.
04Flexible Deployment Options including Node.js (npx), standalone service, Docker containers, and HTTP server mode.
05Enhanced Security with support for environment variables for sensitive data and default read-only access.
02

Why choose it

+Official MongoDB-organization server covering both databases and Atlas (clusters, users, access lists, performance advisor, alerts)
+`--readOnly` is in every README example, and `disabledTools` can switch off tools, operation types or categories
+Works with a plain connection string, so a local MongoDB instance is enough; Atlas tools appear only when API credentials are set
+Install from Cursor/VS Code badges or `npx`; Apache-2.0; last push 2026-10-12
03

Trade-offs

!Removing `--readOnly` or giving Atlas credentials broad permissions lets the agent change or delete real data and cluster settings
!Needs a recent Node.js version and a configured connection string or credentials before it starts
!Configuration has many options across env vars, CLI arguments and client files, so setup takes some reading
05

Maintenance check

ActiveChecked: 2026-10-19
Last commit
2026-10-19
Commits, last 90 days
100+
Releases, last 90 days
28
Latest release
v3.1.1-pre.1 (2026-10-15)
Open issues
27
Recent issues with at least one comment
2/2
Commits per week, last 12 weeks
Commits per week, last 12 weeks: 14, 8, 9, 17, 15, 23, 21, 11, 22, 4, 15, 1

Oldest week on the left; the latest four weeks are orange. Source: GitHub commit activity.

Status rule: archived on GitHub = Archived; last commit within 90 days = Active; 91 to 365 days = Slowing; older = Stale. All figures come from the GitHub API on the date shown.

Most discussed open issues

  • #1540 [Bug]: Space-separated `--disabledTools` values are silently ignored since 1.3.0, and the second value becomes the connection target9 comments · 2026-09-18
  • #1427 [Bug]: outputSchema declares draft-07 (inherited SDK default), making every tool unusable in Claude Code6 comments · 2026-08-12
  • #1269 [Bug]: connect tool reports "Successfully connected" for OIDC before auth completes, hiding the device-flow URL + user code6 comments · 2026-06-21
  • #829 Feature Request: Add `maxTimeMS` Configuration Option for Query Timeout4 comments · 2026-01-06
  • #1396 Expose `collectProcessMetrics` as a CLI/env config option3 comments · 2026-07-27

Issue titles are quoted from GitHub. Open the link to check whether a problem still applies to the version you use.

04

Who it fits

Pick it if
  • Your data is in MongoDB or MongoDB Atlas, and you want the vendor-organisation server.
  • You want to manage Atlas from the agent: the README lists clusters, database users, access lists, performance advisor and alerts.
  • You want to disable risky tools: --readOnly and disabledTools can turn off tools, operation types or whole categories.
Look elsewhere if
  • You use SQL databases; this server is MongoDB-specific.
  • You cannot run Node.js 20.19 or newer (22.12 or newer on v22).
  • You plan to give Atlas credentials with broad permissions and drop --readOnly; the agent could then change or delete real data and cluster settings.
06

How it differs

mcp-toolbox logovs mcp-toolbox★ 16.7k

MCP Toolbox spans many database types; the MongoDB server goes deep on one, including Atlas administration. Pick by where your data lives.

Full comparison →
07

Compatibility

Node.js
Runtime
Verified via docs
Docker
Containerization
Verified via docs
VS Code
MCP Client
Verified via docs
Cursor
MCP Client
Verified via docs
MongoDB
Database
Verified via docs
MongoDB Atlas
Cloud Database
Verified via docs
08

Quick start

1
$ npx -y mongodb-mcp-server@latest --readOnly
09

Use cases

↳Integrate MongoDB databases and Atlas into AI/ML development workflows via MCP clients like VS Code and Cursor.
↳Automate routine MongoDB database operations and management tasks programmatically.
↳Manage MongoDB Atlas cloud resources, such as creating clusters, users, and setting up access lists.
↳Monitor database performance and get optimization recommendations using Atlas performance advisor tools.
↳Facilitate local MongoDB development and testing by managing local Atlas deployments.
10

Alternatives

⚡Top VS:
VSmcp-toolbox★16.7k→VSddgs★3.0k→VSrestheart★894→VSline-bot-mcp-server★790→
mcp-toolbox logo
mcp-toolbox★ 16.7k
MCP Toolbox for Databases is an open source MCP server for databases.
VSCompare→
ddgs logo
ddgs★ 3.0k
A metasearch library that aggregates results from diverse web search services
VSCompare→
restheart logo
restheart★ 894
The Agent-Ready Backend for MongoDB.
VSCompare→
line-bot-mcp-server logo
line-bot-mcp-server★ 790
MCP server that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.
VSCompare→
notion-mcp-server logo
notion-mcp-server★ 4.7k
Official Notion MCP Server
VSCompare→
redd-archiver logo
redd-archiver★ 349
A PostgreSQL-backed archive generator that creates browsable HTML archives from link aggregator platforms including Reddit, Voat, and Ruqqus.
VSCompare→
mcp logo
mcp★ 24
MCP server for Local Falcon's local SEO and AI visibility platform: geo-grid rank tracking, campaign management, and competitor analysis via Model Context Protocol
VSCompare→
datagouv-mcp logo
datagouv-mcp★ 1.6k
Official data.gouv.fr Model Context Protocol (MCP) server that allows AI chatbots to search, explore, and analyze datasets from the French national Open Data platform, directly through conversation.
VSCompare→
See all alternatives →

Featured in these lists

  • Best MCP Servers for Databases

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Why choose it03Trade-offs05Maintenance check04Who it fits06How it differs07Compatibility08Quick start09Use cases10Alternatives
mongodb-js /
mongodb-mcp-server
↗

MongoDB's MCP server for databases and Atlas, with a read-only mode and per-tool disabling

1.1k298Apache-2.0
Last commit1d ago
StatusActive
CategoryAPI Integration
Contributors50
Latest releasev3.1.0
Links
Documentation↗Discussion↗Issues↗Releases↗
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
Best by use caseAboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

MCP ServersCode AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.