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 who work with atlas, collection and many and want it reachable from Claude, Cursor, VS Code, or another MCP client. The project is written in TypeScript.
VERIFIED ACTIVE
LAST COMMIT 2026-09-17 · ★ 1,131 · #2 OF 168 MAINTAINED DATABASE · VERIFIED 2026-09-18
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
v3.0.2 · 2026-09-17
v3.0.0 · 2026-09-17
v2.1.1 · 2026-09-03
What's New · You can now create Atlas clusters with multi-region support and Customer-Managed Key (CMK) encryption, pause or resume clusters, load sample data, and look up available cloud regions using the new…
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.
-
@exploraX_ · · DB MCP shortlists for coding agents
“50 MCP Servers That Give Claude, Codex & Gemini superpowers - catalogs include MongoDB and other database MCP servers with install notes”
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
- repository
- github.com/mongodb-js/mongodb-mcp-server
- category
- database - ranked #2 of 168 actively-maintained database servers as of 2026-09-18.
- release cadence
- 5 releases in the last 90 days (latest 2026-09-17)
- 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-09-18, its last commit was 2026-09-17 and it shipped 5 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
Alternatives to MongoDB MCP Server
Maintained database servers if MongoDB MCP Server isn't the fit.
- Dbx Query databases from AI agents using connections configured in DBX. ★ 20,017 · 2026-09-18
- Toolbox for Databases MCP Toolbox for Databases enables your agent to connect to your database. ★ 16,449 · 2026-09-18
- Butterbase Ai MCP Server Butterbase MCP server - manage your backend: schemas, auth, functions, storage, RAG, deploys. ★ 3,562 · 2026-09-18
- Dbhub Minimal, token-efficient Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB ★ 3,534 · 2026-09-18
- LINQ to DB Inspect database schemas and execute SQL queries across multiple database providers with LINQ to DB. ★ 3,328 · 2026-09-17
- Supabase MCP server for interacting with the Supabase platform ★ 2,910 · 2026-09-17
Pairs well with
Servers that cover what MongoDB MCP Server doesn't - only shown when the pairing reason fits the companion.
- Server Chart → data & analytics companion data & analytics · ★ 4,367
- ClaudeR - RStudio MCP Server → data & analytics companion data & analytics · ★ 342
- Server Filesystem → filesystem companion filesystem · ★ 39,038
- Pdf MCP → filesystem companion filesystem · ★ 135
- Telnyx → API integration companion API integration · ★ 197
- Microsoft 365 MCP Server → API integration companion API integration · ★ 980
head to head · MongoDB MCP Server vs Supabase · MongoDB MCP Server vs Dbx · Dbhub vs MongoDB MCP Server
More database MCP servers · Server Motherduck · Tabedata MCP · Oraclemcp · Safedb MCP · Apple Health
More TypeScript MCP servers · Skedra Whiteboard · REA · Boe MCP · Komodo MCP Server · Metricui · see all