Back to Tutorials

MongoDB in n8n: Built-in Nodes vs Community Nodes

Posted by Oct 28, 2026

n8n has three built-in MongoDB nodes: the MongoDB node for documents and search indexes, the MongoDB Atlas Vector Store for AI workflows, and MongoDB Chat Memory for AI agents. MongoDB community nodes add MongoDB’s native query syntax with ObjectId and dates, bulk writes, transactions and a change stream trigger. This guide compares them, using n8n’s documentation, the description and README each author publishes on npm and our own download data.

The built-in MongoDB nodes

  • MongoDB: per n8n’s documentation, it aggregates, deletes, finds, inserts and updates documents, finds and replaces or finds and updates them, and creates, lists, updates and drops search indexes, all through the MongoDB Node driver.
  • MongoDB Atlas Vector Store: inserts and retrieves documents in a MongoDB Atlas collection with a Vector Search index, and works in chains or as a tool for agents. You create the Vector Search index in Atlas first.
  • MongoDB Chat Memory: stores an AI agent’s chat history in a collection you name, under a session key; the collection is created if it doesn’t exist.

MongoDB community nodes

Our MongoDB hub lists 12 packages that pass our quality rule, with 161 npm downloads a week between them. The most downloaded, with the description each author gives on npm (weekly npm downloads as of 28 October 2026):

Bar chart: weekly npm downloads of the top 7 MongoDB community nodes for n8n, October 28, 2026
Package Weekly downloads Latest version Author’s description
n8n-nodes-atomic-mongodb-session-coordinator 27 0.1.6 (14 August 2026) Atomic MongoDB session leases, state commits and releases
n8n-nodes-mongodb-vector-search 17 2.3.2 (3 August 2026) MongoDB vector search, standard queries and custom JSON aggregations
n8n-nodes-mongodb 17 0.1.11 (26 November 2024) n8n node for MongoDB
n8n-nodes-mongo-oid 15 1.0.3 (3 August 2025) MongoDB with BSON ObjectId
n8n-nodes-mongodb-objectid 15 2.0.0 (26 April 2025) MongoDB with BSON ObjectId
n8n-nodes-mongodb-ex 14 0.1.3 (4 September 2025) Extended MongoDB node with native query syntax, advanced update operators, update pipelines, arrayFilters and bulk operations
n8n-nodes-better-mongodb 10 1.0.0 (8 October 2026) Full CRUD, aggregation, bulk writes, transactions, indexes, Atlas and vector search, GridFS, BSON types and a change stream trigger

Versions and dates come from the npm registry. Weekly downloads: npm, last 7 days, adjusted for npm outage days.

ObjectId and dates in queries

n8n-nodes-mongo-oid and n8n-nodes-mongodb-objectid share the same short README: the same node as n8n’s MongoDB node, but parsing queries as BSON instead of JSON, so $oid and $date become real ObjectId and Date values. n8n-nodes-mongodb has only an update operation, with the filter written as JSON and the update fields mapped; its last release dates from November 2024.

Fuller MongoDB nodes

  • n8n-nodes-better-mongodb: two nodes on the official mongodb driver, using n8n’s built-in MongoDB credential. The action node covers documents (find, insert, update and replace one or many, delete, find-and-modify, count, distinct), aggregation with any pipeline stage, bulk writes including bulk upserts from input items, collections, indexes, Atlas and vector search, GridFS and BSON types such as ObjectId, Date and Decimal128. A trigger node listens to a change stream. Its README says it is for self-hosted n8n only.
  • n8n-nodes-mongodb-ex: calls itself a drop-in replacement for n8n’s MongoDB node for people who write MongoDB queries: native query syntax and aggregation pipelines, advanced update operators and update pipelines, arrayFilters and positional operators, bulk operations and type coercion.

AI search and session coordination

  • n8n-nodes-mongodb-vector-search: three nodes: MongoDB Vector Search for vector search, find and custom aggregations in ordinary workflows; MongoDB Vector Search (AI) as a vector store or tool for AI agents; and MongoDB AI Search, an agent tool that searches collections without embeddings, using automatic schema analysis.
  • n8n-nodes-atomic-mongodb-session-coordinator: the three atomic operations a session coordinator needs, per its README: Acquire Turn takes a session-scoped lease in MongoDB, Commit Turn checks the lease and state version before saving a state change, and Release Turn frees the lease. It uses the MongoDB credential already stored in n8n and is for self-hosted n8n.

Check each node page here for the latest release and, where it has one, its GitHub repository for open issues before you build on a package.

How to choose

  • Find, insert, update, delete or aggregate documents: the built-in MongoDB node, with nothing to install.
  • Queries that need real ObjectId or Date values: n8n-nodes-mongo-oid or n8n-nodes-mongodb-objectid, or the BSON types in n8n-nodes-better-mongodb.
  • Bulk writes, transactions, GridFS, or a workflow that starts when a collection changes: n8n-nodes-better-mongodb, on a self-hosted instance.
  • Update operators, update pipelines and arrayFilters written the MongoDB way: n8n-nodes-mongodb-ex.
  • RAG or an agent searching your collections: the built-in MongoDB Atlas Vector Store, or n8n-nodes-mongodb-vector-search for search without embeddings.

To install a package on a self-hosted instance, an owner or admin enters its npm name in Settings > Community Nodes; full steps are in How to Install n8n Community Nodes. On n8n Cloud only verified community nodes can be installed, see Verified vs Unverified n8n Community Nodes. Related: Redis in n8n and Qdrant in n8n.

FAQ

Does n8n have a MongoDB node?

Yes, three: MongoDB for documents and search indexes, MongoDB Atlas Vector Store for AI workflows, and MongoDB Chat Memory for AI agents.

How do I insert or update documents in MongoDB with n8n?

Use the built-in MongoDB node’s Insert or Update operation. For update operators, update pipelines or bulk writes, n8n-nodes-mongodb-ex and n8n-nodes-better-mongodb go further.

How do I query by ObjectId in n8n?

n8n-nodes-mongo-oid and n8n-nodes-mongodb-objectid parse queries as BSON, so {"_id": {"$oid": "..."}} becomes a real ObjectId. n8n-nodes-better-mongodb also handles BSON types.

What is the most used MongoDB community node?

n8n-nodes-atomic-mongodb-session-coordinator, with 27 weekly npm downloads on 28 October 2026.

From our network Other tools and sites we build