Connect MongoDB
Connect a MongoDB database with a connection string so an AI teammate can query and update the data in it directly.
What is MongoDB access?
MongoDB is different from most tools in this section: instead of an OAuth sign-in, a teammate connects to one specific database using a connection string you provide. Whatever that connection string can do is what the teammate can do, since access follows the permissions of the database user embedded in it. In practice, with a standard read-write connection string, a teammate can:
- Query documents and collections in that database
- Insert, update, and delete documents in that database
How to Connect MongoDB
Open the teammate's Tools section and click Connect on MongoDB. Instead of signing in through a browser, paste a MongoDB connection string with credentials embedded, for example mongodb+srv://user:pass@cluster.example.mongodb.net/. See Connect tools for the full walkthrough of opening Tools and managing a connection afterward.
A connection string embeds database credentials. Treat it like any other secret — consider storing it in the Vault instead of pasting it directly if your workflow supports that.