Hubert-Dudek
Databricks MVP

Please run magic command %sh in the notebook and check if you have routing there (as it can be a network issue)

%sh
telenet  <mongodb_server_name> 28017


My blog: https://databrickster.medium.com/