Generated banner for Mongodb Search And AI
Generated logo for Mongodb Search And AI

Mongodb Search And AI

MongoDBOfficialPublished by MongoDB

  • Skill
  • Tool integration
  • Data and AI
  • Apache-2.0
  • Low risk
  • Has scripts

From the author

Covers everything about search in MongoDB: Atlas Search (full-text), Vector Search (semantic), and Hybrid Search. Use this skill for ANY question about MongoDB search, including open-ended and explanatory ones asked before the user has any data or use case — 'how does search work in MongoDB?', 'I'm new to MongoDB search, where do I start?', 'what's the difference between Atlas Search and Vector Search?', 'which search type should I use?', 'what is vector search?', 'how does automated embedding work?', 'can you explain hybrid search?'. Do not answer these from general knowledge; use this skill. Also use to build search features: full-text queries, autocomplete, fuzzy matching, faceted search, semantic similarity, embeddings, RAG, text containment or substring matching ('contains', 'includes'), case-insensitive or multi-field text search, and filtering across many fields. Provides workflows for choosing a search type, creating indexes, writing queries, and optimizing performance via the MongoDB MCP server.
— the description by MongoDB

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides a comprehensive framework for integrating search capabilities into MongoDB applications. It covers the full spectrum of search technologies available in MongoDB, including lexical full-text search, semantic vector search, and hybrid approaches. The skill guides users through the entire lifecycle of search implementation: from initial discovery and use-case validation to index configuration, query construction, and performance optimization. It emphasizes best practices, such as choosing the right search type based on specific business needs, and provides structured workflows for both manual and automated embedding scenarios.

What it does

  • Helps users choose between Atlas Search, Vector Search, and Hybrid Search.
  • Provides workflows for creating and managing search indexes.
  • Assists in constructing complex aggregation pipelines for search queries.
  • Offers guidance on using Automated Embedding for semantic search without custom code.
  • Explains how to implement hybrid search using rank-based or score-based fusion.
  • Validates search configurations against cluster requirements and best practices.

When to use it

  • When you need to add full-text, semantic, or hybrid search to a MongoDB collection.
  • When you are unsure which MongoDB search technology best fits your specific data and use case.
  • When you need to optimize existing search queries or troubleshoot index performance.
  • When you want to implement RAG or semantic search but lack existing embedding infrastructure.
  • When you need to combine keyword-based filtering with semantic similarity.

Advantages

  • Prevents common anti-patterns like using inefficient regex or text operators.
  • Ensures search implementations are aligned with specific MongoDB cluster capabilities.
  • Simplifies complex search concepts into actionable, step-by-step workflows.
  • Provides clear guidance on model selection for automated embeddings.
  • Promotes performance-oriented index design and query construction.

Usage examples

“How do I implement semantic search for my product catalog?”
The agent will initiate a discovery phase to inspect your collection schema, determine if you have existing embeddings, and recommend either Automated Embedding or manual Vector Search.
“What is the difference between Atlas Search and Vector Search?”
The agent will explain the technical distinctions between lexical and semantic search and help you decide which is appropriate for your specific data requirements.
“I want to combine keyword filtering with vector similarity.”
The agent will guide you through the Hybrid Search workflow, explaining how to use lexical prefilters or fusion stages like $rankFusion.
“Help me get started with search.”
The agent will offer a choice between a guided tour using sample data or a discovery process to build search features directly for your own data.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/mongodb/mongodb-search-and-ai/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip mongodb-search-and-ai.zip -d .agents/skills

Documentation by MongoDB

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"

Skip the offer only when the intent is already unambiguous:

  • Explicit tour request ("give me a guided tour", "walk me through search using sample data") — load references/quick-start.md and start at its Step 0.

  • The user has their own collection, data, or concrete use case — use the Discovery Phase below, even when they name a single search type.

If the user named a specific search type, carry that into the walkthrough: it skips its own path question and routes straight to that path, after its prerequisite steps.

