> For the complete documentation index, see [llms.txt](https://docs.firefly.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.firefly.ai/integrations/data-sources/mongodb-atlas.md).

# MongoDB Atlas

MongoDB Atlas integration allows you to connect your MongoDB Atlas clusters to Firefly. This integration enables Firefly to discover and track your MongoDB Atlas assets, including clusters, databases, and configuration details. This integration is particularly useful for tracking database-as-a-service (DBaaS) assets alongside your other infrastructure components.

## Prerequisites

* MongoDB Atlas account with administrative access.
* Ability to create API keys with Organization Read Only permissions.
* Access to MongoDB Atlas API endpoints.
* Required credentials:
  * API Public Key.
  * API Private Key.
  * Project ID.

## Setup Procedure

1. Log in to your MongoDB Atlas account at <https://cloud.mongodb.com/>.
2. From the left menu, select **Access Manager**.
3. Select your Organization.
4. From the top menu, select **API Keys > Create API Key**.
5. Enter a descriptive name for your API key.
6. In Organization Permissions, select **Organization Read Only** and click **Next**.
7. Copy both the Public Key and Private Key.
8. In Firefly:
   * Click **Settings > Integrations**.
   * Click **Add New > MongoDB Atlas**.
   * Enter a descriptive name in the Nickname field.
   * Paste your Public Key and Private Key.
   * Click **Next**.
   * Click **Done**.

## Configuration Details

* Firefly scans every 8 hours by default for SaaS data.
* Your MongoDB Atlas configurations list will stay updated automatically.
* You can enforce IaC or policies on your MongoDB Atlas assets.
* Supports monitoring of MongoDB Atlas clusters, databases, and configuration details.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.firefly.ai/integrations/data-sources/mongodb-atlas.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
