# MongoDB

{% hint style="info" %}
💪 **Difficulty:** advanced

⏳ **Time to complete**: approx: 10-15 min (if your database has a restricted inbound IP security rule, you need to schedule a call with us - we’re working on something better!)
{% endhint %}

## 💬 Description

MongoDB is a no-SQL database storing all your data in JSON

## 🤑 Use Case

Connecting to MongoDB is very helpful if you have your own application that pushes data to a database. It usually contains information on your customers and their behavior

## 🛠️ Setup

This Connector should probably be configured by (or with assistance from) your database responsible - you’re also welcome to [schedule a call.](https://calendly.com/thomas-less/speak-to-less)

{% hint style="danger" %}
If your MongoDB (or the server its hosted on) has restrictive inbound IP rules, you need to [schedule a call ](https://calendly.com/thomas-less/speak-to-less)with us as you cannot access the Less application’s IP currently. We are working on displaying the IP of the Less application inside the web application.&#x20;

If your MongoDB (or the server its hosted on) has unrestricted IP access, continue below 👇
{% endhint %}

### Step #1: Host IP

Input the Host IP of your MongoDB in the Less configuration window. Usually looks something like this: `mongodb0.example.com`

### Step #2: Host Port

Input the Host Port of your MongoDB in the Less configuration window. It’s usually `27017`.

### Step #3: Database Name

Input the Database name of your MongoDB in the Less configuration window.

### Step #4: Input Collection(s)

Input the names of the MongoDB Collections you want to extract in the Less configuration window. This should be a comma-separated list like `collection1,collection2,collection3`

### Step #5: Username & Password

Input the username and password of a MongoDB account with read access. Everything is encrypted in transit and at rest.

###


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://resources.less.tech/less-tech/connectors/connector-guides/mongodb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
