π§ MongoDB Compass Installation
Complete step-by-step guide to install MongoDB Compass GUI on Windows, macOS, and Linux
What is MongoDB Compass?
The official GUI for MongoDB
MongoDB Compass is the official graphical user interface (GUI) for MongoDB. It allows you to visually explore your data, run queries, optimize performance, and manage your databases - all without writing a single line of code!
System Requirements
Minimum specifications needed
Windows
- OS: Windows 10 or later (64-bit)
- RAM: 4 GB minimum
- Disk: 500 MB free space
- Processor: 64-bit processor
macOS
- OS: macOS 10.12 or later
- RAM: 4 GB minimum
- Disk: 500 MB free space
- Chip: Intel or Apple Silicon (M1/M2)
Linux
- OS: Ubuntu 18.04+, RHEL 7+, or equivalent
- RAM: 4 GB minimum
- Disk: 500 MB free space
- Desktop: GNOME or KDE required
Windows Installation
Step-by-step guide for Windows
Visit the official MongoDB download page and download the Windows installer.
Download Compass for WindowsScreenshot: MongoDB Compass download page showing Windows installer option
File: mongodb-compass-x.xx.x-win32-x64.exe (~150 MB)- Locate the downloaded
.exefile in your Downloads folder - Double-click the installer to launch it
- If prompted by Windows Defender, click "Run anyway" or "More info" β "Run anyway"
Screenshot: Windows installer welcome screen with "Install" button
- Read the MongoDB Compass license agreement
- Check "I accept the terms in the License Agreement"
- Click "Next" to continue
Screenshot: License agreement screen with checkbox
Select your installation preferences:
- Complete: Installs all features (recommended for most users)
- Custom: Choose specific components and installation location
For beginners, select "Complete" and click "Next".
Screenshot: Installation type selection screen
- Review your installation settings
- Click "Install" to begin the installation
- Wait for the installation to complete (1-2 minutes)
- Click "Finish" when done
Screenshot: Installation progress bar
macOS Installation
Step-by-step guide for Mac
Visit the official MongoDB download page and download the macOS installer.
Download Compass for macOSScreenshot: Download page with macOS .dmg file option
File: mongodb-compass-x.xx.x-darwin-x64.dmg (~150 MB)- Locate the downloaded
.dmgfile in your Downloads folder - Double-click the DMG file to mount it
- A new window will open showing the MongoDB Compass icon
Screenshot: DMG window with MongoDB Compass icon and Applications folder
- Drag the MongoDB Compass icon to the Applications folder
- Wait for the copy to complete
- Eject the DMG file from the sidebar
Screenshot: Dragging MongoDB Compass to Applications folder
- Open Applications folder
- Find MongoDB Compass and double-click it
- If you see a security warning, click "Open"
- Alternatively: Go to System Preferences β Security & Privacy β Click "Open Anyway"
Screenshot: macOS security dialog with "Open" button
If you have Homebrew installed, you can install Compass with one command:
brew install --cask mongodb-compass
This will automatically download and install MongoDB Compass.
Linux Installation
Step-by-step guide for Ubuntu/Debian and RHEL/Fedora
Method 1: Download .deb Package
- Visit MongoDB Download Page
- Select "Ubuntu 64-bit (.deb)" from the dropdown
- Click "Download"
Method 2: Terminal Installation
# Download the package
wget https://downloads.mongodb.com/compass/mongodb-compass_1.42.1_amd64.deb
# Install with dpkg
sudo dpkg -i mongodb-compass_1.42.1_amd64.deb
# Install dependencies if needed
sudo apt-get install -f
Method 1: Download .rpm Package
- Visit MongoDB Download Page
- Select "Red Hat 64-bit (.rpm)" from the dropdown
- Click "Download"
Method 2: Terminal Installation
# Download the package
wget https://downloads.mongodb.com/compass/mongodb-compass-1.42.1.x86_64.rpm
# Install with yum/dnf
sudo yum install mongodb-compass-1.42.1.x86_64.rpm
# OR for Fedora
sudo dnf install mongodb-compass-1.42.1.x86_64.rpm
Option 1: Application Menu
- Open your application menu (GNOME Activities, KDE Application Launcher, etc.)
- Search for "MongoDB Compass"
- Click the icon to launch
Option 2: Terminal
mongodb-compass
First Launch & Setup
Getting started with MongoDB Compass
When you first launch MongoDB Compass, you'll see the welcome screen.
Screenshot: MongoDB Compass welcome screen with connection options
For Local MongoDB:
- Default connection string:
mongodb://localhost:27017 - Click "Connect" to connect to your local MongoDB instance
mongodb://localhost:27017
For MongoDB Atlas (Cloud):
- Get your connection string from Atlas
- Paste it into the connection field
- Click "Connect"
Screenshot: Connection screen with connection string input field
Once connected, you'll see the main Compass interface:
- Left Sidebar: List of databases and collections
- Top Bar: Connection info and navigation
- Main Panel: Data view, query builder, and tools
- Tabs: Documents, Aggregations, Schema, Explain Plan, Indexes
Screenshot: MongoDB Compass main interface showing databases and collections
Troubleshooting
Common issues and solutions
Symptoms: Connection timeout or "Cannot connect to server" error
Solutions:
- Make sure MongoDB server is running on your machine
- Check the connection string (default:
mongodb://localhost:27017) - Verify MongoDB is listening on port 27017:
netstat -an | grep 27017 - Check firewall settings - MongoDB port may be blocked
Symptoms: Application crashes or doesn't start
Solutions:
- Run as Administrator (right-click β "Run as administrator")
- Disable antivirus temporarily to test
- Check Windows Event Viewer for error details
- Reinstall with latest version
Symptoms: "Cannot be opened because it is from an unidentified developer"
Solution:
- Open System Preferences β Security & Privacy
- Click the lock icon to make changes
- Look for the message about MongoDB Compass
- Click "Open Anyway"
Symptoms: Error about missing libraries or dependencies
Solution:
# Ubuntu/Debian
sudo apt-get install -f
# RHEL/Fedora
sudo yum install mongodb-compass-dependencies
Check the official MongoDB documentation at docs.mongodb.com/compass or visit the MongoDB community forums for help.