What it does
The official MongoDB MCP server connects an AI client to a self-managed MongoDB (connection string) and/or MongoDB Atlas (Atlas Admin API keys), exposing CRUD and aggregation, schema and index introspection, and Atlas cluster and project administration. Operations are deterministic; the LLM composes the queries (--readOnly disables mutating tools). Runs locally over stdio.
Example prompts
- Show the schema of my orders collection and find orders over $100.
- Run an aggregation to count users by signup month.
Before you connect
The credentials this agent will ask you for — the full setup is on the Setup tab.
Needs 3 optional credentials to connect. See setup
