Connect MongoDB / Atlas
Detailed guide for connecting MongoDB / Atlas to Data Explorer, including SSL configuration, Docker setup, and common troubleshooting.
MongoDB / Atlas
27017
mongodb://
Pooled Adapter
How to Connect
Method 1: Connection URI
# General format
mongodb+srv://username:password@cluster0.mongodb.net/mydb?retryWrites=true&w=majority
Method 2: Connection Form
HostlocalhostIP address or hostname of the database serverPort27017Default port: 27017UsernamerootLogin user with database accessPassword••••••Password (AES-256 encrypted before storage)DatabasemydbDatabase name you want to exploreConnection Guardrails
SSH Tunneling (Secure)
- Supports authentication via password or Private Key (OpenSSH format).
- Automatic destination IP validation (SSRF Protection).
- Periodic tunnel health checks to maintain connectivity.
Supported Features
- Collection and document browsing
- MongoDB Atlas SRV connection string support
- Database and collection hierarchy discovery
- JSON document exploration with tree/grid views
- Safer SSRF validation for Atlas SRV hosts
- MQL shell integration inside the NoSQL workspace
- Health checks for saved MongoDB connections
Internal Introspection Query
# Table structure analysis query
// MongoDB does not use SQL introspection.
// Data Explorer discovers your hierarchy by listing:
// - databases
// - collections
// - sampled document fields
// - index metadata
Docker Quick Start
# Start MongoDB / Atlas container
docker run -d \
--name data-explorer-mongodb \
-p 27017:27017 \
mongo:7
Advanced Tuning
Connection Pooling
By default, the system maintains a connection pool to optimize response speed. For databases with limited sessions (like Supabase Free Tier), consider reducing the timeout to free up connections faster.
SSL/TLS Handshake
The system supports SSL Modes "prefer" and "require". For connections requiring custom CA certificates, you need to mount the certificate file into the /certs directory of the backend server.
Security Note
For MongoDB Atlas, prefer the mongodb+srv URI from the Atlas dashboard. SRV records and TLS are handled automatically by the driver.
Ready to explore data?
Join the community on GitHub to contribute to the smartest local database IDE.
Launch App