mongodb-query-optimizer
MongoDB's skill for query performance and indexing, meant to be used only when the user asks why something is slow or how to speed it up.
What the skill teaches
MongoDB's skill for query performance and indexing, meant to be used only when the user asks why something is slow or how to speed it up. With the MongoDB MCP Server and a working connection the agent reads existing indexes and explain output; with Atlas API credentials it can pull slow queries and index suggestions from Atlas Performance Advisor. Without either it recommends indexes from the shape of the query alone. It favours indexing as the fix and leaves creating the index to the user or their migrations.
Capabilities
- Explain why a MongoDB query is slow
- Recommend indexes for a query shape
- List slow queries from Atlas Performance Advisor
- Review aggregation pipelines for performance
About
- Publisher
- MongoDB
- Tool
- MongoDB
Install
- Run this to add it to Any client:
npx skills add mongodb/agent-skills
What's inside
- references/aggregation-optimization.md
- references/antipattern-examples.md
- references/core-indexing-principles.md
- references/update-query-examples.md
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | MongoDB | |
| Publisher | MongoDB | source |
| Official status | OfficialMongoDB docs list this skill and link the mongodb/agent-skills repository | source |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | Apache-2.0 | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 10, 2026197 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository |
Sources
- Skill file (SKILL.md)github.com/mongodb/agent-skills · Backs: LicenceNov 10, 2026
- Web pagemongodb.com · Backs: Official statusNov 12, 2026
- GitHub repositorygithub.com/mongodb/agent-skills · Backs: Publisher, Activity, LicenceNov 11, 2026
- Folder in the repository (mongodb-query-optimizer)github.com/mongodb/agent-skills · Backs: Includes scriptsNov 10, 2026