MongoDB
by MongoDB
Connect to MongoDB databases to store, query, and manage document-based data
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
Inputs: collection, filter, projection, sort, limit, skip
Returns: documents, count
Inputs: collection, filter, projection
Returns: document
Inputs: collection, document
Returns: insertedId, acknowledged
Inputs: collection, documents, ordered
Returns: insertedIds, insertedCount
Inputs: collection, filter, update, upsert
Returns: matchedCount, modifiedCount, upsertedId
Inputs: collection, filter, update
Returns: matchedCount, modifiedCount
Inputs: collection, filter
Returns: deletedCount
Inputs: collection, filter
Returns: deletedCount
Inputs: collection, pipeline
Returns: results
Inputs: collection, filter
Returns: count
Inputs: collection, keys, options
Returns: indexName
Inputs: collection, operations, ordered
Returns: insertedCount, modifiedCount, deletedCount, upsertedCount
Inputs: collection, filter, replacement, upsert
Returns: matchedCount, modifiedCount, upsertedId
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
- Website
- https://www.mongodb.com
Put MongoDB behind your AI agent
Add MongoDB alongside your other tools in the planner, without code, and map out how your AI agent works with it.
Open the planner →Questions about 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
Find Documents, Find One Document, Insert One Document, Insert Many Documents, Update One Document, Update Many Documents, Delete One Document, Delete Many Documents, Aggregate Pipeline, Count Documents, Create Index, Bulk Write Operations, Replace One Document, Get Distinct Values
You add MongoDB in the Fugentic planner, a no-code canvas for mapping out what your business does and which tools sit behind it. It shows how an AI agent would work with MongoDB. Try it free at fugentic.ai/solutions/agentic-planner.
Related Databases tools
MySQL
Connect to MySQL databases to query, insert, update, and manage data
PostgreSQL
Connect to PostgreSQL databases to query, insert, update, and manage data
Pinecone
Upsert and query vector embeddings in Pinecone for retrieval-augmented generation (RAG), semantic search, and similarity matching in agent workflows.