Creator Center
/Tool/MongoDB Atlas Tool
app icon

MongoDB Atlas Tool

Verified by Dify
No ratings yet
819
M
mongodb/mongodb_atlas_tool

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.

UtilitiesSearch

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

  • A MongoDB Atlas cluster (M0 free tier is sufficient for testing)
  • A connection string:
  • For Full-Text Search: an Atlas Search index on the target collection
  • For Vector Search: an Atlas Vector Search index on the target collection

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
string✅formDatabase to query
string✅llmCollection to query
string❌llmJSON filter, e.g.
string❌llmJSON projection, e.g.
number❌formMax 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
string✅formDatabase
string✅llmCollection
string✅llmSearch query string
string❌formAtlas Search index name (default )
number❌formMax 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
string✅formDatabase
string✅llmCollection
string✅*llmPre-computed embedding as a JSON float array
string✅*llmFallback text query (uses placeholder zero-vector — use Voyage AI plugin for real embeddings)
string❌formVector Search index name (default )
string❌formEmbedding field name (default )
number❌formANN candidates (default 150, must be ≥ limit)
number❌formMax 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
string✅formDatabase
string✅llmCollection
string✅llmPipeline as JSON array, e.g.
number❌formSafety 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
string✅formDatabase
string✅llmCollection
string✅llmDocument as JSON object, e.g.

Output:


Update Documents

ParameterTypeRequiredFormDescription
string✅formDatabase
string✅llmCollection
string✅llmFilter JSON, e.g.
string✅llmUpdate JSON, e.g.
boolean❌formInsert if no match (default false)

Output:


Delete Documents

ParameterTypeRequiredFormDescription
string✅formDatabase
string✅llmCollection
string✅llmFilter 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

  • GitHub Issues: https://github.com/mongodb-developer/dify-plugins-mongodbatlas-tool/issues
  • MongoDB Developer Community: https://www.mongodb.com/community/forums/

License

Apache 2.0 — see LICENSE for details.

CATEGORY
Tool
VERSION
0.0.4
mongodb·Updated 4 months ago
REQUIREMENTS
Maximum memory
256MB
Access domain

No outbound calls found

Security
Security Rating

Last checked 09/08/2026 08:48 AM · version 0.0.4

Give a rate
SHARE WITH