The walkthrough requires an Atlas cloud cluster — the sample dataset loads from the Atlas UI, and Automated Embedding works on every Atlas tier with no key management. Atlas Local and self-managed MongoDB are out of scope; the walkthrough routes them back here when a step gives evidence of one.

Otherwise, continue with the Discovery Phase.

1. Discovery Phase

Check the environment:

  • Use list-databases and list-collections to understand available data

  • If the user mentions a collection, use collection-schema to inspect field structure

  • Use collection-indexes to see existing indexes

  • Use atlas-inspect-cluster to determine the cluster's MongoDB version

Understand the use case: If the user's request is vague:

  • Ask clarifying questions about their needs

  • Infer likely collection and fields from schema

  • Confirm understanding before proceeding

Common questions to ask:

  • What are users searching for? (products, movies, documents, etc.)

  • What fields contain the searchable content?

  • Are they searching by free text, or by similarity to an existing item (e.g. "given movie A, find similar movies")?

  • Do they need exact matching, fuzzy matching, or semantic similarity?

  • Do they need filters (price ranges, categories, dates)?

  • Do they need autocomplete/typeahead functionality?

  • Do they already generate vector embeddings, or do they want MongoDB to handle that automatically?

2. Determine Search Type and Consult the Reference File

Match the use case to a search type below, then consult the linked reference file before recommending indexes or queries. Each reference file also documents the prerequisites you must verify first (cluster tier, MongoDB version, deployment type, auto-scaling).

Atlas Search (Lexical/Full-Text): Use when users need:

  • Keyword matching with relevance scoring

  • Fuzzy matching for typo tolerance

  • Autocomplete/typeahead

  • Faceted search with filters

  • Language-specific text analysis

  • Token-based search

  • Lexical search with views

→ Consult both references/lexical-search-indexing.md (index) and references/lexical-search-querying.md (query).

Automated Embedding (Semantic search, no embedding code): Use when users need:

  • Semantic / vector search without writing embedding code

  • No existing vector pipeline or embedding infrastructure

  • Quick setup: MongoDB auto-generates and manages embeddings using Voyage AI models

  • Text data already stored in Atlas that they want to search by meaning

  • RAG or AI agent memory with minimal setup

→ Consult references/automated-embedding.md.

Vector Search (Semantic, bring your own embeddings): Use when users need:

  • Semantic similarity with their own pre-generated embeddings

  • A specific embedding model not provided by Voyage AI

  • Image, audio, or multimodal embeddings (Automated Embedding is text-only)

  • Self-managed MongoDB without Voyage AI API key configured

  • Vector search with views

→ Consult references/vector-search.md.

Hybrid Search: Use when users need:

  • Combining multiple search approaches (e.g., vector + lexical, multiple text searches)

  • Queries like "find action movies similar to 'epic space battles'" (combining keyword filtering with semantic similarity)

  • Results that factor in multiple relevance criteria

  • Uses $rankFusion (rank-based) or $scoreFusion (score-based) to merge pipelines

→ Consult references/hybrid-search.md, plus the lexical/vector files for the individual pipeline stages.

3. Execution and Validation

Creating indexes:

  1. Explain the index configuration in plain language

  2. Show the JSON structure

  3. Ask what the user wants to name the index

  4. Get explicit approval: "Should I create this index?"

  5. Use MCP's create-index tool after approval

  6. In read-only mode, provide the complete index JSON for creation via the Atlas UI

Running queries:

  1. Show the aggregation pipeline

  2. Execute using MCP's aggregate tool

  3. Present results clearly

Refining existing queries:

  1. Ask the user to share their current query

  2. Compare against the query patterns and best practices in the relevant reference file(s)

  3. Propose specific improvements with before/after examples

  4. Run the revised query with aggregate to validate the results

Anti-Patterns to Avoid

NEVER recommend $regex or $text for search use cases. Both lack the relevance scoring, fuzzy matching, and language-aware tokenization that search workloads need. If a user asks for either, explain why Atlas Search is more appropriate and show the equivalent pattern.

