This skill should be used when user asks to "query MongoDB", "show database collections", "get collection schema", "list MongoDB databases", "search records in MongoDB", or "check database indexes".
Inherits all available tools
Additional assets for this skill
This skill inherits all available tools. When active, it can use any tool Claude has access to.
This MCP operates in READ-ONLY mode. No write, update, or delete operations are possible.
Embed when:
Reference when:
Subset pattern: Store frequently accessed subset in parent, full data in separate collection.
Bucket pattern: Group time-series data into buckets (e.g., hourly readings in one document).
Computed pattern: Store pre-computed values for expensive calculations.
For compound indexes, order fields by:
$match and $project early to reduce documents$limit early when possible$lookup on large collections without indexes$facet for multiple aggregations in one query// Filter documents
{ $match: { status: "active" } }
// Reshape documents
{ $project: { name: 1, total: { $sum: "$items.price" } } }
// Group and aggregate
{ $group: { _id: "$category", count: { $sum: 1 } } }
// Sort results
{ $sort: { count: -1 } }
// Join collections
{ $lookup: { from: "orders", localField: "_id", foreignField: "userId", as: "orders" } }
mongodb+srv://user:pass@cluster.mongodb.net/databasemongodb://localhost:27017/databasemongodb://host1,host2,host3/database?replicaSet=rs0