AgentIndex icon
AgentIndex
ToolsCategoriesTrendingNewCompareGuides
Submit Tool
ToolsCategoriesTrendingNewCompareGuides
Home/
API Integration/
mongodb-mcp-server
mongodb-mcp-server logo

mongodb-mcp-server

Active·★ 1.1k·Apache-2.0·Updated 2026-10-13
★ Data Processing★ API Integration

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-13.

License
Apache-2.0
Latest release
v3.0.5 · 2026-10-01
Last commit
2026-10-13
Contributors
50
Forks
295
Open issues and PRs
24
First published
2025-04-04
npm package
mongodb-mcp-server 3.0.5 · 108,205 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
04

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
05

Quick start

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

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.
07

Alternatives

GitHub MCP Server logo
GitHub MCP Server★ 33.6k
GitHub's official MCP Server. Allows AI agents to interact directly with your GitHub repositories (read files, search code, issues).
python-sdk logo
python-sdk★ 24.6k
The official Python SDK for Model Context Protocol servers and clients
Context7 logo
Context7★ 63.0k
MCP Server that provides up-to-date code documentation for LLMs and AI code editors.
Brave Search MCP logo
Brave Search MCP★ 1.5k
Allow your AI Agent to search the real-time internet using Brave Search API. Essential for getting up-to-date information.
Gemini CLI logo
Gemini CLI★ 107.3k
An open-source AI agent that brings the power of Gemini directly into your terminal. Supports native MCP.
Flowise logo
Flowise★ 55.5k
Visual builder for AI agents and LLM workflows. Discontinued: the repository was archived in August 2026 and the project reached end of life on August 31, 2026.
letta logo
letta★ 25.1k
Letta is the platform for building stateful agents: open AI with advanced memory that can learn and self-improve over time.
Cherry Studio logo
Cherry Studio★ 52.6k
A powerful desktop client for multiple LLMs. Supports local and cloud models.
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-offs04Compatibility05Quick start06Use cases07Alternatives
Stats
GitHub Stars★ 1.1k
Last commit1d ago
StatusActive
LicenseApache-2.0
CategoryAPI Integration
Trend (30d)
+0k↑ 1.1%
Links
Documentation↗Discussion↗Issues↗Releases↗

Deploy on DigitalOcean — Get $200 Free Credit

Ad
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
Best by use caseAboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

Code AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.