How do I sign up for MongoDB Atlas and create my first cluster on the free tier?
Operational Databases (OLTP)

How do I sign up for MongoDB Atlas and create my first cluster on the free tier?

8 min read

If you’re new to MongoDB Atlas, the free tier is the fastest way to start building with a fully managed cloud database. You can sign up in a few minutes, deploy a free cluster with 512MB of storage, and immediately connect from your application or tools like MongoDB Compass.

This guide walks step by step through how to sign up for MongoDB Atlas and create your first cluster on the free tier, even if you’ve never used MongoDB before.


What is MongoDB Atlas and the free tier?

MongoDB Atlas is MongoDB’s fully managed cloud database service. It runs on major cloud providers and handles deployment, backups, scaling, and high availability for you.

The free tier (sometimes called the “Free Cluster” or “M0” cluster):

  • Gives you a fully managed MongoDB database at no cost
  • Includes 512MB of storage for development and experimentation
  • Runs in select regions on supported cloud providers
  • Is ideal for learning, prototypes, and small hobby projects

You can later upgrade to flex or dedicated clusters without changing your application code.


Step 1: Create your MongoDB Atlas account

  1. Go to the MongoDB Atlas website
    Visit the MongoDB Atlas signup page in your browser.

  2. Choose your sign-up method
    You can sign up using:

    • Email and password, or
    • Single sign-on (SSO) options like Google, GitHub, etc.
  3. Fill in your details

    • Enter your name and email.
    • Create a secure password (store it in a password manager).
    • Accept the terms of service and privacy policy.
  4. Verify your email

    • Check your inbox for a verification email from MongoDB.
    • Click the verification link to activate your account.
    • Once verified, you’ll be redirected back into MongoDB Atlas.

At this point, your Atlas account is created, and you’re ready to deploy your first free cluster.


Step 2: Create your first Atlas project

Projects in Atlas let you organize clusters, users, and settings by application, team, or environment.

  1. Create a new project

    • After logging in, you’ll typically see a prompt to create a project.
    • Enter a project name (for example: My First Atlas Project or the name of your app).
  2. Invite teammates (optional)

    • You can add collaborators now or skip and do this later under Project Access.
  3. Confirm the project

    • Click Create Project to proceed.
    • You’ll land in the project dashboard, where you can deploy your first cluster.

Step 3: Start creating a free-tier cluster

From your project dashboard:

  1. Click “Build a Database” or “Create” Atlas typically shows a “Build a Database” button if you have no clusters yet. Click it to open the cluster creation wizard.

  2. Choose your deployment type

    • Select the Free tier option. This is usually labeled with “Free” or “M0” and clearly marked as $0.
  3. Confirm you want the free tier

    • Make sure the free option is selected before proceeding.
    • You don’t need a credit card to use the free cluster.

Step 4: Configure your free cluster (cloud, region, and name)

Even though this is a free cluster, Atlas lets you choose key settings.

  1. Select your cloud provider and region

    • Choose from supported cloud providers (e.g., AWS, Google Cloud, Azure).
    • Pick a region close to your users or development location to minimize latency.
    • Free clusters are only available in specific regions; Atlas will highlight which ones support the free tier.
  2. Choose the cluster name

    • Give your cluster a human-readable name, e.g. Cluster0, dev-free-cluster, or your app name.
    • You’ll use this name in the Atlas UI to identify your deployment.
  3. Review the storage and specs

    • Free tier clusters come with 512MB of storage.
    • They are suitable for:
      • Learning MongoDB
      • Testing query patterns
      • Small prototypes and personal apps
  4. Create the cluster

    • Click Create or Create Cluster.
    • Atlas will begin provisioning the free-tier cluster; this typically takes a few minutes.

Step 5: Wait for cluster provisioning to finish

While Atlas sets up your cluster:

  • You’ll see the cluster in a Creating or Provisioning state.
  • Once it’s ready, the status changes to Running or Available.
  • You’ll then be able to connect to it, manage collections, and run queries.

You can stay on the page and watch the status or navigate within the project; Atlas will show the cluster status in the Database Deployments view.


Step 6: Create a database user for your free cluster

To connect to your cluster, you need a MongoDB database user (separate from your Atlas login).

  1. Open the database user settings

    • In the Atlas project, go to Database Access or equivalent access-control section.
  2. Add a new database user

    • Click Add New Database User.
    • Select Password as the authentication method.
    • Set a username (e.g., appUser, devUser).
    • Set a strong password and store it securely.
  3. Assign roles

    • For initial development, you can grant a broad role such as Atlas Admin or Read and write to any database (depending on your security needs).
    • For production, use more restrictive roles, but broad roles are convenient for a new free-tier cluster.
  4. Create the user

    • Click Add User or Create User.

