You can connect to your MongoDB database to explore data, combine them with other data sources and build apps on top of them as a data foundation.

Connecting to your MongoDB Database

To connect your MongoDB database, follow the steps below:

  1. Go to Data Management and click on "New source" to create a new data source.

  2. Select MongoDB from the list of available data sources.

  3. Name your data source connection and provide the connection details:



The host url of the MongoDB instance that stores your database.

(optional) Use DNS seed list

You can specify if you want to use DNS entries to provide a seed list for the initial discovery of the replica set configuration. For more info.

(optional) Use Replica set

You can specify if you want to connect to a MongoDB server that stores a replice of your data.

  • Replica set: The host url of your replica server.

Database name

Name of the database that holds the collections that you want to access.

Username & Password

These are the credentials of the user account that has the required access permissions for (parts of) the database.

Connect using SSL

You can specify if you want to connect to the server using SSL. This is a default setting to ensure secure connection.

(optional) Use SSH tunnel

Specifies if the connection should run via SSH tunnelling. If you are familiar with SSH tunnelling, you will need to provide the following additional details. Once this option is toggled, we provide our public key for download.

  • Bastian host

  • Bastian port

  • SSH user

  1. Click on "Test connection" to ensure that your connection works reliably and save your data source connection with "Connect".

Note: You can configure the data source for two different environments, Staging and Production. You can find more information about it here.

Last updated