Mongodb
Connects, queries, and updates MongoDB databases using secure credentials and optimized requests via a simple interface.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add bagelhole-mongodb npx -- -y @trustedskills/bagelhole-mongodb
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"bagelhole-mongodb": {
"command": "npx",
"args": [
"-y",
"@trustedskills/bagelhole-mongodb"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to interact with MongoDB databases. It enables querying data, inserting new documents, and updating existing records within a specified database. The agent can also retrieve schema information for better understanding of the database structure.
When to use it
- Data Extraction: Retrieve specific product details from an e-commerce database based on user requests.
- Log Analysis: Query log data stored in MongoDB to identify error patterns or security incidents.
- Inventory Management: Update stock levels for products in a warehouse management system.
- Report Generation: Pull relevant data from various collections to create custom reports.
Key capabilities
- Querying data using MongoDB query language (MQL)
- Inserting new documents into collections
- Updating existing documents within collections
- Retrieving schema information for database objects
Example prompts
- "Find all customers in the 'customers' collection who live in California."
- "Add a new product to the 'products' collection with name 'Widget', price 19.99, and quantity 100."
- “What is the schema for the ‘orders’ collection?”
Tips & gotchas
- Ensure the AI agent has appropriate credentials (username/password or connection string) to access the MongoDB database.
- Be mindful of data privacy and security when querying sensitive information.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.