🍃
MongoDB Query
Database Developer ToolsInstall Command
npx clawhub@latest install mongodb-query
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 Query to the ~/.openclaw/skills/ directory.
3
Verify Installation
Run openclaw skills list to check your installed skills and confirm MongoDB Query 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.
Aggregation Pipelines
Index Optimization
Performance Analysis
Detailed Description
MongoDB Query provides advanced MongoDB database operation capabilities, from complex queries to performance optimization, completing professional database management tasks through natural language.
Core Features
- Smart Queries: Describe query requirements in natural language, automatically converting to MongoDB query statements
- Aggregation Pipelines: Build complex aggregation pipelines for data analysis and statistics
- Index Management: Analyze query patterns to recommend indexes, create and manage database indexes
- Performance Analysis: Analyze slow query logs and provide performance optimization recommendations
Configuration
{
skills: {
"mongodb-query": {
connectionString: "mongodb://localhost:27017",
defaultDatabase: "mydb",
maxDocuments: 1000, // Max documents returned per query
explainQueries: true // Auto-analyze query execution plans
}
}
}
Use Cases
- Query MongoDB data using natural language without memorizing query syntax
- Build complex data statistics and analysis aggregation pipelines
- Analyze and optimize slow queries to improve database performance
- Perform data backup, migration, and format conversion