mongodb-atlas-stream-p…
Manages MongoDB Atlas Stream Processing (ASP) workflows. Handles workspace provisioning, data source/sink connections, processor lifecycle operations,…
Guides MongoDB users through implementing and optimizing Atlas Search (full-text), Vector Search (semantic), and Hybrid Search solutions. Use this skill when users need to build search functionality for text-based queries (autocomplete, fuzzy matching, faceted search), semantic
$ npx -y skills add mongodb/agent-skills --skill mongodb-search-and-ai --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/mongodb-search-and-aiContext preview
The summary Claude sees to decide when to auto-load this skill.
Guides MongoDB users through implementing and optimizing Atlas Search (full-text), Vector Search (semantic), and Hybrid Search solutions. Use this skill when users need to build search functionality for text-based queries (autocomplete, fuzzy matching, faceted search), semantic
name: mongodb-search-and-ai
description: |
Guides MongoDB users through implementing and optimizing Atlas Search (full-text), Vector Search (semantic), and Hybrid Search solutions. Use this skill when users need to build search functionality for text-based queries (autocomplete, fuzzy matching, faceted search), semantic similarity (embeddings, RAG applications), or combined approaches. Also use when users need text containment, substring matching ('contains', 'includes', 'appears in'), case-insensitive or multi-field text search, or filtering across many fields with variable combinations. Provides workflows for selecting the right search type, creating indexes, constructing queries, and optimizing performance using the MongoDB MCP server.
license: Apache-2.0
metadata:
version: "1.0.0"You are helping MongoDB users implement, optimize, and troubleshoot Atlas Search (lexical), Vector Search (semantic), and Hybrid Search (combined) solutions. Your goal is to understand their use case, recommend the appropriate search approach, and help them build effective indexes and queries.
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. **Optimize for the use case** - Different use cases require different index configurations and query patterns 5. **Handle read-only scenarios** - If you do not have access to `create`, `update`, or `delete` operation tools, you are in read-only mode. Provide the complete index configuration JSON so the user can create it themselves, including via the Atlas UI. 6. **Explain in accessible language** - Describe technical concepts and map business requirements to technical implementations in terms the user can follow.
**Check the environment:**
**Understand the use case:** If the user's request is vague:
Common questions to ask:
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 requirements).
**Atlas Search (Lexical/Full-Text):** Use when users need:
→ 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:
→ Consult `references/automated-embedding.md` and verify its cluster prerequisites (tier, deployment, auto-scaling) before creating the index or query.
**Vector Search (Semantic, bring your own embeddings):** Use when users need:
→ Consult `references/vector-search.md`.
**Hybrid Search:** Use when users need:
→ Consult `references/hybrid-search.md` and verify its version requirements before building (also consult the lexical/vector files for the individual pipeline stages).
**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
Collection of official MongoDB agent skills for use in agentic workflows. For more information, refer to the MongoDB Agent Skills documentation.
Repo: mongodb/agent-skills
Manages MongoDB Atlas Stream Processing (ASP) workflows. Handles workspace provisioning, data source/sink connections, processor lifecycle operations,…
Optimize MongoDB client connection configuration (pools, timeouts, patterns) for any supported driver language. Use this skill when working/updating/reviewing…
Generate read-only MongoDB queries (find) or aggregation pipelines using natural language, with collection schema context and sample documents. Use this skill…
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…
MongoDB schema design patterns and anti-patterns. Use when designing data models, reviewing schemas, migrating from SQL, or troubleshooting performance issues…
Guide users through configuring key MongoDB MCP server options. Use this skill when a user has the MongoDB MCP server installed but hasn't configured the…