mongodb-mcp-server
A Model Context Protocol server to connect to MongoDB databases and MongoDB Atla
MongoDB's officially maintained MCP server covers both database operations and Atlas cloud management: querying documents, analysing collection structure, inspecting indexes, and administering Atlas clusters and users.
Schema exploration is especially valuable here — document databases have no fixed schema, so "what fields do documents in this collection actually have?" normally means sampling by hand. The AI just works it out.
What it does for you
Connects your AI to MongoDB — query collections, run aggregations, inspect document shapes, in plain language instead of query syntax.
Capabilities
- Query collections with filters
- Run aggregations
- Inspect collection structure and indexes
Once installed, try asking your AI
Say this directly in Claude / Cursor or any client with this server connected
- ›“Count orders per country in the orders collection”
- ›“Find active users who haven't logged in for the last 7 days”
Why use it
Good for: developers on MongoDB or Atlas, particularly when inheriting someone else's database and needing to understand its shape first.
Before connecting: read-only mode is supported — enable it for production. Atlas management touches cluster operations, so scope those permissions even more tightly.
Works with these clients
- Claude Desktopnpx
- Claude Codenpx
- Cursornpx
- VS Codenpx
- Windsurfnpx
Derived from the registry manifest (package type and transport) — we have not installed it ourselves. Check the official README before relying on it.
Install / Connect
claude mcp add mongodb-mcp-server -- npx -y mongodb-mcp-serverFollow the official README; env and args vary per server.
🛠️ Maintenance weight 30% · 100 pts
📊 Adoption weight 25% · 70 pts
✅ Usability weight 20% · 55 pts
❤️ Health & community weight 25% · 78 pts
Sources: GitHub API · npm registry · updated 2026-08-19
90-day trend
⭐ stars +0%
📦 weekly downloads +0%
Frequently Asked Questions
Does it support self-hosted MongoDB as well as Atlas?
Both. Self-hosted uses a connection string; Atlas management needs an Atlas API key.
Can it be locked to read-only?
Yes, the server offers a read-only configuration — recommended for production.
Similar / alternative servers
How to choose among these
Database servers split into relational vs. vector; vector stores are all for RAG, differing by scale and hosting.
- Relational DB (business data, SQL)→Pick Supabase / Neon / MongoDB / ClickHouse — match your DB
- RAG with semantic memory→Pick a vector store: Pinecone (scaled) / Qdrant / Chroma (light) / Weaviate
io.github.sijunkim/db-gateway
145+ tools across 8 databases: MySQL, PostgreSQL, Redshift, MongoDB, Redis, Kafk
io.github.awkoy/notion-mcp-server
Token-auth Notion MCP: pages, databases, blocks, comments, files. Runs headless
io.github.mongodb-js/mongodb-mcp-server
MongoDB Model Context Protocol Server
io.github.googleapis/mcp-toolbox
MCP Toolbox for Databases
One email a week, 5 minutes to see what happened in the MCP ecosystem
New servers, breakout trends, abandonment alerts — tracked automatically, curated by hand, sent to your inbox.
One email a week · unsubscribe anytime · no data selling