MongoDB
Summary
MongoDB's official MCP server — query databases, explore schemas, and manage Atlas clusters from an AI client.
Features
- Query collections and inspect schemas in natural language
- Manage Atlas clusters, users, and network access
- Read-only mode and per-tool allow lists
Installation
Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.
Description
The official MongoDB MCP server connects an AI assistant to both MongoDB deployments and Atlas control-plane operations.
What it exposes
- Data operations. Find, aggregate, count, insert, update, and delete documents, with the assistant able to inspect collection schemas first rather than guessing field names.
- Schema exploration. List databases and collections, sample documents, and describe indexes — which is what makes the assistant's queries correct instead of plausible.
- Atlas management. Create and inspect clusters, manage database users, and configure network access, for teams that operate on Atlas.
- Index advice based on the queries you are actually running.
Safety
The server supports a read-only mode and per-tool allow lists, which is worth configuring before pointing it at anything that matters. Connection details are supplied through environment variables rather than the model's context.
Getting started
Runs through npx with a connection string in MDB_MCP_CONNECTION_STRING, or with Atlas API credentials for control-plane access. Works with Claude Desktop, Claude Code, Cursor, VS Code, and any MCP-compatible client.
Related MCP Servers
DBHub
by Bytebase
A universal database MCP server — one integration for PostgreSQL, MySQL, SQL Server, SQLite, and MariaDB.
Upstash Redis
by Upstash
Run Redis commands against Upstash's serverless Redis over HTTP, with documentation search built in.
dbt
by dbt Labs
dbt Labs' official MCP server — explore project metadata, run dbt commands, and query the Semantic Layer.
Milvus
by Zilliz
Search and manage Milvus vector collections from an AI client — vector, full-text, and hybrid queries.