Handling Edge Cases

  • Fields you can't find — inspect available fields with collection-schema, then confirm the intended field with the user

  • A required field doesn't exist — explain what to add and how (e.g., an embedding field for vector search)

  • Query fails or index missing — verify with collection-indexes; if absent, the index must be created first

  • Multiple collections are relevant — ask which one they mean, unless context makes it obvious

Files

references/lexical-search-querying.md

Lexical Search - Querying

This guide covers query patterns and optimization techniques for MongoDB Atlas Search.

Table of Contents

  • $search vs $searchMeta

  • Query Patterns

  • Query Optimization

  • Query Performance Analysis


$search vs $searchMeta

Both stages must be the first stage in an aggregation pipeline.

StageUse When
$searchYou need matching documents, with or without metadata
$searchMetaYou only need metadata (count, facets) — no documents returned

$searchMeta shares the following fields with $search: index, all operator names (e.g. text, range, compound), concurrent (parallelizes search across segments on dedicated search nodes only — ignored otherwise), and returnStoredSource.


Query Patterns

Operator Reference
OperatorDescription
autocompleteSearch-as-you-type from incomplete input
compoundCombines multiple operators into a single query
embeddedDocumentQueries fields inside arrays of objects
equalsExact match on boolean, date, number, objectId, token, uuid
existsTests for presence of a field
geoShapeQueries shapes by spatial relation (geo type, indexShapes: true)
geoWithinQueries points within a region (geo type)
hasAncestorQueries ancestor-level fields when using returnScope
hasRootQueries root-level fields when using returnScope
inQueries single values or arrays of values
moreLikeThisFinds documents similar to a given document
nearQueries values near a number, date, or geo point
phraseSearches for terms in a specific order
queryStringBoolean/field-specific query syntax
rangeQueries values within a numeric, date, string, or objectId range
regexRegular expression matching on string fields
textFull-text analyzed search on string fields
vectorSearchSemantic search with lexical pre-filters (vector type in search index)
wildcardWildcard pattern matching on string fields

Count Results

Use the count option in $searchMeta to count matching documents without fetching them. Also works in $search via the $SEARCH_META aggregation variable when you need both results and count.

// Count only (recommended)
db.movies.aggregate([
  {
    $searchMeta: {
      range: { path: "year", gte: 2010, lte: 2015 },
      count: { type: "lowerBound" }  // or "total" for exact count
    }
  }
])
// Returns: { count: { lowerBound: NumberLong(1001) } }
// Count alongside results using $SEARCH_META
db.movies.aggregate([
  {
    $search: {
      text: { path: "title", query: "<query>" },
      count: { type: "total" }
    }
  },
  { $project: { title: 1, meta: "$SEARCH_META" } },
  { $limit: 10 }
])
typeBehavior
lowerBoundApproximate. Exact up to threshold (default 1000), rough above it.
totalExact count. Slower on large result sets.

Note: Count affects performance — use only when needed (e.g., first page of paginated results).


Pagination with searchSequenceToken

Cursor-based pagination using tokens. More efficient than $skip alone for deep pagination.

Step 1 — Get tokens from the initial query:

db.movies.aggregate([
  {
    $search: {
      index: "<index-name>",
      text: { path: "title", query: "summer" },
      sort: { released: 1, _id: 1 }  // Sort on a unique field to prevent tie-ordering issues
    }
  },
  { $limit: 10 },
  {
    $project: {
      title: 1, released: 1,
      paginationToken: { $meta: "searchSequenceToken" }
    }
  }
])

Step 2 — Next page using searchAfter:

db.movies.aggregate([
  {
    $search: {
      index: "<index-name>",
      text: { path: "title", query: "summer" },
      searchAfter: "<token-from-last-document-on-previous-page>",
      sort: { released: 1, _id: 1 }  // maintain the same sort order
    }
  },
  { $limit: 10 },
  { $project: { title: 1, paginationToken: { $meta: "searchSequenceToken" } } }
])

Use searchBefore with the first document's token on the current page to go to the previous page — results are returned in reverse order. Combine searchAfter with $skip to jump pages.

Key constraint: Query semantics (operator, path, query value, sort) must be identical between the initial query and any searchAfter/searchBefore query.


