Mindsdb MCP Skill
LeoYeAI/openclaw-master-skills
MindsDB MCP服务器交互技能,用于通过自然语言查询和操作200+企业级数据源。当用户需要查询数据库、分析数据、创建AI模型、连接数据源(MySQL、PostgreSQL、MongoDB、Excel、CSV、Gmail、Slack等)、执行SQL查询、进行数据预测、构建知识库(RAG)、智能问答、文档检索或任何与数据库交互的任务时使用此技能。即使没有明确提到MindsDB,只要涉及数据库操…
Help with MongoDB query optimization and indexing. An agent skill from mongodb/agent-skills.
$ npx skills add mongodb/agent-skills --skill mongodb-query-optimizer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install mongodb/agent-skills mongodb-query-optimizer --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/mongodb/agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/mongodb-query-optimizer .claude/skills/mongodb-query-optimizer && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "mongodb-query-optimizer" agent skill from https://github.com/mongodb/agent-skills/tree/main/skills/mongodb-query-optimizer into .claude/skills/mongodb-query-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mongodb-query-optimizer", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/mongodb/agent-skills/tree/main/skills/mongodb-query-optimizerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add mongodb/agent-skills --skill mongodb-query-optimizer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install mongodb/agent-skills mongodb-query-optimizer --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mongodb/agent-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/mongodb-query-optimizer .agents/skills/mongodb-query-optimizer && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "mongodb-query-optimizer" agent skill from https://github.com/mongodb/agent-skills/tree/main/skills/mongodb-query-optimizer into .agents/skills/mongodb-query-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mongodb-query-optimizer", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mongodb/agent-skills --skill mongodb-query-optimizer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install mongodb/agent-skills mongodb-query-optimizer --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mongodb/agent-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/mongodb-query-optimizer .cursor/skills/mongodb-query-optimizer && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "mongodb-query-optimizer" agent skill from https://github.com/mongodb/agent-skills/tree/main/skills/mongodb-query-optimizer into .cursor/skills/mongodb-query-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mongodb-query-optimizer", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/mongodb/agent-skills.git --path skills/mongodb-query-optimizer--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add mongodb/agent-skills --skill mongodb-query-optimizer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install mongodb/agent-skills mongodb-query-optimizer --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mongodb/agent-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/mongodb-query-optimizer .gemini/skills/mongodb-query-optimizer && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "mongodb-query-optimizer" agent skill from https://github.com/mongodb/agent-skills/tree/main/skills/mongodb-query-optimizer into .gemini/skills/mongodb-query-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mongodb-query-optimizer", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install mongodb/agent-skills mongodb-query-optimizerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add mongodb/agent-skills --skill mongodb-query-optimizer -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/mongodb/agent-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/mongodb-query-optimizer .github/skills/mongodb-query-optimizer && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "mongodb-query-optimizer" agent skill from https://github.com/mongodb/agent-skills/tree/main/skills/mongodb-query-optimizer into .github/skills/mongodb-query-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mongodb-query-optimizer", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mongodb/agent-skills --skill mongodb-query-optimizer -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install mongodb/agent-skills mongodb-query-optimizer --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mongodb/agent-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/mongodb-query-optimizer .opencode/skills/mongodb-query-optimizer && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "mongodb-query-optimizer" agent skill from https://github.com/mongodb/agent-skills/tree/main/skills/mongodb-query-optimizer into .opencode/skills/mongodb-query-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mongodb-query-optimizer", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
mongodb-query-optimizerHelp with MongoDB query optimization and indexing. An agent skill from mongodb/agent-skills.
Mongodb Query Optimizer is an agent skill from mongodb/agent-skills, published by the product's own GitHub organization. Help with MongoDB query optimization and indexing. Use only when the user asks for optimization or performance: "How do I optimize this query?", "How do I index this?", "Why is this query slow?", "Can you fix my slow queries?", "What are the slow queries on my cluster?", etc. Do not invoke for general MongoDB query writing unless user asks for performance or index help. Prefer indexing as optimization strategy. Use MongoDB MCP when available.
Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/aggregation-optimization.md`, `references/antipattern-examples.md` and `references/core-indexing-principles.md`). Compatibility notes: Best with MongoDB MCP server. Uses collection-indexes and explain when the connection string works; uses Atlas Performance Advisor when Atlas API is…
It sits in Databases, covering NoSQL databases, Query optimization and MCP servers. It works with MongoDB and Model Context Protocol. The repository describes itself as: Use the official MongoDB Skills with your favorite coding agent to build faster. The licence is Apache-2.0.
2 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 18b014e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
mongodb.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Best with MongoDB MCP server. Uses collection-indexes and explain when the connection string works; uses Atlas Performance Advisor when Atlas API is configured. Without either, suggest indexes from query shape only. User creates indexes in Atlas or migrations unless tooling allows otherwise.
From compatibility in the SKILL.md frontmatter.
Mongodb Query Optimizer loads about 2.6k tokens when it runs, and up to ~6.3k if it reads all its reference files. Until then it costs about 118 tokens; SKILL.md has 1,228 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from mongodb/agent-skills at commit 18b014e, republished under its Apache-2.0 licence (© mongodb). 1,228 words, ~2,574 tokens.
.claude/skills/mongodb-query-optimizer/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.Invoke only when the user wants:
Do not invoke for routine query authoring unless the user has requested help with optimization, slow queries, or indexing.
If the user wants to examine slow queries, or is looking for general performance suggestions (not regarding any particular query):
If Atlas MCP Server for Atlas is not configured or you don’t have enough information to run atlas-get-performance-advisor against the correct cluster, tell the user that general performance analysis requires Atlas MCP Server configuration with API credentials, and suggest they configure it or ask about a specific query instead.
If the user is asking about a particular query:
Then make an optimization suggestion based on collected information and MongoDB best practices and examples from reference files. Prefer creating an index that fully covers the query if possible. If you cannot use MongoDB MCP Server then still try to make a suggestion.
How to invoke. Call the MongoDB MCP server with the exact tool name as toolName and a single arguments object as arguments. Do not pass the tool name as an option, query param, or nested key; pass it as the MCP tool name and the parameters as the arguments object. Full MCP Server tool reference: MongoDB MCP Server Tools.
Database tools (when the MCP cluster connection works):
| Tool name (exact) | Arguments object |
|---|---|
collection-indexes | { "database": "<db>", "collection": "<coll>" } — both required strings. |
explain | { "database": "<db>", "collection": "<coll>", "method": [ { "name": "find", "arguments": { "filter": {...}, "sort": {...}, "limit": N } } ], "verbosity": "executionStats" }. method is an array of one object: name is "find", "aggregate", or "count"; arguments holds that method's params (e.g. find: filter, sort, limit; aggregate: pipeline; count: query). Optional verbosity: "queryPlanner" (default), "executionStats", "queryPlannerExtended", "allPlansExecution". |
find | { "database": "<db>", "collection": "<coll>", "filter": {...}, "projection": {...}, "sort": {...}, "limit": N } — database, collection, and filter are required. Optional: projection, sort, limit. |
Atlas tools (when Atlas API credentials are configured):
| Tool name (exact) | Arguments object |
|---|---|
atlas-list-projects | {} or { "orgId": "<24-char hex>" }. Returns projects with their IDs; use to get projectId for Performance Advisor. |
atlas-get-performance-advisor | Required: "projectId" (24-character hex string), "clusterName" (string, 1–64 chars, alphanumeric/underscore/dash). Optional: "operations" — array of strings from "suggestedIndexes", "dropIndexSuggestions", "slowQueryLogs", "schemaSuggestions" (request only what you need); for slowQueryLogs only: "since" (ISO 8601 date-time), "namespaces" (array of "db.coll" strings). |
For a user question, try to fetch information from both the connection string and Atlas API related to the query you are optimizing.
Typical flow: call collection-indexes → explain → find (sample doc).
collection-indexes — Use the result's classicIndexes (each has name, key) to see if the query can already use an existing index.explain — Run in "queryPlanner" mode first to check for COLLSCAN. If the query uses an index or the collection is very small, run again with "executionStats" (10-second timeout) to get docs scanned vs. returned.If you need a project ID, call atlas-list-projects first. Then call atlas-get-performance-advisor with only the operations you need:
| Operation value | Use when |
|---|---|
slowQueryLogs | Fetching slow queries—prioritize by slowest and most frequent. Optional: namespaces to scope to a collection; since for a time window. |
suggestedIndexes | Fetching cluster index recommendations |
dropIndexSuggestions | User asks what to remove or reduce index overhead |
schemaSuggestions | User asks for schema/query-structure advice alongside indexes |
Do not pass the MCP tool name as an operations value—operations is a separate argument listing what data to fetch.
User: "Why is this query slow? db.orders.find({status: 'shipped', region: 'US'}).sort({date: -1})"
If MCP db connection is configured and the database + collection names are known, run steps 1–3. Otherwise skip to step 4.
Check existing collection indexes:
collection-indexes with database=store, collection=orders{_id: 1}, {status: 1}, {date: -1}Run explain:
explain with method=find, filter={status: 'shipped', region: 'US'}, sort={date: -1}, verbosity=queryPlanner and executionStats{status: 1} index, then in-memory SORT, totalKeysExamined: 50000, nReturned: 100Run find:
find with limit=1 to fetch a sample document to impute the schema.If MCP Atlas connection is configured, run step 4. Otherwise skip to step 5.
Run atlas-get-performance-advisor:
store, collection=orders in the past 24 hoursDiagnose: Based on explain output and slow query logs, this query targets 100 docs but scans 50K index entries (poor selectivity: 0.002). In-memory sort adds overhead. Index doesn't support both filter fields or sort.
Recommend: Create compound index {status: 1, region: 1, date: -1} following ESR (two equality fields, then sort). This eliminates in-memory sort and improves selectivity by filtering on both status and region.
If the MongoDB MCP server is not set up, follow best indexing practices.
User: "Can you help with optimizing slow queries on my cluster?”
{status: 1, region: 1, date: -1} on the db.orders collection to optimize queries such as find({status: 'shipped', region: 'US'}).sort({date: -1})Examine all performance advisor output as well as slow query logs. Provide information on what is being improved and why, and focus on suggestions that have the potential for greatest impact (e.g., indexes that affect the most queries, or queries that have the worst performance).
Before beginning diagnosis and recommendation, load reference files.
Always load:
references/core-indexing-principles.mdreferences/antipattern-examples.mdConditionally load these files:
references/aggregation-optimization.mdreferences/update-query-examples.md for oplog-efficient updates and common update anti-patterns© mongodb, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files (references) in skills/mongodb-query-optimizer of mongodb/agent-skills.
Open the folder on GitHubat commit 18b014e
We found 6 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in mongodb/agent-skills, which our catalogue first saw on October 7, 2026.
Mongodb Query Optimizer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Mongodb Query Optimizer this skillmongodb/agent-skills | 190 | 2 repos | ~2.6k | Automated safety check: Pass | Apache-2.0 | |
| Mindsdb MCP SkillLeoYeAI/openclaw-master-skills | 2.2k | — | ~2.5k | Automated safety check: Pass | MIT | |
| Pytorch Clickhousepytorch/test-infra | 113 | — | ~2.8k | Automated safety check: Pass | Custom licence | |
| DB SculptorEliasOulkadi/shokunin | 114 | — | ~3.1k | Automated safety check: Notes | MIT | |
| Database Domain Specialistmodu-ai/moai-adk | 1.2k | — | ~2.8k | Automated safety check: Pass | Apache-2.0 | |
| Amazon Documentdbaws/agent-toolkit-for-aws | 2.8k | — | ~5.9k | Automated safety check: Pass | Apache-2.0 |
LeoYeAI/openclaw-master-skills
MindsDB MCP服务器交互技能,用于通过自然语言查询和操作200+企业级数据源。当用户需要查询数据库、分析数据、创建AI模型、连接数据源(MySQL、PostgreSQL、MongoDB、Excel、CSV、Gmail、Slack等)、执行SQL查询、进行数据预测、构建知识库(RAG)、智能问答、文档检索或任何与数据库交互的任务时使用此技能。即使没有明确提到MindsDB,只要涉及数据库操…
pytorch/test-infra
Load this FIRST whenever working with PyTorch CI data (any pytorch/ org repo), the torchci/HUD codebase, or the PyTorch HUD ClickHouse database.
EliasOulkadi/shokunin
Design database schemas with Prisma/Drizzle, PostgreSQL index strategy (B-tree, GIN, GiST, BRIN, Hash), query optimization (EXPLAIN ANALYZE), migration safety (expand/contract, zero-downtime), and…
modu-ai/moai-adk
Database guidance for PostgreSQL, MongoDB, Redis and Oracle plus Neon, Supabase and Firestore: schema design, indexing, query tuning and cloud database choice.
aws/agent-toolkit-for-aws
Manages Amazon DocumentDB end-to-end — serverless-on-8.0 cluster setup, TLS/VPC/driver config, flexible-schema and vector-search data modeling, MongoDB compatibility assessment, DMS-based migration…
rand/cc-polymath
Automatically discover database skills when working with SQL, PostgreSQL, MongoDB, Redis, database schema design, query optimization, migrations, connection pooling, ORMs, or database selection.
mongodb/agent-skills
Review a proposed Agent Skill for structural validity and content quality before publishing.
mongodb/agent-skills
Guide users through configuring key MongoDB MCP server options.
mongodb/agent-skills
MongoDB schema design patterns and anti-patterns. An agent skill from mongodb/agent-skills.
mongodb/agent-skills
Generate read-only MongoDB queries (find) or aggregation pipelines using natural language, with collection schema context and sample documents.
mongodb/agent-skills
Optimize MongoDB client connection configuration (pools, timeouts, patterns) for any supported driver language.
mongodb/agent-skills
Guides MongoDB users through implementing and optimizing Atlas Search (full-text), Vector Search (semantic), and Hybrid Search solutions.
Works with
Categories
Help with MongoDB query optimization and indexing. An agent skill from mongodb/agent-skills. Mongodb Query Optimizer is an agent skill from mongodb/agent-skills, published by the product's own GitHub organization. Help with MongoDB query optimization and indexing.
Mongodb Query Optimizer fits situations like: asks for optimization; performance: How do I optimize this query?; how do I index this?; why is this query slow?.
Run `npx skills add mongodb/agent-skills --skill mongodb-query-optimizer -a claude-code`. Or copy the skill folder (skills/mongodb-query-optimizer in mongodb/agent-skills) into .claude/skills/mongodb-query-optimizer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add mongodb/agent-skills --skill mongodb-query-optimizer -a codex`. Or copy the skill folder (skills/mongodb-query-optimizer in mongodb/agent-skills) into .agents/skills/mongodb-query-optimizer in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mongodb/agent-skills --skill mongodb-query-optimizer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mongodb-query-optimizer, .gemini/skills/mongodb-query-optimizer, .github/skills/mongodb-query-optimizer and .opencode/skills/mongodb-query-optimizer in your project.
SKILL.md names no scripts, command-line tools or credentials: Mongodb Query Optimizer is instructions for the agent only. Compatibility (from SKILL.md): Best with MongoDB MCP server. Uses collection-indexes and explain when the connection string works; uses Atlas Performance Advisor when Atlas API is configured. Without either, suggest indexes from query shape only. User creates indexes in Atlas or migrations unless tooling allows otherwise..
SKILL.md names 1 domain. As links in the text: mongodb.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Mongodb Query Optimizer is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.7k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Mongodb Query Optimizer: Mindsdb MCP Skill (LeoYeAI/openclaw-master-skills, 2.2k stars), Pytorch Clickhouse (pytorch/test-infra, 113 stars), DB Sculptor (EliasOulkadi/shokunin, 114 stars) and Database Domain Specialist (modu-ai/moai-adk, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
mongodb (a GitHub organization, an official publisher) maintains it in mongodb/agent-skills, which has 190 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 6, 2026.
Source: mongodb/agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.