app icon
MongoDB Atlas Tool
0.0.3

Query, search, and write documents in MongoDB Atlas from Chatflow, Workflow, and Agent applications. Supports find, full-text search, vector search, aggregation, insert, update, and delete operations.

mongodb/mongodb_atlas_tool73 installs

MongoDB Atlas Tool Plugin for Dify

A Tool-type Dify plugin that lets Chatflow, Workflow, and Agent applications query, search, and write documents in MongoDB Atlas directly from a workflow node or agent tool call.

Companion plugins:

  • Use the Voyage AI plugin to generate real vector embeddings and pipe them into the Vector Search tool's Query Vector field.
  • Use the MongoDB Atlas Datasource plugin to feed Atlas collections into the Dify Knowledge Base / RAG pipeline.

Features

ToolDescription
Find DocumentsQuery a collection with an optional MongoDB filter and projection
Full-Text SearchAtlas full-text search (requires an Atlas Search index)
Vector SearchAtlas ANN search — accepts a pre-computed embedding vector
AggregateRun any raw aggregation pipeline
Insert DocumentInsert a single document and get back its
Update Documents with a filter + update operator JSON
Delete Documents with a filter JSON

Prerequisites


Installation

From Dify Marketplace

Search for MongoDB Atlas Tool in the Dify Plugin Marketplace and click Install.

Local / Debug Install

  1. Clone or download this repository.
  2. Copy to and fill in your Dify remote debug URL and key.
  3. Install dependencies:
  4. Run the plugin:
  5. The plugin will appear in your Dify workspace under Plugins.

Package for distribution


Configuration

When installing the plugin, you will be prompted for:

CredentialRequiredDescription
Connection String

Tool Reference

Find Documents

Query documents using a MongoDB filter.

ParameterTypeRequiredFormDescription
stringformDatabase to query
stringllmCollection to query
stringllmJSON filter, e.g.
stringllmJSON projection, e.g.
numberformMax documents to return (default 20, max 1000)

Output (JSON): Each document is yielded as its own JSON message — is the first document, is the second, etc. Results are directly iterable in Dify's Iterate/Loop nodes.


Full-Text Search

Atlas across all text fields. Requires an Atlas Search index.

ParameterTypeRequiredFormDescription
stringformDatabase
stringllmCollection
stringllmSearch query string
stringformAtlas Search index name (default )
numberformMax results (default 20)

Output (JSON): Each document is yielded as its own JSON message — directly iterable.
Output (text): A JSON array of stringified documents, pipeable to the Rerank tool's parameter.
Each document includes a field.


Vector Search

Atlas approximate nearest-neighbour search. Requires an Atlas Vector Search index.

ParameterTypeRequiredFormDescription
stringformDatabase
stringllmCollection
string✅*llmPre-computed embedding as a JSON float array
string✅*llmFallback text query (uses placeholder zero-vector — use Voyage AI plugin for real embeddings)
stringformVector Search index name (default )
stringformEmbedding field name (default )
numberformANN candidates (default 150, must be ≥ limit)
numberformMax results (default 20)

* Provide either or .

Tip: Use the Voyage AI plugin's Embed Text tool to generate . The output variable can be piped directly into — the plugin automatically handles the array format.

Output (JSON): Each document is yielded as its own JSON message — directly iterable.
Output (text): A JSON array of stringified documents, pipeable to the Rerank tool's parameter.
Each document includes a field. The embedding field is excluded from results.


Aggregate

Run a raw MongoDB aggregation pipeline.

ParameterTypeRequiredFormDescription
stringformDatabase
stringllmCollection
stringllmPipeline as JSON array, e.g.
numberformSafety cap — appended automatically if no stage present (default 100)

Output (JSON): Each result document is yielded as its own JSON message — directly iterable.


Insert Document

ParameterTypeRequiredFormDescription
stringformDatabase
stringllmCollection
stringllmDocument as JSON object, e.g.

Output:


Update Documents

ParameterTypeRequiredFormDescription
stringformDatabase
stringllmCollection
stringllmFilter JSON, e.g.
stringllmUpdate JSON, e.g.
booleanformInsert if no match (default false)

Output:


Delete Documents

ParameterTypeRequiredFormDescription
stringformDatabase
stringllmCollection
stringllmFilter JSON, e.g.

⚠️ Passing as deletes all documents in the collection.

Output:


Recommended Workflow (with Voyage AI)

Note: All query/search tools yield one JSON message per document. This means , , etc. are individual documents — you can pipe the output directly to an Iterate or Loop node without extracting a nested field.


Observability

All connections use , which appears in Atlas logs and the Atlas Monitoring dashboard under Application Names.


Support


License

Apache 2.0 — see LICENSE [blocked] for details.

CATEGORY
Tool
TAGS
UTILITIESSEARCH
VERSION
0.0.3
mongodb·05/12/2026 02:05 AM
REQUIREMENTS
Maximum memory
256MB