Retrieve Arrays of Objects with returnScope

Return each element of an embedded document array as an individually scored document. Works in both $search and $searchMeta.

Requirements:

  • Array field indexed as embeddedDocuments type with storedSource defined on the fields to return

  • returnStoredSource: true in the query

  • All operator paths must be nested under returnScope.path (use hasAncestor or hasRoot to query outside it)

Index:

{
  "mappings": {
    "dynamic": false,
    "fields": {
      "funding_rounds": {
        "type": "embeddedDocuments",
        "dynamic": true,
        "storedSource": {
          "include": ["round_code", "raised_currency_code", "raised_amount"]
        }
      }
    }
  }
}

Query:

db.companies.aggregate([
  {
    $search: {
      range: { path: "funding_rounds.raised_amount", gte: 5000000, lte: 10000000 },
      returnStoredSource: true,
      returnScope: { path: "funding_rounds" }
    }
  },
  { $limit: 5 }
])

Only fields defined in storedSource within the embedded document are returned — root-level fields are excluded. When returnScope is specified, all query paths must start with returnScope.path.


Advanced Query Syntax (queryString)

Use case: Complex search with boolean operators, wildcards, and field-specific queries.

Fields configuration:

// Add to mappings.fields in your index:
{
  "title": { "type": "string" },
  "director": { "type": "string" },
  "year": { "type": "number" }
}

Query patterns:

// Boolean operators
db.collection.aggregate([
  {
    $search: {
      index: "search_index",
      queryString: {
        defaultPath: "title",
        query: "detective AND (noir OR thriller) NOT comedy"
      }
    }
  }
])

// Field-specific searches
db.collection.aggregate([
  {
    $search: {
      index: "search_index",
      queryString: {
        defaultPath: "title",
        query: "title:inception AND director:nolan"
      }
    }
  }
])

// Wildcards and ranges
db.collection.aggregate([
  {
    $search: {
      index: "search_index",
      queryString: {
        defaultPath: "title",
        query: "star* AND year:[2010 TO 2020]"
      }
    }
  }
])

Supported syntax:

  • Boolean: AND, OR, NOT

  • Grouping: (term1 OR term2)

  • Wildcards: * (0+ chars), ? (single char)

  • Ranges: [min TO max] for numbers/dates

  • Field-specific: fieldName:value

Key considerations:

  • Great for building search UIs with advanced options

  • Users can construct complex queries without API changes

  • Validate/sanitize user input to prevent injection


Searching Nested Arrays (embeddedDocument)

Use case: Search within arrays of objects where element-wise comparisons are required (similar to $elemMatch), or each element must be scored independently.

Fields configuration:

// Add to mappings.fields in your index:
{
  "title": { "type": "string" },
  "reviews": {
    "type": "embeddedDocuments",  // Required for array search
    "fields": {
      "author": { "type": "string" },
      "text": { "type": "string" },
      "rating": { "type": "number" }
    }
  }
}

Query pattern:

db.collection.aggregate([
  {
    $search: {
      index: "search_index",
      embeddedDocument: {
        path: "reviews",
        operator: {
          compound: {
            must: [
              { text: { query: "excellent", path: "reviews.text" } }
            ],
            filter: [
              { range: { path: "reviews.rating", gte: 4 } }
            ]
          }
        },
        score: { embedded: { aggregate: "maximum" } }  // or sum, minimum, mean
      }
    }
  }
])

Score aggregation options:

  • sum: Add scores from all matching array elements

  • maximum: Use highest score from array elements

  • minimum: Use lowest score from array elements

  • mean: Average scores from array elements

Key considerations:

  • Each array element is indexed as a separate document

  • Use embeddedDocuments field type, not regular document

  • Score aggregation controls how array matches affect overall document score

  • Performance can be degraded due to complexity of parent-child joins


Search Highlighting

Use case: Show users which parts of documents matched their query.

Fields configuration:

// Add to mappings.fields in your index:
{
  "title": { "type": "string" },
  "plot": { "type": "string" }
}

Query pattern:

