# MongoDB Execute

The MongoDB Execute step connects to a MongoDB cluster and executes Mongo shell-style commands. The commands can:

* Be statically defined.
* Have wildcards substituted with data from incoming rows.
* Be defined in a field on incoming rows.

The following security providers are supported in this step through the MongoDB server:

* SCRAM-SHA-1/SCRAM-SHA-256
* LDAP
* Kerberos
* X509

This step features two tabs as described in the [Options](/pdia-data-integration/10.2-data-integration/pdi-transformation-steps-reference-overview/mongodb-execute/options-mongodb-execute.md) topic.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pentaho.com/pdia-data-integration/10.2-data-integration/pdi-transformation-steps-reference-overview/mongodb-execute.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
