Docs Menu

Connect to Your Cluster

On this page

  • Prerequisites
  • Download and Install Utility
  • Connect to Your Atlas Cluster
  • Next Steps

Estimated completion time: 5 minutes

You can connect to your cluster in a variety of ways. This tutorial describes how to connect to your cluster using the mongosh, the Node.js driver, the PyMongo driver, and Compass.

  • An Atlas account.
  • An organization and project added with an account's user who has permissions to create clusters in this account.
  • An active cluster created in this account.
  • An IP address added to your IP access list.
  • A Database user on your cluster.

See Parts 1 - 4 of this tutorial for help with the prerequisites.

Note

You must have a database user set up on your cluster to access your deployment. For security purposes, Atlas requires clients to authenticate as database users to access clusters.

The following steps show you how to download and install the mongosh, the Node.js driver, and the PyMongo driver.

Before you start, verify that you have met all prerequisites.

Select the appropriate tab based on how you would like to connect to your cluster:

In Atlas, you can connect to your cluster using the following connection methods:

  • Connect with the MongoDB Shell to interact with your cluster using the Javascript interface of mongosh.
  • Connect your application to your cluster using the Node.js driver, or the PyMongo driver.
  • Connect to your cluster using MongoDB Compass to explore, modify, and visualize your data with Compass.

Before you start, verify that you have met all prerequisites.

Select the appropriate tab based on your preferred connection method:

Now that you are connected to your cluster, proceed to Insert and View Data in Your Cluster.

Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.