Skip to main content

Connecting to MongoDB Atlas

MongoDB Atlas uses SRV connection strings. Enter your Atlas cluster hostname (e.g. cluster0.abc123.mongodb.net) as the host. Cobi detects the SRV pattern automatically and handles the port for you.

Connecting to a Self-Hosted MongoDB

Enter your server’s hostname or IP address and port (27017 by default).

Schema Conventions

Cobi maps MongoDB collections to SQL tables. Keep the following in mind when chatting with the Data Assistant:

Create a Read-Only User

Self-hosted MongoDB: run the following in mongosh:
MongoDB Atlas: create the user in the Atlas UI under Database Access, with the built-in read role scoped to your database.

Troubleshooting

See the Troubleshooting page for help with connection issues.