MongoDB MCP Server
● Activeio.github.mongodb-js/mongodb-mcp-server
Official MongoDB MCP server: let AI agents search and manage databases and the Atlas data platform
Connect this server
One click to install, or copy the config below. Suits: Claude Desktop · Cursor.
Or add it manually — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor):
{
"mcpServers": {
"mongodb-mcp-server": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server@3.4.0",
"--apiClientId",
"--apiClientSecret",
"--assistantBaseUrl",
"--confirmationRequiredTools",
"--connectionScope",
"--connectionString",
"--disabledTools",
"--exportsPath",
"--healthCheckHost",
"--httpHeaders",
"--httpHost",
"--httpResponseType",
"--logPath",
"--loggers",
"--mcpClientLogLevel",
"--monitoringServerFeatures",
"--monitoringServerHost",
"--previewFeatures",
"--telemetry",
"--transport",
"--voyageApiKey"
],
"env": {
"MDB_MCP_API_CLIENT_ID": "<your MDB_MCP_API_CLIENT_ID>",
"MDB_MCP_API_CLIENT_SECRET": "<your MDB_MCP_API_CLIENT_SECRET>",
"MDB_MCP_CONNECTION_STRING": "<your MDB_MCP_CONNECTION_STRING>",
"MDB_MCP_CONNECTION_STRINGS": "<your MDB_MCP_CONNECTION_STRINGS>",
"MDB_MCP_VOYAGE_API_KEY": "<your MDB_MCP_VOYAGE_API_KEY>"
}
}
}
}claude mcp add --env MDB_MCP_API_CLIENT_ID='<your MDB_MCP_API_CLIENT_ID>' --env MDB_MCP_API_CLIENT_SECRET='<your MDB_MCP_API_CLIENT_SECRET>' --env MDB_MCP_CONNECTION_STRING='<your MDB_MCP_CONNECTION_STRING>' --env MDB_MCP_CONNECTION_STRINGS='<your MDB_MCP_CONNECTION_STRINGS>' --env MDB_MCP_VOYAGE_API_KEY='<your MDB_MCP_VOYAGE_API_KEY>' --transport stdio mongodb-mcp-server -- npx -y mongodb-mcp-server@3.4.0 --apiClientId --apiClientSecret --assistantBaseUrl --confirmationRequiredTools --connectionScope --connectionString --disabledTools --exportsPath --healthCheckHost --httpHeaders --httpHost --httpResponseType --logPath --loggers --mcpClientLogLevel --monitoringServerFeatures --monitoringServerHost --previewFeatures --telemetry --transport --voyageApiKeycodex mcp add mongodb-mcp-server --env MDB_MCP_API_CLIENT_ID='<your MDB_MCP_API_CLIENT_ID>' --env MDB_MCP_API_CLIENT_SECRET='<your MDB_MCP_API_CLIENT_SECRET>' --env MDB_MCP_CONNECTION_STRING='<your MDB_MCP_CONNECTION_STRING>' --env MDB_MCP_CONNECTION_STRINGS='<your MDB_MCP_CONNECTION_STRINGS>' --env MDB_MCP_VOYAGE_API_KEY='<your MDB_MCP_VOYAGE_API_KEY>' -- npx -y mongodb-mcp-server@3.4.0 --apiClientId --apiClientSecret --assistantBaseUrl --confirmationRequiredTools --connectionScope --connectionString --disabledTools --exportsPath --healthCheckHost --httpHeaders --httpHost --httpResponseType --logPath --loggers --mcpClientLogLevel --monitoringServerFeatures --monitoringServerHost --previewFeatures --telemetry --transport --voyageApiKeycode --add-mcp '{"name":"mongodb-mcp-server","type":"stdio","command":"npx","args":["-y","mongodb-mcp-server@3.4.0","--apiClientId","--apiClientSecret","--assistantBaseUrl","--confirmationRequiredTools","--connectionScope","--connectionString","--disabledTools","--exportsPath","--healthCheckHost","--httpHeaders","--httpHost","--httpResponseType","--logPath","--loggers","--mcpClientLogLevel","--monitoringServerFeatures","--monitoringServerHost","--previewFeatures","--telemetry","--transport","--voyageApiKey"],"env":{"MDB_MCP_API_CLIENT_ID":"<your MDB_MCP_API_CLIENT_ID>","MDB_MCP_API_CLIENT_SECRET":"<your MDB_MCP_API_CLIENT_SECRET>","MDB_MCP_CONNECTION_STRING":"<your MDB_MCP_CONNECTION_STRING>","MDB_MCP_CONNECTION_STRINGS":"<your MDB_MCP_CONNECTION_STRINGS>","MDB_MCP_VOYAGE_API_KEY":"<your MDB_MCP_VOYAGE_API_KEY>"}}'Syntax from each client's docs (Claude Code: claude mcp add; Codex: codex mcp add; VS Code: code --add-mcp). Placeholders in angle brackets are values you fill in.
- MDB_MCP_API_CLIENT_IDsecretAtlas API client ID for authentication. Required for running Atlas tools.
- MDB_MCP_API_CLIENT_SECRETsecretAtlas API client secret for authentication. Required for running Atlas tools.
- MDB_MCP_CONNECTION_STRINGsecretMongoDB connection string for direct database connections, exposed under the connectionId "preconfigured". Optional, if not set, you'll need to call the connect tool before interacting with MongoDB data. Deprecated: prefer the "preconfigured" entry of connectionStrings.
- MDB_MCP_CONNECTION_STRINGSsecretMongoDB connection strings keyed by name, as a JSON object (e.g. {"preconfigured": "mongodb://...", "analytics": "mongodb://..."}). Each name becomes a connectionId that the MongoDB tools can use directly, so one server can reach several deployments. Connections are opened on first use. Environment variable or config file only.
- MDB_MCP_VOYAGE_API_KEYsecretAPI key for Voyage AI embeddings service (required for creating Atlas Local deployments with auto-embed vector search capabilities).
A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.
Is it safe? Is it maintained?
Serverdex check: Nov 27, 2026Looks healthy: MongoDB MCP Server is maintained, open source.
- Maintained
- Active
- Last commit 5 days ago (Nov 24, 2026), 27 open issues.
- Official registry
- Active
- Published as io.github.mongodb-js/mongodb-mcp-server in the official MCP registry, version 3.4.0.
- Source
- Open source, Apache-2.0
- Public repository under the Apache-2.0 licence, 1,164 stars, 298 forks.
- Runs
- On your machine
- A local npm/Docker package started by your client; it can reach whatever your user account can.
- Credentials
- 10 required
- Declared environment variables: MDB_MCP_API_CLIENT_ID, MDB_MCP_API_CLIENT_SECRET, MDB_MCP_CONNECTION_STRING, MDB_MCP_CONNECTION_STRINGS…. They stay on your machine; the config on this page shows where each goes.
- Owner
- Unclaimed
- Nobody has claimed this page yet; the data above comes from the registry, GitHub and the live check.
Facts only: last commit and licence from GitHub, the entry's status from the official registry, credentials from the live check. Not a code audit — run the security scan on the endpoint yourself.
Report Card
How the grade works →Grade A · Production-ready
Maintenance & production-readiness — 100/100 from the six repository signals below. A comparable rollup, not a code audit.
- Recent commits+30/30
Last commit 5 days ago.
- Open licence+15/15
Apache-2.0 on GitHub.
- Documentation+15/15
The repository ships a README.
- Adoption+20/20
1,164 GitHub stars.
- Registry status+12/12
Active in the official MCP registry.
- Product surface+8/8
Has a homepage or a published package/endpoint.
Own this server? Add the grade badge — it links back here
<a href="https://serverdex.io/server/io-github-mongodb-js-mongodb-mcp-server?utm_source=report-badge"><img src="https://serverdex.io/server/io-github-mongodb-js-mongodb-mcp-server/report-badge.svg" alt="MongoDB MCP Server — Serverdex Report Card A" height="22"></a>Compare every server's grade on best-maintained MCP servers.
On GitHub
read Nov 24, 2026TypeScriptmcpmcp-servermongodbmongodb-atlasmongodb-database
From the README
MongoDB MCP Server A Model Context Protocol server for interacting with MongoDB Databases and MongoDB Atlas. Quick Start Using the official MongoDB plugins for AI agents MongoDB MCP Server comes bundled with the official MongoDB plugins for AI agents. The following plugins are available: mongodb-atlas — connects to the MongoDB-hosted Atlas MCP server over OAuth. This does not require you to run anything locally, and is the recommended way to connect to MongoDB Atlas from your AI agent: • Cursor: marketplace • VSCode: Open the Extensions view (⇧⌘X / Ctrl+Shift+X), search for @agentPlugins, and install mongodb-atlas. • Claude: marketplace • Codex: Open /plugins and install mongodb-atlas. • GitHub Copilot CLI: Run copilot plugin install mongodb-atlas. • Grok: Open /marketplace in Grok Build and install mongodb-atlas. mongodb — runs the MongoDB MCP server locally and connects to any self-managed deployment: • Cursor: marketplace • Claude: marketplace • Gemini: marketplace • Codex: Run codex plugin marketplace add mongodb/agent-skills, then open /plugins and install mongodb. • GitHub Copilot CLI: Run copilot plugin install mongodb. • Grok: Open /marketplace in Grok Build and install mongodb. Using the setup script You can manually set up the local MCP server by running the following command: This will guide you through an interactive setup process, including configuring your MongoDB connection string or Atlas API credentials.…
Read the full README on GitHub →Alternatives to MongoDB MCP Server
All MongoDB MCP Server alternatives →Best Databases servers →Compare side by side →The most-starred Databases servers in the index, with their live-check result.
| Server | Stars | Last push | Live check |
|---|---|---|---|
| Dbx | 31,377 | Nov 2026 | Local / not checked |
| MCP Toolbox for Databases | 16,945 | Nov 2026 | Local / not checked |
| MCP Toolbox for Databases | 16,945 | Nov 2026 | Local / not checked |
| Finance Database | 9,648 | Nov 2026 | Working |
| DBHub | 3,973 | Nov 2026 | Local / not checked |
MongoDB MCP Server: questions people ask
- Is MongoDB MCP Server a remote or a local MCP server?
- According to its entry in the official MCP registry, MongoDB MCP Server ships as a local package (npm, Docker) that your client starts on your machine.
- Does MongoDB MCP Server need an API key?
- Its registry entry declares 10 required environment variables: MDB_MCP_API_CLIENT_ID, MDB_MCP_API_CLIENT_SECRET, MDB_MCP_CONNECTION_STRING, MDB_MCP_CONNECTION_STRINGS…. The config on this page shows where each goes.
- Is MongoDB MCP Server safe to use?
- Looks healthy: MongoDB MCP Server is maintained, open source. In detail — maintained: Active; official registry: Active; source: Open source, Apache-2.0; runs: On your machine; credentials: 10 required. Serverdex check of Nov 27, 2026. This is a reading of the repository, the registry entry and the live check, not a code audit; run the Serverdex security scan on the endpoint before trusting it with real data.
- Is MongoDB MCP Server still maintained?
- Active: the repository's last commit 5 days ago. Last push Nov 24, 2026, 1,164 GitHub stars, Apache-2.0 licence. Read from GitHub on Nov 24, 2026.
- How do I add MongoDB MCP Server to Claude, Cursor or VS Code?
- Copy the config in "Connect this server" into your client's MCP config file (claude_desktop_config.json, ~/.cursor/mcp.json or .vscode/mcp.json), or use the one-click Add to Cursor / Add to VS Code buttons and the one-line commands for Claude Code and Codex; then restart the client.
More Databases servers
Browse all Databases →MotherDuck
Well-maintained
Hosted MotherDuck MCP server: explore data, run DuckDB SQL, and build Dives and Flights.
DataPilot
Production-ready
Read-only SQL exploration, schema discovery and data profiling for SQLite and PostgreSQL
oraclemcp
Production-ready
Engine-free, governed Oracle Database MCP server with a fail-closed SQL guard (unofficial).
MySQL MCP Server
Some gaps
Python MCP server for MySQL database inspection and querying
PostgreSQL MCP Server
Some gaps
Python MCP server for PostgreSQL database inspection and querying
r3
Production-ready
Local Redis memory MCP for AI apps with hybrid caching and optional Mem0 cloud backup.
Add the badge to your site
Show visitors that MongoDB MCP Server is listed here — it’s also the link we check for a free listing.
HTML — for your website
<a href="https://serverdex.io/server/io-github-mongodb-js-mongodb-mcp-server?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="MongoDB MCP Server — listed on Serverdex" width="123" height="40" loading="lazy"></a>Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.
Markdown — for your README
[](https://serverdex.io/server/io-github-mongodb-js-mongodb-mcp-server?utm_source=badge)Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.
Install buttons — for your README
[](https://serverdex.io/install/cursor/io-github-mongodb-js-mongodb-mcp-server) [](https://serverdex.io/install/vscode/io-github-mongodb-js-mongodb-mcp-server) [](https://serverdex.io/install/claude-code/io-github-mongodb-js-mongodb-mcp-server)One click opens Cursor or VS Code with this server's config prefilled; the Claude Code button lands on the one-line command. The links point at Serverdex, so when your config changes the buttons keep working.
Install buttons — HTML for your docs
<a href="https://serverdex.io/install/cursor/io-github-mongodb-js-mongodb-mcp-server"><img src="https://serverdex.io/brand/install-cursor.svg" alt="Add to Cursor — via Serverdex" width="140" height="28"></a>
<a href="https://serverdex.io/install/vscode/io-github-mongodb-js-mongodb-mcp-server"><img src="https://serverdex.io/brand/install-vscode.svg" alt="Add to VS Code — via Serverdex" width="147" height="28"></a>
<a href="https://serverdex.io/install/claude-code/io-github-mongodb-js-mongodb-mcp-server"><img src="https://serverdex.io/brand/install-claude-code.svg" alt="Open in Claude Code — via Serverdex" width="180" height="28"></a>Same buttons as plain links for a docs page or website.
Prefer a live badge with the score, stars and live check? Score badge (links to a page that explains the number and back to this listing).