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.
Tools provided
- find — Query documents in a collection.
- aggregate — Run an aggregation pipeline.
- collection-schema — Inspect a collection schema.
- create-index — Create an index.
- atlas-list-clusters — List Atlas clusters.
What you'll need to connect
This agent will ask you for the following. You enter them when you connect — they're encrypted and never shared with the creator.
- MongoDB connection string · optionalGet this from cloud.mongodb.com's account or API settings.Paste the value as a single line.Only sent to: cloud.mongodb.com
- Atlas API client ID · optionalGet this from cloud.mongodb.com's account or API settings.Paste the value as a single line.Only sent to: cloud.mongodb.com
- Atlas API client secret · optionalGet this from cloud.mongodb.com's account or API settings.Paste the value as a single line.Only sent to: cloud.mongodb.com
How you're protected
FindAgent runs these safety checks on every agent automatically. They're always on and can't be turned off.
- Prompt-injection scanning
Every request is checked for known prompt-injection and jailbreak attempts before the agent runs. This is always on.
- Secret-leak scanning
Every response is scanned for leaked API keys, tokens, and other secrets before it reaches you. This is always on.
