Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mongodb-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Use this guide to copy connection information from Atlas and connect a MongoDB deployment in MongoDB for VS Code.

Copy Your Deployment’s Connection Information

To find and copy your deployment’s connection information:
1

In Atlas, go to the Clusters page for your project.

  • If it’s not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.
  • If it’s not already displayed, select your desired project from the Projects menu in the navigation bar.
  • In the sidebar, click Clusters under the Database heading.
The Clusters page displays.
2

Go to the Connect dialog box.

a. Locate the cluster to which to connect from the list of clusters.b. Click the Connect button to the right of your cluster’s name.A Connect dialog box appears with a list of available connection methods.
3

Select MongoDB for VS Code.

Follow the directions under Connecting with MongoDB for VS Code to create a connection to your cluster.

Create a Connection to a Deployment

For instructions on creating a connection to your cluster using VS Code, see Connect to Your MongoDB Deployment in the MongoDB for VS Code documentation. If you copied your Atlas connection string in the previous procedure, follow the steps to use your Atlas connection string.
The Connect to Your MongoDB Deployment page also provides information on disconnecting from a deployment and information on activating, renaming and removing a connection.