mongodb-mcp-server
If you are the rightful owner of mongodb-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol server that provides read-only access to MongoDB databases, enabling LLMs to inspect collection schemas and execute aggregation pipelines.
The MongoDB MCP Server is a community-maintained server that allows for read-only interactions with MongoDB databases. It is designed to enable Language Learning Models (LLMs) to inspect collection schemas and execute aggregation pipelines. The server provides tools for executing aggregation queries and obtaining execution plans, making it a valuable resource for developers and data scientists who need to analyze and understand their MongoDB data structures. The server is configured to ensure safe operations by enforcing limits on document retrieval and operation timeouts, and it only allows read-only operations to maintain data integrity. The server also provides schema information for each collection, derived from sampling collection documents, which includes field names and data types.
Features
- Read-only access to MongoDB databases
- Execution of aggregation pipelines
- Retrieval of execution plans for queries
- Schema information for collections
- Safety features like document limits and operation timeouts
Tools
aggregate
Execute MongoDB aggregation pipelines against the connected database with options for disk usage and execution time.
explain
Get execution plans for aggregation pipelines with different verbosity levels.