DocsIntegrationsMongoDB
mongodb
Data Source

MongoDB

Query MongoDB collections and pass documents to Agent nodes

MongoDB is a leading NoSQL document database. CipherSense Agents connects via a MongoDB connection URI, letting your workflows query collections and retrieve JSON documents as context for Agent nodes. Compatible with MongoDB Atlas, self-hosted MongoDB, and AWS DocumentDB.

Official documentation

Setup

1

Get your connection URI

From MongoDB Atlas: go to your cluster > Connect > Drivers > copy the connection string. Replace <username> and <password> with your credentials.

# MongoDB Atlas connection string format
mongodb+srv://<username>:<password>@cluster0.abcde.mongodb.net/<database>?retryWrites=true&w=majority
2

Create a least-privilege user

In Atlas: Database Access > Add new database user. Assign the readAnyDatabase role or a custom role limited to specific collections.

3

Whitelist IP addresses

In Atlas: Network Access > Add IP Address. Add your CipherSense Agents server's IP address.

4

Add the integration in CipherSense Agents

Go to Project > Integrations > Add Integration > MongoDB. Paste your connection URI. Click Save & Test.

Connection Fields

Fields required when adding this integration in your Project › Integrations.

FieldRequiredDescription
Connection String
Required
Full MongoDB connection string including credentials. From Atlas: cluster > Connect > Drivers.
Database Name
Required
Name of the MongoDB database to connect to.

Common Use Cases

Fetch user profiles for personalisationQuery event logs for anomaly detectionRead product catalogs for recommendation agentsLog AI-generated outputs to document collections

Ready to connect MongoDB?

Add this integration from your project dashboard and wire it into a workflow.