db.collection.aggregate([
  {
    $search: {
      index: "search_index",
      text: {
        query: "detective noir",
        path: "plot"
      },
      highlight: {
        path: "plot",
        maxCharsToExamine: 500000,  // Default
        maxNumPassages: 5            // Number of snippets
      }
    }
  },
  {
    $project: {
      title: 1,
      plot: 1,
      highlights: { $meta: "searchHighlights" },
      score: { $meta: "searchScore" }
    }
  }
])

Highlight result structure:

{
  "highlights": [
    {
      "path": "plot",
      "texts": [
        { "value": "A ", "type": "text" },
        { "value": "detective", "type": "hit" },
        { "value": " investigates a murder in ", "type": "text" },
        { "value": "noir", "type": "hit" },
        { "value": " Los Angeles", "type": "text" }
      ],
      "score": 1.23
    }
  ]
}

Key considerations:

  • type: "hit" indicates matched terms

  • type: "text" is surrounding context

  • Multiple passages returned for long documents

  • Use in search results UI to show match context


Compound Queries

Compound queries combine multiple operators efficiently:

db.collection.aggregate([
  {
    $search: {
      index: "search_index",
      compound: {
        must: [
          { text: { query: "detective", path: "plot" } }  // Required, affects score
        ],
        should: [
          { text: { query: "mystery", path: "genre" } }   // Optional, boosts score
        ],
        filter: [
          { range: { path: "year", gte: 2000 } }          // Required, no score impact
        ],
        mustNot: [
          { text: { query: "comedy", path: "genre" } }    // Excludes results
        ]
      }
    }
  }
])

Clause types:

  • must: Required matches that affect scoring

  • should: Optional matches that boost scores

  • filter: Required matches that don't affect scoring (faster)

  • mustNot: Exclusions

Performance tips:

  • Use filter instead of must for criteria that shouldn't affect scoring (faster)

  • Put most selective criteria in must or filter first

  • Limit should clauses to 3-5 for best performance


Query with Synonyms

When your index is configured with synonyms, specify the synonym mapping name in your query:

db.collection.aggregate([
  {
    $search: {
      index: "search_index",
      text: {
        query: "car chase",
        path: "description",
        synonyms: "synonym-mapping-name"  // Reference the mapping from your index
      }
    }
  }
])

Note: When you specify a synonym mapping name, MongoDB Search automatically searches for the query terms AND all their synonyms (e.g., "car" also matches "automobile", "vehicle").


Using Multi Analyzers

Query specific analyzer variants of a field:

// Standard fuzzy search
db.collection.aggregate([
  {
    $search: {
      index: "search_index",
      text: {
        query: "Action",
        path: "title"  // Uses default analyzer
      }
    }
  }
])

// Exact match using keyword analyzer
db.collection.aggregate([
  {
    $search: {
      index: "search_index",
      text: {
        query: "Action",
        path: "title.keywordAnalyzer"  // Uses alternate analyzer
      }
    }
  }
])

Use case: Support both fuzzy and exact matching on the same field without duplicating data.


Autocomplete

Search-as-you-type on fields indexed as autocomplete type (see lexical-search-indexing.md).

OptionDescription
queryString to search
pathField indexed as autocomplete
tokenOrderany (tokens in any order; sequential matches score higher) or sequential (tokens must be adjacent)
fuzzy{ maxEdits: 1|2, prefixLength: <n>, maxExpansions: <n> }

To score exact matches higher, index the field as both autocomplete and string types and query using compound.


Facet

Groups results into buckets by field values or ranges. Use with $searchMeta for metadata only, or with $search + $SEARCH_META variable for results and metadata.

{ "$searchMeta": { "facet": {
    "operator": { <operator> },
    "facets": {
      "<facet-name>": { "type": "string|number|date", "path": "<field>", ...options }
    }
} } }
Facet typeField index typeBucket definition
stringtokenTop N unique string values. numBuckets defaults to 10.
numbernumberNumeric ranges via boundaries array + optional default bucket
datedateDate ranges via boundaries array + optional default bucket

geoShape

