Skip to content

MongoDB Connection

Connect to MongoDB to query and manage documents in your databases.

Configuration

FieldDescriptionRequired
Connection StringMongoDB connection URI (e.g., mongodb+srv://user:pass@cluster.mongodb.net/mydb)Yes
DatabaseDefault database nameYes

Getting Your Connection String

MongoDB Atlas

  1. Log in to cloud.mongodb.com
  2. Go to your cluster and click Connect > Drivers
  3. Copy the connection string and replace <password> with your database user's password

Self-Hosted

Use the standard MongoDB connection URI format:

mongodb://username:password@host:27017/database

Usage

Once created, this connection becomes available in:

TIP

For MongoDB Atlas, make sure your IP address (or 0.0.0.0/0 for development) is in the Network Access allow list.