MongoDB MCP
by MongoDB
Official listing: built and published by MongoDB. More from MongoDB
Official MongoDB MCP server. AI agents query, analyze, and manage MongoDB databases with schema inspection, aggregation pipelines, and Atlas Vector Search support.
Use it now
Keep it with up to 9 other tools you're setting up, then share them all as one link.
Try this first
Ask your assistant, with MongoDB MCP connected:
- Database Query
Use MongoDB MCP to execute MongoDB find queries and aggregation pipelines against any collection: ‹what you need›
- Schema Inspection
Use MongoDB MCP to inspect collection schemas: ‹what you need›
- Atlas Vector Search
Use MongoDB MCP to run semantic similarity searches: ‹what you need›
Connect it over MCP
{
"mcpServers": {
"mongodb-mcp": {
"url": "https://mcp.mongodb.com"
}
}
}claude mcp add --transport http mongodb-mcp https://mcp.mongodb.com
npx -y mongodb-mcp-server@latest --readOnly
In Grok, ChatGPT and other assistants, add a custom connector with the address https://mcp.mongodb.com (how, step by step).
It may ask you to sign in to MongoDB or for a key when you add it; the setup guide says which.
Setup guide: mongodb.com/docs/mcp-server/get-started
Compare
Press Compare to add it to the tray at the bottom of the window, then pick up to 2 others anywhere on the site.
- Access
- MCP
- Auth
- API Key
- Skills
- 3
Skills
Database Query
Execute MongoDB find queries and aggregation pipelines against any collection via MCP tools
Schema Inspection
Inspect collection schemas and index configurations to understand data structure before querying
Atlas Vector Search
Run semantic similarity searches using MongoDB Atlas Vector Search for RAG pipeline integration