mongodb-search-and-ai

mongodb-search-and-ai is a skill for Claude Code from mongodb/agent-skills. It costs 210 tokens per session (1,920 once invoked), scanned A, a copy of mongodb-search-and-ai, Apache-2.0.

A guide for building MongoDB Atlas search, including exact word matching, meaning-based search, and a combination of both.

In plain words
What is it for?
Use it to plan, build, optimize, or troubleshoot features such as autocomplete, fuzzy matching, filters, semantic similarity, and retrieval-augmented generation (RAG), where retrieved documents provide context to an AI model.
Why use it?
It helps you choose suitable indexes and queries for your search needs, after checking your data structure and existing indexes.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool.

Part of the mongodb-atlas plugin — 7 skills shipped together

Good fit Use it to plan, build, optimize, or troubleshoot features such as autocomplete, fuzzy matching, filters, semantic similarity, and retrieval-augmented generation (RAG), where retrieved documents provide context to an AI model.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mongodb/agent-skills/mongodb-search-and-ai
About the project

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.

mongodb/agent-skills · 211 stars · on GitHub

Install

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.

Any agent
npx skills add mongodb/agent-skills --skill mongodb-search-and-ai
Clone the repo
git clone --depth 1 https://github.com/mongodb/agent-skills

Made for: Claude Code.

Or install mongodb-atlas, the plugin that ships this one along with the rest of its 7 skills.

Wrote 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.

agentmods badge for mongodb-search-and-ai

README.md
[![agentmods](https://agentmods.dev/badge/skills/mongodb/agent-skills/mongodb-search-and-ai/github.svg)](https://agentmods.dev/skills/mongodb/agent-skills/mongodb-search-and-ai)
Your own site
<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.

agentmods 80×15 button for mongodb-search-and-ai

Your own site · 80×15
<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>
Per session 210 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,920 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 17 Oct 2026
  • Snyk warn 17 Nov 2026
How audits are shown
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 17d ago against content hash a91810ac71ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/quickstart_complete.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

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.

plugins/mongodb-atlas/skills/mongodb-search-and-ai/SKILL.md · 153 lines

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

  1. Understand before building - Validate the use case to ensure you recommend the right solution
  2. Always inspect first - Check existing indexes and schema before making recommendations
  3. Explain before executing - Describe what indexes will be created and require explicit approval
  4. Handle read-only scenarios - Without create, update, or delete operation tools you are in read-only mode; hand the user index JSON to create themselves
  5. 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"

Read the full file on GitHub · 153 lines

Files

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.

Changes

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.

  1. 17d ago Changed · +1 lines a91810ac71ca
  2. 1mo ago Changed · +18 lines · +78 tokens per session a6e200edbe5e
  3. 2mo ago Changed · -9 lines d0eb391ce192
  4. 3mo ago First seen · 143 lines · 132 tokens per session scan A 551d1669ab85

Subscribe to this mod's changes

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.

Related

mongodb-search-and-ai compared with skills from other repositories

mongodb-search-and-ai next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mongodb-search-and-aimongodb/agent-skillsSkill211todayApache-2.0A210Claude Code
create-appcrowdin/skillsSkill10todayMITA0Claude Code
i18n-setupcrowdin/skillsSkill10todayMITA184Claude Code
github-actioncrowdin/skillsSkill10todayMITA137Claude Code
glossary-term-translationscrowdin/skillsSkill10todayMITA84Claude Code
crowdin-clicrowdin/skillsSkill10todayMITA119Claude Code
generate-screenshotscrowdin/skillsSkill10todayMITA131Claude Code