MongoDB MCP server (official)
MCP serverQuery MongoDB databases and manage Atlas clusters from an agent, read-only by default in the documented config.
MongoDB's server connects to any MongoDB deployment through a connection string and exposes tools to list databases and collections, inspect schemas and indexes, run find and aggregate queries, and (when writes are enabled) insert, update or drop data. With Atlas service-account credentials it can also list projects and clusters, manage access lists and database users. The README recommends the --readOnly flag; remove it only when you want writes. Useful for exploring unfamiliar data, writing aggregation pipelines and Atlas housekeeping.
Try asking:
- "Look at the 'orders' collection and summarise its schema and indexes."
- "Write an aggregation pipeline that totals revenue by month for 2026 and run it."
- "List my Atlas clusters and their tiers."
Sign-in: an API key or token (set it in the install snippet below).

Log in to join the discussion.