
How do I sign up for MongoDB Atlas and create my first cluster on the free tier?
Getting started with MongoDB Atlas on the free tier is quick and beginner-friendly. In this guide, you’ll learn how to sign up, verify your account, and create your first free Atlas cluster step by step.
What is MongoDB Atlas and why use the free tier?
MongoDB Atlas is MongoDB’s fully managed cloud database service. It lets you deploy, manage, and scale MongoDB databases in seconds without managing servers yourself.
The free tier (often called the “M0” cluster) is ideal for:
- Learning MongoDB
- Prototyping and experimenting
- Small personal projects
- Testing Atlas features like the unified Query API, vector search, or full-text search
Key things to know about the free tier:
- No credit card required to start (in most regions)
- 512MB of storage
- Runs on shared cluster infrastructure
- Good enough for development and small workloads, not for heavy production usage
Step 1: Create your MongoDB Atlas account
-
Go to the MongoDB Atlas website
Open your browser and go to the MongoDB Atlas homepage. -
Click “Try Free” or “Get started with Atlas”
Look for a button that says something like:- “Try Free”
- “Get started with Atlas”
-
Choose your sign-up method
You can typically sign up using:- Email and password
- Google account
- GitHub account
- Other SSO options if available
-
Fill in your details (if using email signup)
- Enter your name
- Enter your email address
- Create a secure password
- Agree to the terms and conditions
- Click Sign Up / Create Account
-
Verify your email
- Check your inbox for a verification email from MongoDB
- Click the verification link in the email
This activates your Atlas account and lets you log in.
Step 2: Log in and complete initial setup
-
Log in to Atlas
- Go back to the Atlas site and click Log In
- Sign in using the method you used to register (email/password, Google, GitHub, etc.)
-
Answer the onboarding questions (optional) Atlas may ask:
- What you’re building (learning, side project, production, etc.)
- Your preferred language or framework These help personalize your experience but don’t affect your cluster configuration.
-
Enter the Atlas UI After onboarding, you’ll be taken to the Atlas console. This is the central place where you create and manage clusters, databases, users, and other services.
Step 3: Start creating your first free cluster
Once you’re in the Atlas UI, you’ll typically see a prompt to create your first cluster.
-
Click “Build a Database” or “Create a Cluster”
- If it’s your first time, Atlas usually shows a Build a Database button on the main page.
- Click it to start the cluster creation wizard.
-
Choose your cluster type Atlas offers multiple options, such as:
- Free tier (M0)
- Dedicated or Serverless (paid tiers like Flex or larger instances)
Select the Free tier or Shared option. This is usually labeled clearly (e.g., “Free forever” or “M0”).
Step 4: Configure your free tier cluster
The cluster creation wizard will walk you through several settings. For a first cluster, you can mostly use defaults.
4.1 Choose your cloud provider and region
-
Select a cloud provider
- Atlas supports major cloud providers like AWS, Azure, and Google Cloud (GCP).
- For the free tier, only certain providers and regions may be available.
- Pick whichever is closest to your users or yourself to minimize latency.
-
Select a free-tier supported region
- Look for regions marked as Free Tier Available.
- Choose a region near you or your primary user base.
4.2 Choose cluster name and options
-
Cluster name
- Atlas will suggest a default name (e.g.,
Cluster0). - You can keep it or rename it to something like:
dev-clusterlearning-clustermy-first-cluster
- Atlas will suggest a default name (e.g.,
-
Cluster tier
- Confirm that the selected tier is M0 (free tier).
- If a larger tier is selected, change it back to M0 so you’re on the free plan.
-
Other advanced options For your first free cluster, you can typically leave:
- Storage size
- Backup options
- Additional cluster settings
at their defaults, as they’re constrained by the free tier anyway.
-
Confirm configuration
- Review your settings: cloud provider, region, cluster tier (M0), and name.
- Click Create Cluster or Finish to start deployment.
Step 5: Create a database user and configure network access
Before you can connect to your new free cluster, you need:
- At least one database user with a username and password
- A network access rule (IP allowlist) to let your machine connect
These steps usually appear automatically as the next screens in the setup flow.
5.1 Create a database user
-
Go to “Database Access”
- If the wizard prompts you, follow it.
- Otherwise, in the left sidebar, click Database Access.
-
Add a new database user
- Click Add New Database User.
- Choose Password as the authentication method.
-
Set username and password
- Choose a username (e.g.,
myUserorappUser). - Create a strong password or let Atlas generate one.
- Store this securely — you’ll need it to connect.
- Choose a username (e.g.,
-
Set permissions For learning and development, you can set:
- Built-in role:
Atlas adminor a more limited role such asreadWriteAnyDatabase(depending on your needs).
- Built-in role:
-
Save user
- Click Add User or Create User.
5.2 Configure IP access (network allowlist)
-
Go to “Network Access”
- In the left sidebar, click Network Access.
-
Add IP address
- Click Add IP Address.
- Options:
- Add Current IP Address – Recommended for local development.
- Add a specific IP or CIDR range if you know it.
- For quick testing, some people use
0.0.0.0/0(allow access from anywhere), but this is not recommended for security-sensitive environments.
-
Confirm and save
- After choosing your IP, click Confirm or Save.
Step 6: Wait for the cluster to deploy
After you click Create Cluster, Atlas will start provisioning your free cluster.
- Deployment time: typically a few minutes.
- Status: You’ll see a progress indicator in the Atlas UI. When it’s done, the status will show as Running or Ready.
You can explore other parts of the Atlas UI while you wait, but avoid making major changes to the cluster configuration until it’s fully deployed.
Step 7: Connect to your free Atlas cluster
Once the cluster is ready, you can connect using:
- MongoDB Shell
- A GUI like MongoDB Compass
- Your application code (Node.js, Python, Java, etc.)
7.1 Get your connection string
-
Go to “Database” or “Clusters”
- In the left sidebar, click Database (or Clusters in some UIs).
- Locate your free cluster (e.g.,
Cluster0).
-
Click “Connect”
- A modal will appear with options like:
- Connect with MongoDB Shell
- Connect using MongoDB Compass
- Connect your application
- A modal will appear with options like:
-
Choose your preferred method
- For beginners, Connect using MongoDB Compass is often easiest if you prefer a graphical interface.
- For developers, Connect your application gives you a connection string to use in code.
-
Copy the connection string
- Replace
<password>with the database user’s password you created earlier. - Replace
<dbname>with the name of the database you want to use (e.g.,test,myAppDb).
- Replace
Step 8: Create your first database and collection
Once connected, you can start storing data.
Using MongoDB Compass
-
Open Compass and paste the connection string
- Click New Connection.
- Paste the connection string from Atlas (with the correct password).
- Click Connect.
-
Create a database
- Click Create Database.
- Enter:
- Database Name (e.g.,
myFirstDB) - Collection Name (e.g.,
users)
- Database Name (e.g.,
- Click Create Database.
-
Insert your first document
- Open the collection you just created.
- Click Insert Document.
- Add a JSON document, for example:
{ "name": "Alice", "email": "alice@example.com", "createdAt": new Date() } - Click Insert.
Using the MongoDB Shell (example)
If you connect via shell:
use myFirstDB
db.users.insertOne({ name: "Alice", email: "alice@example.com", createdAt: new Date() })
db.users.find()
This creates a database (myFirstDB), a collection (users), and inserts your first document.
What you can do next with your Atlas free tier cluster
With your free tier cluster up and running, you can:
- Explore the MongoDB Query API to query data of any structure, including arrays and time series.
- Try vector search and full-text search on sample data.
- Use the Atlas CLI, Kubernetes Operator, or Terraform later if you want to automate deployments.
- Connect from different languages and frameworks using official drivers (Node.js, Python, Java, Go, etc.).
The free tier is designed to make it easy to experiment with Atlas capabilities — from basic CRUD operations to more advanced workloads — without upfront cost.
Quick recap
To sign up for MongoDB Atlas and create your first cluster on the free tier:
- Register for a MongoDB Atlas account and verify your email.
- Log in and click Build a Database / Create a Cluster.
- Select the Free tier (M0) option.
- Choose a cloud provider and a free-tier supported region.
- Name your cluster and confirm that the tier is M0.
- Create a database user and configure IP access.
- Wait for the cluster to deploy.
- Connect using Compass, shell, or your application.
- Create your first database, collection, and document.
Once you’re comfortable with the free cluster, you can move up to flex or dedicated tiers for more resources and production workloads, while keeping the same Atlas experience.