MM
MongoDB MCP Server
Official MongoDB server for querying collections and managing Atlas clusters.
Last updated July 18, 2026
DatabaseLocal · stdioTypeScript1.1k
Overview
The official MongoDB MCP Server connects AI agents to MongoDB databases and Atlas clusters — run queries and aggregations, inspect collection schemas, and manage Atlas projects and clusters directly from a client.
Use cases
Ask an agent to summarize documents in a collection matching a filter.
Provision or inspect an Atlas cluster without leaving your AI client.
Run aggregation pipelines described in plain English.
Install
{
"mcpServers": {
"MongoDB": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server",
"--connectionString",
"mongodb://localhost:27017/mydb"
]
}
}
}FAQ
Yes — it supports both a direct connection string for any MongoDB deployment and an Atlas API mode for managing Atlas projects and clusters.