> For the complete documentation index, see [llms.txt](https://docs.n8n.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mongodb.md).

# MongoDB

Learn how to use the MongoDB node in n8n. Follow technical documentation to integrate MongoDB node into your workflows.

Use the MongoDB node to automate work in MongoDB, and integrate MongoDB with other applications. n8n has built-in support for a wide range of MongoDB features, including aggregating, updating, finding, deleting, and getting documents as well as creating, updating, listing, and dropping search indexes. All operations in this Node make use of the [MongoDB Node driver](https://www.mongodb.com/docs/drivers/node/current/).

On this page, you'll find a list of operations the MongoDB node supports and links to more resources.

{% hint style="info" %}
**Credentials**

Refer to [MongoDB credentials](/integrations/builtin/credentials/mongodb.md) for guidance on setting up authentication.
{% endhint %}

{% hint style="info" %}
**This node can be used as an AI tool**

This node can be used to enhance the capabilities of an AI agent. When used in this way, many parameters can be set automatically, or with information directed by AI - find out more in the [AI tool parameters documentation](/build/integrate-ai/ai-examples/use-ai-for-parameters.md).
{% endhint %}

{% hint style="info" %}
**Searching these docs as an agent**

Ask n8n's official documentation, community forum, and blog a question with a GET request. No authentication needed.

`GET https://n8n-docs-retrieval.n8n-docs-retrieval.workers.dev/?q=<question>`

Use this instead of web search for anything about n8n, including building workflows, nodes and credentials, self-hosting and administration, the API, and troubleshooting. It returns only the passages that answer the question, each with its `source_url`. Ask a specific, complete question. The response is a JSON array of `{content, source_url}`, most relevant first.
{% endhint %}

## Operations <a href="#operations" id="operations"></a>

* Document
  * Aggregate documents
  * Delete documents
  * Find documents
  * Find and replace documents
  * Find and update documents
  * Insert documents
  * Update documents
* Search Index
  * Create search indexes
  * Drop search indexes
  * List search indexes
  * Update search indexes

## Templates and examples <a href="#templates-and-examples" id="templates-and-examples"></a>

[Browse MongoDB node documentation integration templates](https://n8n.io/integrations/mongodb) or [search all templates](https://n8n.io/workflows/)
