2024-06-18 15:53:06 +02:00
---
2025-06-20 19:46:38 +05:30
title: MongoDB Connector | OpenMetadata NoSQL Database Integration
2024-06-18 15:53:06 +02:00
slug: /connectors/database/mongodb
---
{% connectorDetailsHeader
name="MongoDB"
stage="PROD"
platform="OpenMetadata"
2025-03-03 14:39:14 +05:30
availableFeatures=["Metadata", "Data Profiler", "Sample Data"]
2024-06-18 15:53:06 +02:00
unavailableFeatures=["Query Usage", "Data Quality", "dbt", "Owners", "Lineage", "Column-level Lineage", "Tags", "Stored Procedures"]
/ %}
In this section, we provide guides and references to use the MongoDB connector.
Configure and schedule MongoDB metadata workflows from the OpenMetadata UI:
- [Requirements ](#requirements )
- [Metadata Ingestion ](#metadata-ingestion )
- [Data Profiler ](#data-profiler )
2025-04-07 09:49:37 +05:30
- [Troubleshooting ](/connectors/database/mongodb/troubleshooting )
2024-06-18 15:53:06 +02:00
2024-12-12 11:34:09 +05:30
{% partial file="/v1.7/connectors/ingestion-modes-tiles.md" variables={yamlPath: "/connectors/database/mongodb/yaml"} /%}
2024-06-18 15:53:06 +02:00
## Requirements
To fetch the metadata from MongoDB to OpenMetadata, the MongoDB user must have access to perform `find` operation on collection and `listCollection` operations on database available in MongoDB.
## Metadata Ingestion
{% partial
2024-12-12 11:34:09 +05:30
file="/v1.7/connectors/metadata-ingestion-ui.md"
2024-06-18 15:53:06 +02:00
variables={
connector: "MongoDB",
2024-12-12 11:34:09 +05:30
selectServicePath: "/images/v1.7/connectors/mongodb/select-service.png",
addNewServicePath: "/images/v1.7/connectors/mongodb/add-new-service.png",
serviceConnectionPath: "/images/v1.7/connectors/mongodb/service-connection.png",
2024-06-18 15:53:06 +02:00
}
/%}
{% stepsContainer %}
{% extraContent parentTagName="stepsContainer" %}
#### Connection Details
- **Username**: Username to connect to Mongodb. This user must have access to perform `find` operation on collection and `listCollection` operations on database available in MongoDB.
- **Password**: Password to connect to MongoDB.
2024-11-21 19:42:35 +01:00
- **Host Port**: When using the `mongodb` connecion schema, the hostPort parameter specifies the host and port of the MongoDB. This should be specified as a string in the format `hostname:port` . E.g., `localhost:27017` . When using the `mongodb+srv` connection schema, the hostPort parameter specifies the host and port of the MongoDB. This should be specified as a string in the format `hostname` . E.g., `cluster0-abcde.mongodb.net` .
2024-06-18 15:53:06 +02:00
- **databaseName**: Optional name to give to the database in OpenMetadata. If left blank, we will use default as the database name.
2024-11-21 19:42:35 +01:00
Using Atlas? Follow [this guide ](https://www.mongodb.com/docs/guides/atlas/connection-string/ ) to get the connection string.
2024-12-12 11:34:09 +05:30
{% partial file="/v1.7/connectors/database/advanced-configuration.md" /%}
2024-06-18 15:53:06 +02:00
{% /extraContent %}
2024-12-12 11:34:09 +05:30
{% partial file="/v1.7/connectors/test-connection.md" /%}
2024-06-18 15:53:06 +02:00
2024-12-12 11:34:09 +05:30
{% partial file="/v1.7/connectors/database/configure-ingestion.md" /%}
2024-06-18 15:53:06 +02:00
2024-12-12 11:34:09 +05:30
{% partial file="/v1.7/connectors/ingestion-schedule-and-deploy.md" /%}
2024-06-18 15:53:06 +02:00
{% /stepsContainer %}
2024-12-12 11:34:09 +05:30
{% partial file="/v1.7/connectors/database/related.md" /%}
2024-06-18 15:53:06 +02:00
## Data Profiler
{%inlineCallout icon="description" bold="OpenMetadata 1.3.1 or later" href="/deployment"%}
To deploy OpenMetadata, check the Deployment guides.
{%/inlineCallout%}
2024-09-02 10:22:51 +05:30
[Profiler deployment ](/how-to-guides/data-quality-observability/profiler/workflow )
2024-06-18 15:53:06 +02:00
### Limitations
The MongodDB data profiler current supports only the following features:
1. **Row count** : The number of rows in the collection. Sampling or custom query is not supported.
2. **Sample data:** If a custom query is defined it will be used for sample data.