Install MongoDB for VS Code


    MongoDB for VS Code is currently available as a Preview in the Visual Studio Marketplace. The product, its features, and the corresponding documentation may change during the Preview stage.


    Before you can install MongoDB for VS Code, you must install Visual Studio Code. You can download Visual Studio Code from



    Open the Extensions View.

    In Visual Studio Code, click the Extensions icon in the left navigation.

    Alternatively, you can open the Extensions view by pressing:

    • Control + Shift + X or
    • Command + Shift + X.

    Search "MongoDB for VS Code" in the extension marketplace.


    Click Install on the "MongoDB for VS Code" extension.

    Once the installation is complete, the Install button changes to the Manage gear button.

    Once you install MongoDB for VS Code, you can view data in your deployment and create Playgrounds to interact with your data.

    To configure MongoDB for VS Code settings, see MongoDB for VS Code Settings.