🍃
MongoDB
Database Database & StorageInstall Command
npx clawhub@latest install mongodb
Installation Guide
1
Check Environment
Make sure Node.js 22+ and OpenClaw are installed. Run openclaw --version in your terminal to verify.
2
Run Installation
Run the install command above in your terminal. ClawHub will automatically download and install MongoDB to the ~/.openclaw/skills/ directory.
3
Verify Installation
Run openclaw skills list to check your installed skills and confirm MongoDB appears in the list.
4
Configure (Optional)
Follow the configuration instructions in the description below to add skill settings to ~/.config/openclaw/openclaw.json5.
Manual Installation: Copy the Skill folder to
~/.openclaw/skills/ or the skills/ directory in your project root. Make sure the folder contains a SKILL.md file.
Document Queries
Aggregation Analysis
Collection Management
Detailed Description
The MongoDB skill lets OpenClaw operate on MongoDB document databases, performing NoSQL queries and data analysis with natural language.
Core Features
- Document Queries: Natural language to MongoDB query syntax
- Aggregation Pipelines: Build aggregation pipelines for complex data analysis
- Collection Management: View collection lists, document counts, and index information
- Document Operations: Insert, update, and delete documents
- Result Formatting: Display query results in table or JSON format
Configuration
{
skills: {
mongodb: {
uri: "mongodb://localhost:27017",
database: "mydb",
readOnly: true
}
}
}
Use Cases
- "Query products in the products collection with a price greater than 100"
- "Count articles by category in the articles collection"
- "What collections are in the database? How many documents in each?"
- "Find the 10 most recently created user documents"