Overview
MongoDB tool allows you to query and manage MongoDB NoSQL databases directly from your AI agents.Installation
Environment Variables
Quick Start
Usage with Agent
Available Methods
find(collection, query, limit=10)
Find documents matching a query.insert(collection, document)
Insert a document.update(collection, query, update)
Update documents.delete(collection, query)
Delete documents.list_collections()
List all collections.Docker Setup
Common Errors
| Error | Cause | Solution |
|---|---|---|
pymongo not installed | Missing dependency | Run pip install pymongo |
Connection refused | MongoDB not running | Start MongoDB server |
Authentication failed | Wrong credentials | Check connection string |
Related Tools
- PostgreSQL - SQL database
- Redis - Key-value store
- DynamoDB - AWS NoSQL

