The best MCP servers for MongoDB — let AI agents query collections, inspect documents, and work with your NoSQL data through the Model Context Protocol.
Browse all MongoDB servers →No servers listed for this topic yet.
Unlike a fixed SQL schema, MongoDB collections can hold documents with varying shapes — so a server's "inspect schema" tool is really sampling documents to infer structure. If your collections are inconsistent, expect the agent to occasionally miss a field that only exists on some documents.
Use a MongoDB user scoped to specific databases via role-based access control (`db.grantRolesToUser`) rather than an atlasAdmin/root role, and prefer a read-only role until you've seen how the agent behaves with the collections in question.
This page ranks MongoDB MCP servers by real usage across the AllMCPs directory so you can start with a maintained, popular option.
Many MongoDB servers expose find and aggregate operations, so an agent can run pipelines and return results. Check each listing for the exact operations supported.
Connect with a scoped MongoDB user restricted to specific databases or collections, and prefer read-only roles where possible.