M

MongoDB

by MongoDB

Connect to MongoDB databases to store, query, and manage document-based data

DatabasesFreeBasic authdatabasenosqldatastoragedocumentmongodb

How agents use MongoDB

  • ✓Agent finds documents matching a condition to retrieve relevant records before processing or responding
  • ✓Agent inserts a new document to store workflow outputs, events, or agent-generated content
  • ✓Agent updates a document's fields to reflect the current state of a task or entity in the workflow
  • ✓Agent runs an aggregation pipeline to compute metrics or summaries for a reporting or decision step
  • ✓Agent uses MongoDB as a flexible store for semi-structured data like agent memory, logs, or rich profiles

Agent actions

Find DocumentsQuery and retrieve documents from a collection

Inputs: collection, filter, projection, sort, limit, skip

Returns: documents, count

Find One DocumentFind a single document matching the criteria

Inputs: collection, filter, projection

Returns: document

Insert One DocumentInsert a single document into a collection

Inputs: collection, document

Returns: insertedId, acknowledged

Insert Many DocumentsInsert multiple documents into a collection

Inputs: collection, documents, ordered

Returns: insertedIds, insertedCount

Update One DocumentUpdate a single document matching the filter

Inputs: collection, filter, update, upsert

Returns: matchedCount, modifiedCount, upsertedId

Update Many DocumentsUpdate multiple documents matching the filter

Inputs: collection, filter, update

Returns: matchedCount, modifiedCount

Delete One DocumentDelete a single document matching the filter

Inputs: collection, filter

Returns: deletedCount

Delete Many DocumentsDelete multiple documents matching the filter

Inputs: collection, filter

Returns: deletedCount

Aggregate PipelineExecute an aggregation pipeline on a collection

Inputs: collection, pipeline

Returns: results

Count DocumentsCount documents matching a filter

Inputs: collection, filter

Returns: count

Create IndexCreate an index on a collection

Inputs: collection, keys, options

Returns: indexName

Bulk Write OperationsExecute multiple write operations in bulk

Inputs: collection, operations, ordered

Returns: insertedCount, modifiedCount, deletedCount, upsertedCount

Replace One DocumentReplace a single document with a new one

Inputs: collection, filter, replacement, upsert

Returns: matchedCount, modifiedCount, upsertedId

Get Distinct ValuesGet distinct values for a field

Inputs: collection, field, filter

Returns: values

Example workflows

1

User profile management

Store and query user profiles with flexible schema

2

Content management system

Manage articles, posts, and media with MongoDB

3

Analytics and logging

Store and analyze event logs and metrics

4

E-commerce product catalog

Manage product data with complex nested structures

About MongoDB

Vendor
MongoDB
Pricing Always review details with the vendor
Free — MongoDB Community Edition is free. MongoDB Atlas has free tier with usage-based pricing.
Authentication
Basic auth
Compatible nodes
AgentResourceInputOutput

Put MongoDB behind your AI agent

Set up MongoDB alongside your other tools in the planner — no code — so AI can act on it for your customers.

Open the planner

Related Databases tools