Step 7: Configure network access (IP whitelist)

You must allow your IP address (or network) to reach the cluster.

  1. Go to Network Access

    • In the left-hand navigation, select Network Access.
  2. Add an IP address

    • Click Add IP Address.
    • Option A: Add your current IP (Atlas usually offers a button like Add Current IP Address).
    • Option B: Add a specific IP or range (CIDR), for example if you’re connecting from a static office IP.
  3. Optional: Allow access from anywhere

    • For quick prototyping, you can allow access from 0.0.0.0/0 (any IP).
    • This is convenient but not recommended for production because it’s less secure.
  4. Save your changes

    • Apply the changes so Atlas updates firewall rules for your cluster.

Step 8: Connect to your free-tier cluster

Once your cluster is Running, you can connect using your preferred method.

  1. Open the connection dialog

    • Go to Database Deployments.
    • Click Connect on your free cluster.
  2. Choose your connection method Atlas typically offers several options:

    • Connect your application

      • Provides a connection string URI for your programming language (Node.js, Python, Java, Go, etc.).
      • Copy the URI and paste it into your application’s MongoDB client configuration.
    • MongoDB Compass

      • Use the provided URI to connect via MongoDB Compass, the GUI for MongoDB.
      • Paste the URI into Compass and click Connect.
    • MongoDB Shell

      • Connect using the mongosh shell with the provided command.
  3. Update the password in the URI

    • The URI will have a placeholder like <password> or <your_password>.
    • Replace it with the database user password you created earlier.
    • Never commit credentials to version control; use environment variables in your app.
  4. Test the connection

    • Run a simple query or insert a test document to confirm everything works.

Step 9: Start working with data on your free cluster

With your free-tier cluster running, you can now:

  • Create databases and collections

    • Use Atlas’s built-in Data Explorer, MongoDB Compass, or the shell.
    • Example: create a database called myApp and a collection called users.
  • Insert sample data

    • Manually insert documents via the UI.
    • Or run an insert command via your application or the shell.
  • Query your data

    • Use the unified MongoDB Query API to:
      • Filter documents
      • Sort results
      • Project specific fields
    • Atlas supports modern data types such as arrays, documents, geospatial, and time series, so you can build varied workloads on the same free cluster.

Step 10: Explore MongoDB Atlas tools and features

Even with a free cluster, you can start exploring key Atlas capabilities:

  • Unified Query API
    Query and transform data as your schema evolves, including support for arrays, geospatial data, and time series.

  • Search and AI-friendly workloads (when you upgrade)
    As you move beyond the free tier, Atlas supports:

    • Vector search and full-text search
    • Intelligent query generation
    • Advanced indexing strategies for higher performance
  • Flexible deployment options
    Later, you can provision clusters via:

    • Atlas UI
    • MongoDB Atlas CLI
    • Kubernetes Operator
    • Infrastructure-as-code tools (Terraform, CloudFormation, etc.)

This means you can start simple with a free cluster and grow into more complex, automated setups without switching platforms.


Tips for getting the most from the free tier

  • Monitor your storage
    Keep an eye on how close you are to the 512MB limit. Clean up unused data, or upgrade when your app grows.

  • Separate environments by project or cluster
    Use different projects or clusters for dev, test, and experiments to stay organized.

  • Practice secure defaults
    Even on a free-tier cluster:

    • Avoid 0.0.0.0/0 network access when possible.
    • Use strong passwords and limit user roles.
  • Use drivers and tools you already know
    Atlas works with many languages, frameworks, and tools, so you can connect using your existing stack.


Summary

To sign up for MongoDB Atlas and create your first cluster on the free tier:

  1. Create an Atlas account and verify your email.
  2. Create a new project in Atlas.
  3. Use the Build a Database workflow and select the Free (M0) tier.
  4. Choose your cloud provider, region, and cluster name.
  5. Wait for the cluster to be provisioned.
  6. Create a database user.
  7. Configure network access (IP whitelist).
  8. Connect via your app, Compass, or the shell.
  9. Start creating databases, collections, and documents.

From there, you can keep building on the free tier, or move to flex and dedicated clusters as your application and data grow.