Databases & dataApache-2.0

MongoDB Query Optimizer

by MongoDB (opens in a new tab) mongodb/agent-skills

Diagnoses slow MongoDB queries and recommends high-impact index and query changes.

Installation

Skills CLI

Skills CLI command
npx skills@latest add mongodb/agent-skills --skill mongodb-query-optimizer

Requires Node.js and npm. Choose your agents in the installer; add -g for a global installation.

Fieldbook review

Reviewed 27 Sept 2026

Uses MongoDB MCP explain, index, sample-document, and Atlas Performance Advisor data when configured, then ranks evidence-backed improvements. Atlas analysis needs API credentials and cluster access; index creation is withheld until the user approves because it changes database state and write overhead.

  • LicenceApache-2.0
  • FrontmatterValid name and description
  • Risky patternsNone found
  • Size150 lines
  • Last checked27 Sept 2026 · 62a5bff5f4050596baf63a60856d8df52dddcce3e7ba21461885476a88be4873

What it can touch

  • Needs MCP

    Requires an MCP server to be configured.

  • Network

    Reaches external services or the web.

Read the source

Fieldbook links to the original instead of copying it, so you always read the version you install.

skills/mongodb-query-optimizer/SKILL.md on GitHub (opens in a new tab)