Integrates with MongoDB to enable read-only querying, aggregation, and schema inspection for data exploration and analys...
Created byApr 22, 2025
MongoDB MCP Server
A Model Context Protocol server that provides read-only access to MongoDB databases. This server enables LLMs to inspect collection schemas and execute aggregation pipelines.
Components
Tools
aggregate
explain
Resources
The server provides schema information for each collection in the database:
To use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claude_desktop_config.json:
Replace mydb with your database name and adjust the connection string as needed.
Example Usage
Basic Aggregation
Query Explanation
Safety Features
Automatic limit of 1000 documents if no limit is specified in the pipeline
Default timeout of 30 seconds for all operations
Read-only operations only
Safe schema inference from collection samples
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
MongoDB MCP Server
A Model Context Protocol server that provides read-only access to MongoDB databases. This server enables LLMs to inspect collection schemas and execute aggregation pipelines.
Components
Tools
aggregate
explain
Resources
The server provides schema information for each collection in the database:
To use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claude_desktop_config.json:
Replace mydb with your database name and adjust the connection string as needed.
Example Usage
Basic Aggregation
Query Explanation
Safety Features
Automatic limit of 1000 documents if no limit is specified in the pipeline
Default timeout of 30 seconds for all operations
Read-only operations only
Safe schema inference from collection samples
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.