You can wire the MongoDB node into an AI agent as a tool provider: the agent calls the operations you allow. See Agent tools.
Credentials
Connect MongoDB under Credentials in the node settings. See Connecting credentials for the general flow. Enter the values manually when creating the credential. Go to MongoDB Atlas → Database → Connect → Drivers, copy the connection string, and replace <password> with your database user password. For self-hosted MongoDB use mongodb://user:pass@host:27017/. Get your credentials here.Operations
Aggregation
| Operation | ID | Description |
|---|---|---|
| Aggregate | aggregate |
Atlas search
| Operation | ID | Description |
|---|---|---|
| Atlas Facet Search | atlas_facet_search | |
| Atlas Text Search | atlas_text_search | |
| Create Atlas Search Index | create_atlas_search_index |
Atlas vector search
| Operation | ID | Description |
|---|---|---|
| Create Vector Search Index | create_vector_search_index | |
| Delete Search Index | delete_search_index | |
| List Search Indexes | list_search_indexes | |
| Update Search Index | update_search_index | |
| Upload & Index Document | upload_and_index | |
| Vector Search | vector_search |
Collections
| Operation | ID | Description |
|---|---|---|
| Create Collection | create_collection | |
| Drop Collection | drop_collection | |
| List Collections | list_collections | |
| Rename Collection | rename_collection |
Database
| Operation | ID | Description |
|---|---|---|
| Drop Database | drop_database | |
| List Databases | list_databases | |
| Run Command | command |
Documents
| Operation | ID | Description |
|---|---|---|
| Bulk Write | bulk_write | |
| Count Documents | count_documents | |
| Delete Many Documents | delete_many | |
| Delete One Document | delete_one | |
| Distinct Values | distinct | |
| Estimated Document Count | estimated_document_count | |
| Find Documents | find | |
| Find One and Delete | find_one_and_delete | |
| Find One and Replace | find_one_and_replace | |
| Find One and Update | find_one_and_update | |
| Find One Document | find_one | |
| Insert Many Documents | insert_many | |
| Insert One Document | insert_one | |
| Replace One Document | replace_one | |
| Update Many Documents | update_many | |
| Update One Document | update_one |
Indexes
| Operation | ID | Description |
|---|---|---|
| Create Index | create_index | |
| Create Multiple Indexes | create_indexes | |
| Drop All Indexes | drop_indexes | |
| Drop Index | drop_index | |
| List Indexes | list_indexes |