Query shapes by spatial relation. Field must be indexed as geo type with indexShapes: true. Required fields: geometry (GeoJSON Polygon, MultiPolygon, or LineString), path, and relation:

relationMeaning
containsIndexed geometry contains the query geometry
disjointNo overlap between geometries
intersectsGeometries overlap
withinIndexed geometry is within the query geometry (not supported for LineString or Point)

geoWithin

Query geographic points within a region. Field must be indexed as geo type. Specify one of:

  • box: { bottomLeft: <GeoJSON Point>, topRight: <GeoJSON Point> }

  • circle: { center: <GeoJSON Point>, radius: <meters> }

  • geometry: GeoJSON Polygon or MultiPolygon

For both geo operators: longitude must be specified before latitude; longitude range [-180, 180], latitude range [-90, 90].


Query Optimization

Sorting Search Results

Use the sort option inside $search to sort at the mongot level (more efficient than a $sort stage after). Supports: boolean, date, number, objectId, uuid, and string (must be indexed as token type). Cannot sort on embeddedDocuments type fields.

db.collection.aggregate([
  {
    $search: {
      text: { ... },
      sort: { "fieldName": -1, "title": 1, score: { $meta: "searchScore" } }
    }
  },
  { $limit: 10 }
])

Sort by score:

sort: { score: { $meta: "searchScore", order: 1 } }  // ascending (lowest score first)
sort: { score: { $meta: "searchScore" } }             // descending (default)

Null/missing values: Appear first in ascending sort by default. Use noData: "highest" to push them last:

sort: { "field": { order: 1, noData: "highest" } }

Key rules:

  • sort inside $search only works on indexed fields — use $sort after for non-indexed or computed fields

  • For searchSequenceToken pagination, sort must include a unique field (e.g., _id) to avoid tie-ordering

  • Arrays: ascending uses smallest element, descending uses largest

Using Stored Source

Retrieve frequently accessed fields directly from the search index instead of the database:

db.collection.aggregate([
  {
    $search: {
      index: "search_index",
      text: { query: "detective", path: "plot" },
      returnStoredSource: true  // Retrieve from mongot, not DB
    }
  },
  { $limit: 20 },
  { $match: { rating: { $gte: 7 } } }  // Filter on stored fields
])

Requirements:

  • Fields must be configured in storedSource in your index definition

  • Dramatically improves performance by avoiding database lookups

  • Especially beneficial when filtering or sorting after $search


Minimize blocking stages after $search — prefer encapsulating filter logic inside the $search stage itself using compound.filter. This avoids additional mongod operations and makes full use of the Atlas Search index.

Prefer compound.filter over $match for fields indexed in the search index (string, token, number, date, boolean, objectId, uuid, geo):

// Prefer this
{ $search: { compound: { must: [{ text: { ... } }], filter: [{ range: { path: "year", gte: 2000 } }] } } }

// Avoid this where possible
{ $search: { text: { ... } } },
{ $match: { year: { $gte: 2000 } } }

If you must use $match (e.g., for non-indexed or computed fields), use storedSource + returnStoredSource to avoid a full document lookup in mongod:

{ $search: { text: { ... }, returnStoredSource: true } },
{ $match: { storedField: { $exists: true } } }

Query Performance Analysis

Use explain to analyze query performance:

db.collection.explain("executionStats").aggregate([
  { $search: { /* ... */ } }
])

Important: Atlas Search explain output differs from standard MongoDB explain. It shows execution on the search engine (mongot) side with Lucene-specific statistics, not standard MongoDB execution plans.

Requirements and compatibility

Written for: Claude Code

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Names Claude Code tools, Needs an API key, Needs Python

Security

What our scanner noticed· Low risk

  • Scripts that your agent may run

This skill includes scripts that your agent may run. Read them before you use it.

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
MongoDB
Publisher
MongoDB (Official)
Source
mongodb/agent-skills · skills/mongodb-search-and-ai · commit 155bb9c
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced
Also distributed in
mongodb/agent-skills, mongodb/agent-skills

AutoGineer is not affiliated with or endorsed by MongoDB.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download mongodb-search-and-ai.zip