by @mongodb
The official MongoDB MCP server gives your AI direct access to your MongoDB databases. Run queries, perform aggregations, manage collections and indexes, and work with your data through natural conversation. Supports both local instances and MongoDB Atlas.
This server provides the following tools for AI assistants:
Search for documents matching your criteria.
Get a single document matching your query.
Run aggregation pipelines for advanced queries.
Count documents matching a filter.
See all databases on the server.
View all collections in a database.
Analyze the structure of a collection.
View indexes on a collection.
Add a new document to a collection.
Add multiple documents at once.
Modify a single document.
Modify multiple documents at once.
Remove a single document.
Remove multiple documents at once.
Create a new collection.
Add an index to improve query performance.