Practical Notes
- Quant: start with
--readOnlyand a read-only DB user; you can still inspect schemas, run finds, and profile slow queries safely. - Quant: keep exported query results scoped—treat every agent query as data egress to the LLM provider.
Rollout pattern
- Use read-only mode for the first week; log the exact prompts and tool calls agents make during real incidents.
- Add Atlas credentials only after you decide which admin actions are safe to automate (users, clusters, indexes).
- If you ever enable writes, require a separate server instance and stronger approval/audit controls.
Watchouts
Read-only mode reduces risk, but query results still leave your network when an agent summarizes them. Treat tool output as data egress and sanitize sensitive fields.
FAQ
Q: Can I use it without Atlas? A: Yes. You can connect via a plain MongoDB connection string and use database query tools only.
Q: What does --readOnly change?
A: It limits the server to read/connect/metadata operations and blocks write-capable tools.
Q: How do I debug connection issues? A: Start with a local MongoDB URI, then move to Atlas with service-account credentials once the basics work.