Ctrl K
ComunidadGuías…

docs/mongodb.md

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
---
title: MongoDB
noIndex: false
noContent: false
---

<Callout status="info">
Available on Team and Enterprise plans
</Callout>

Open **Integrations** from the workspace sidebar and select **MongoDB**. Choose **I have connection credentials** or **I have a connection string**, then enter your database connection details:

![MongoDB connection form with credential fields selected](../assets/docs/xJmtNalsRLKv245XcPkD.webp)

After creating the integration, connect it to your project when prompted.

### Secure connections

To connect through SSH, use an [SSH tunnel integration](/docs/securing-connections#ssh-tunnel-integration). SSH tunnel integrations are available on the Enterprise plan.

#### Troubleshooting SSH connections for MongoDB

If you are encountering the following error

```
Could not reach any servers in X
```

try adding `directConnection=true` to the connection URL.