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
User profile management
Store and query user profiles with flexible schema
Content management system
Manage articles, posts, and media with MongoDB
Analytics and logging
Store and analyze event logs and metrics
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
Build an AI workflow with MongoDB
Use the Agentic Planner to design, visualize, and connect MongoDB with your other tools.
Open Agentic PlannerRelated 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.