Major-vendorstdio● online
MongoDB MCP
by MongoDB · Database
Query and manage MongoDB Atlas collections, indexes, and aggregation pipelines.
Works with:Claude CodeCursorWindsurfOpenCode
readwriteaggregationindexessearch
Install
Run this command in your terminal:
claude mcp add --transport stdio mcp-mongodb -- npx -y mongodb-mcp-server
Before running, set: MONGODB_CONNECTION_STRING
Authentication
API key
Required environment variables:
- MONGODB_CONNECTION_STRING
See the setup guide for step-by-step instructions on obtaining these credentials.
Official MongoDB MCP. Works with Atlas and self-hosted MongoDB.

