MongoDB
Open Integrations from the workspace sidebar and select MongoDB. Choose I have connection credentials or I have a connection string, then enter your database connection details:

After creating the integration, connect it to your project when prompted.
Secure connections
To connect through SSH, use an SSH tunnel integration. SSH tunnel integrations are available on the Enterprise plan.
Troubleshooting SSH connections for MongoDB
If you are encountering the following error
Could not reach any servers in X
try adding directConnection=true to the connection URL.