Por favor, tente algo assim: client = MongoClient("mongodb://user_name:[email protected]_IP/prod-db") db = client['prod-db']