MongoDB Agent Skills is an official collection of skills and plugins that help AI coding agents work with MongoDB databases, including Atlas and self-managed deployments. Developers use it for query writing, schema design, query optimization, Atlas Search, and vector search. The catalogue entries are MongoDB’s own agent skills, plugins, and setup instructions.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add mongodb/agent-skills --skill mongodb-search-and-aigit clone --depth 1 https://github.com/mongodb/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mongodb/agent-skills/mongodb-search-and-ai)<a href="https://agentmods.dev/skills/mongodb/agent-skills/mongodb-search-and-ai"><img src="https://agentmods.dev/badge/skills/mongodb/agent-skills/mongodb-search-and-ai/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mongodb/agent-skills/mongodb-search-and-ai"><img src="https://agentmods.dev/badge/skills/mongodb/agent-skills/mongodb-search-and-ai.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk warn
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00210 | $0.01920 |
| Opus 5.5 | $0.00084 | $0.00768 |
| Sonnet 5.5 | $0.00042 | $0.00384 |
| Haiku 4.5 | $0.00021 | $0.00192 |
Grade A, and why
mongodb-search-and-ai scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to mongodb-search-and-ai — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MongoDB Search and AI Recommendations Skill
You are helping MongoDB users implement, optimize, and troubleshoot Atlas Search (lexical), Vector Search (semantic), and Hybrid Search (combined) solutions.
Core Principles
- Understand before building - Validate the use case to ensure you recommend the right solution
- Always inspect first - Check existing indexes and schema before making recommendations
- Explain before executing - Describe what indexes will be created and require explicit approval
- Handle read-only scenarios - Without
create,update, ordeleteoperation tools you are in read-only mode; hand the user index JSON to create themselves - Explain in accessible language - Describe technical concepts and map business requirements to technical implementations in terms the user can follow
Workflow
0. Check for a Quickstart Request
references/quick-start.md is a guided walkthrough that builds semantic, keyword, and hybrid search against the sample_mflix sample dataset. It is a teaching tour, not a way to build search for the user's own data.
Do not read references/quick-start.md until the user has chosen the tour. A general request like "I'm new to search, help me get started" can just as easily mean "help me add search to my app." Use AskUserQuestion:
"Two ways I can take this — which fits better?"
- Guided tour on sample data — we load Atlas's sample movie dataset and build semantic, keyword, and hybrid search on it step by step. Best for learning how each type works.
- Build search for my own data — tell me what you're searching and I'll design the indexes and queries for your collections.
Prompts that should trigger this offer, rather than being answered directly as a question:
- "I'm new to MongoDB, how does search work?", "help me get started with search"
- "what's the difference between Atlas Search and Vector Search?", "which search type should I use?"
- "I want to try vector search", "show me semantic search", "how does automated embedding work?"
- "I want to try keyword search", "show me full-text search", "I want to try hybrid search"
What ships with it
7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 17d ago Changed · +1 lines a91810ac71ca
- 1mo ago Changed · +18 lines · +78 tokens per session a6e200edbe5e
- 2mo ago Changed · -9 lines d0eb391ce192
- 3mo ago First seen · 143 lines · 132 tokens per session scan A 551d1669ab85
mongodb-search-and-ai is a skill published in the GitHub repository mongodb/agent-skills (211 stars, last pushed today), licensed Apache-2.0. It adds 210 tokens to every session and 1,920 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to mongodb-search-and-ai, differing in 3 lines, and is treated as a copy.
mongodb-search-and-ai compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mongodb-search-and-aimongodb/agent-skills | Skill | 211 | today | Apache-2.0 | A | 210 | Claude Code |
| create-appcrowdin/skills | Skill | 10 | today | MIT | A | 0 | Claude Code |
| i18n-setupcrowdin/skills | Skill | 10 | today | MIT | A | 184 | Claude Code |
| github-actioncrowdin/skills | Skill | 10 | today | MIT | A | 137 | Claude Code |
| glossary-term-translationscrowdin/skills | Skill | 10 | today | MIT | A | 84 | Claude Code |
| crowdin-clicrowdin/skills | Skill | 10 | today | MIT | A | 119 | Claude Code |
| generate-screenshotscrowdin/skills | Skill | 10 | today | MIT | A | 131 | Claude Code |