mcp server
MongoDB MCP Server
MongoDB's MCP server for querying and indexing collections, with optional MongoDB Atlas admin tools.
Set up
Runs on your computer. Pick your agent and operating system.
Before you start
- Node.js 20 or newer
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server"
]
}
}
}same format Cursor, GitHub Copilot CLI, Junie, JetBrains AI Assistant, Augment (Auggie CLI), Factory Droid, Kiro, Devin CLI +12
Values in angle brackets are placeholders. Restart Claude Desktop after editing its config.Claude Desktop docs
Tools provided
As listed by the project. Your agent asks before calling them, depending on its settings.
findQuery documentsaggregateRun an aggregation pipelineinsert-manyInsert documentsupdate-manyUpdate documentscollection-indexesList indexesatlas-create-clusterCreate an Atlas cluster (Atlas tools)
README
synced Oct 13, 2026MongoDB MCP Server
MongoDB's MCP server for querying and indexing collections, with optional MongoDB Atlas admin tools.
Install
npx -y mongodb-mcp-server
Configuration
| Variable | Required | Description |
|---|---|---|
MDB_MCP_CONNECTION_STRING | No | MongoDB connection string |
MDB_MCP_API_CLIENT_ID | No | Atlas API service account client ID (for Atlas tools) |
MDB_MCP_API_CLIENT_SECRET | No | Atlas API service account client secret |
MDB_MCP_READ_ONLY | No | Restrict the server to read, connect and metadata operations |
MDB_MCP_TRANSPORT | No | stdio (default) or http |
Tools
find— Query documentsaggregate— Run an aggregation pipelineinsert-many— Insert documentsupdate-many— Update documentscollection-indexes— List indexesatlas-create-cluster— Create an Atlas cluster (Atlas tools)
About this listing
Details were gathered from the project's public pages on 2026-10-13 and have not been reviewed by a person yet. Read the project's own documentation before giving it access to anything sensitive.
Sources: