> For the complete documentation index, see [llms.txt](https://docs.erathos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.erathos.com/connectors/databases/mongodb.md).

# MongoDB

### Before you begin

Make sure you have access to your **MongoDB connection string**. It can be in one of the following formats:

**Standard format:**

```python
mongodb://username:password@localhost:27017/myDatabase
```

**SRV format (used with MongoDB Atlas):**

```python
mongodb+srv://username:password@cluster0.mongodb.net/myDatabase
```

### How to Fill Out the Connection Form in Erathos

Use the details from your connection string to complete the form as follows:

| Field        | Value                                 |
| ------------ | ------------------------------------- |
| **DB**       | `myDatabase`                          |
| **Host**     | `cluster0.mongodb.net` or `localhost` |
| **Port**     | `27017`                               |
| **User**     | `username`                            |
| **Password** | `password`                            |
