Lets an AI assistant query many databases through prebuilt or custom SQL tools.
MongoDB MCP Server
MCP server by MongoDB
MongoDB MCP Server at a glance
MongoDB MCP Server is an official MCP server from MongoDB. It lets an AI assistant query MongoDB databases and manage Atlas clusters, users and access lists.
- Connects to
- Data and databases
- Hosting
- Local · stdio and Streamable HTTP
- Sign-in
- Connection string or Atlas service account
- Price
- Free
- Works with
- Claude, Cursor, VS Code, Codex, Copilot CLI, Gemini
- Best for
- Teams using MongoDB or MongoDB Atlas
- Checked
- October 3, 2026 on official sources
How to install MongoDB MCP Server
Add the command below as a new MCP server in your AI app’s settings or MCP config file. Sign-in: Connection string or Atlas service account.
npx -y mongodb-mcp-server@latest setupWhat MongoDB MCP Server can do
It connects an AI assistant to a MongoDB deployment so it can find, aggregate, insert and update documents. With Atlas credentials it can also manage clusters, database users and network access lists.
Best for: teams using MongoDB or MongoDB Atlas
Pros
- Covers both data and Atlas admin
- Guided setup command
- Works with many AI clients
Cons
- Atlas tools need separate API credentials
- Main server runs locally on your machine
MongoDB MCP Server FAQ
Is MongoDB MCP Server free?
Yes. It is free and open source under Apache-2.0. Atlas usage is billed by MongoDB as usual.
How do I connect MongoDB MCP Server?
Run npx -y mongodb-mcp-server@latest setup and give it a connection string or Atlas service account credentials.
What can MongoDB MCP Server do?
It can query and update documents, run aggregations and manage Atlas clusters, users and access lists.