> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prod.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MongoDB

> Build apps with read and write access to a MongoDB instance

## Setting up MongoDB

### 1. Add integration

Select **MongoDB** from the **integrations page**.

### 2. Configure settings

Fill out the form with the following settings:

| Setting | Required | Description |
| - | - | - |
| Name | ✓ | Name that will be displayed to users when selecting this integration in Prod AI |
| Connection URI | ✓ | Connection URI used to connect to a MongoDB instance. See [Connection URI Docs](https://www.mongodb.com/docs/manual/reference/connection-string/) for standard format. |
| Database Name | ✓ | Name of database to connect to |

### 3. Test and save

Click **Test Connection** to check that Prod AI can connect to the data source.

On Dedicated Cloud, allowlist your [Prod AI data plane IP addresses](https://docs.prod.ai/deployment/security/overview.md#ip-addresses).

After connecting successfully, click **Create** to save the integration.

### 4. Set data tags

Optionally, configure different data tags for [separate development environments](https://docs.prod.ai/development-lifecycle/build/data-tags.md).

**MongoDB connected!**
You can now build
[apps](https://docs.prod.ai/coding-agents/apps.md) and [agents](https://docs.prod.ai/coding-agents/agents.md) with MongoDB.

## Troubleshooting

Check out our guide on [common errors across database integrations](https://docs.prod.ai/integrations/troubleshooting/troubleshooting-databases.md), in addition to [common MongoDB connection issues](https://www.mongodb.com/docs/atlas/troubleshoot-connection/). If you are encountering an error that you don't see in the guide, or the provided steps are insufficient to resolve the error, please contact us at [support@prod.ai](mailto:support@prod.ai).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.