Index / Data & Search / No. 034
DAT · Data & Search · Official server
MongoDB
MongoDB's official MCP server for databases and Atlas clusters.
- Transport
- Local (stdio)
- Status
- Official · MongoDB
- Auth method
- Connection string or Atlas service accountMDB_MCP_CONNECTION_STRING
- Scopes / permissions
- Not documented
- Last verified
- Oct 15, 2026
- Tools listed
- 04
§1What it does
The MongoDB MCP server connects agents to MongoDB databases and MongoDB Atlas, supporting queries, aggregations, schema inspection and Atlas management. It supports a read-only mode.
§2Setup
{
"mcpServers": {
"MongoDB": {
"command": "npx",
"args": ["-y", "mongodb-mcp-server@latest", "--readOnly"],
"env": { "MDB_MCP_CONNECTION_STRING": "mongodb://localhost:27017/myDatabase" }
}
}
}Snippets adapted from the official documentation. Check the official page for current options and auth requirements.
§3Prompts to try
- “What does a typical document in the orders collection look like?”
- “Count users who signed up this week.”