Connect to Your Cluster
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.
Prerequisites
- 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.
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.
Download and Install Utility
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:
Connect to Your Atlas 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:
Next Steps
Now that you are connected to your cluster, proceed to Insert and View Data in Your Cluster.