# Setup: MongoDB, mongosh and Compass

Install MongoDB Community Server, mongosh and Compass on Windows with winget or on a Mac with Homebrew, check that the server is running in the background, and connect to it with mongosh at mongodb://localhost:27017.

![Cheat sheet: Setup: MongoDB, mongosh and Compass](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/cb67f4318ca447a89705f87ee8ae1af6.webp)

- Category: MongoDB
- Level: Novice
- Tags: database, homebrew, mongodb, MongoDB Compass, mongosh, windows-service, winget
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/mongodb-setup-mongodb-mongosh-and-compass-cheat-sheet
