MongoDB Connection

The following parameters are required to connect to a MongoDB server:

Prefix: Select either ‘mongodb’ or ‘mongodb+srv’. Use ‘mongodb+srv’ if you are using Atlas or have set up a SRV DNS record.

Server: The server parameter supports the following formats:

  • _hostname with optional port, for example
  • _multiple comma seperated hostnames with optional ports, for example,,



Database Name: The database name you want to connect to.

Connection Properties: Additional properties that may be required. Usually these can be identified in a connection string as anything appearing after the ‘?’. Some examples are:

  • _Atlas: retryWrites=true&w=majority
  • _Cosmos DB: ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@your-app-name@

Please see here for further information including information on creating SRV DNS entries.

Supported Versions

Currently, the following versions of MongoDB are supported: 5.2 5.1 5.0 4.4 4.2 4.0 3.6

Tags: connector
Edit me