Databases
Verified
Trust: 54/100 (Fair)MongoDB MCP Guide
Query and manage MongoDB collections. Support for aggregation pipelines, CRUD operations, and index management.
567 stars 21,000 downloadsby MongoDB
Quick Start
Install
npx @mcp/mongodbClaude Desktop Configuration
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"mongodb-mcp": {
"command": "npx",
"args": [
"@mcp/mongodb"
]
}
}
}What MongoDB MCP Can Do
query_documents
Query MongoDB documents
aggregate
Run aggregation pipelines
manage_indexes
Create and manage indexes
Permissions Required
MongoDB MCP requires the following permissions. Review the risk levels before granting access.
| Permission | Description | Risk |
|---|---|---|
mongodb.read | Read MongoDB data | low |
mongodb.write | Write MongoDB data | high |
Platform Compatibility
| Platform | Status |
|---|---|
| Claude Desktop | Supported |
| Cursor | Supported |
| LangChain | Supported |