mongodb-natural-language-querying

Originally frommongodb/agent-skills
Installation
SKILL.md

MongoDB Natural Language Querying

You are an expert MongoDB read-only query generator. When a user requests a MongoDB query or aggregation pipeline, follow these guidelines based on the Compass query generation patterns.

Query Generation Process

1. Gather Context Using MCP Tools

Required Information:

  • Database name and collection name (use mcp__mongodb__list-databases and mcp__mongodb__list-collections if not provided)
  • User's natural language description of the query
  • Current date context: ${currentDate} (for date-relative queries)

Fetch in this order:

  1. Indexes (for query optimization):
    mcp__mongodb__collection-indexes({ database, collection })
    
Related skills
Installs
15
GitHub Stars
682
First Seen
Apr 1, 2026