
MongoDB MCP Server
MongoDB's official MCP server — natural-language queries, schema inspection, and Atlas management.
About
mongodb-js/mongodb-mcp-server (1.1k stars, Apache-2.0) is MongoDB's official MCP server: query collections in natural language, inspect schemas and indexes, and manage Atlas clusters from your agent.
It's young but shipping fast — 78 releases in the last 12 months, pushed Oct 2026 — with docs at mongodb.com/docs/mcp-server. Database write access from an LLM deserves the usual caution: start read-only, scope the connection string's user, and keep backups current.
What it can do
- Natural-language querying over MongoDB collections
- Schema and index inspection tools for agents
- Atlas cluster management operations
- Apache-2.0, 78 releases in 12 months, official MongoDB maintenance
- Documented at mongodb.com/docs/mcp-server
Setup
- Run the interactive setup:
npx -y mongodb-mcp-server@latest setup— it walks you through the connection string or Atlas API credentials. - Prefer environment variables (
MDB_MCP_CONNECTION_STRING) over command-line args for secrets — the README warns CLI args leak into process lists. - Add the server to your MCP client config.
- Keep the default
--readOnlyflag until you explicitly need writes. - Docs: mongodb.com/docs/mcp-server.
Prerequisites
Node.js; a MongoDB Atlas cluster or self-hosted instance; a scoped DB user.
Use cases
Works with
Trust score — 8/10
Scored 7/10 (metrics tier). Official MongoDB project, Apache-2.0, genuinely fast release cadence (78/12mo) — but young at 1.1k stars with limited independent coverage. Standard database-tool caveat applies: an LLM with write access needs scoped credentials and read-only defaults.
★ 1,142 GitHub stars
How the trust score is built
Full methodology →- Adoption · stars/downloads, log-scaled vs peers
- 6.0/10
- Maintenance · recency, releases, issue load
- 9.1/10
- Openness · license + docs
- 10.0/10
- Manual review · sanity read + red-flag check
- 7.0/10
- · 1,142 GitHub stars (log-scaled vs catalog peers)
- · last push 0d ago; 78 releases/12mo; 26 open issues
- · manual review: official MongoDB (1.1k stars), 78 releases/12mo; young; LLM DB write access needs scoped credentials, read-only defaults
Sources
Every fact above was checked against these sources. Where a claim comes from the provider and couldn't be independently verified, the text says so.