Active

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.

GitHub ↗npm ↗
78
TrustScore
✅ No clear abandonment signal detected; complete security and compatibility checks before production use

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-server

Follow the official README; env and args vary per server.

🛠️ Maintenance weight 30% · 100 pts

📝
Last commit1 days ago
📈
Commits in 90 days100
💬
Recent issues with replies100%
🗃️
Repo statusNormal

📊 Adoption weight 25% · 70 pts

GitHub stars1.1k (90d +0%)
📦
npm weekly downloads74.8k(+0%)
🚀
Releases per month6.8

✅ Usability weight 20% · 55 pts

📋
Official registryNot listed
▶️
Runnable entryResolvable (npx/remote)
🔍
AuditabilityOpen-source repo, auditable

❤️ Health & community weight 25% · 78 pts

🐛
open issues22
🔀
open PRs
⚖️
LicenseApache-2.0
👥
Contributors / forks30 / 281

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 memoryPick a vector store: Pinecone (scaled) / Qdrant / Chroma (light) / Weaviate

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