By mongodb
Connect Claude to MongoDB databases via MCP for direct querying and data exploration, generate optimized find queries and aggregations from natural language using schema awareness, tune connection pools across drivers like Node.js/Python/Java/Go, analyze explain plans for indexes, design performant schemas, implement Atlas Search for vector/RAG/hybrid queries, and manage Stream Processing pipelines with Kafka/S3 integrations.
npx claudepluginhub mongodb/agent-skills --plugin mongodbGuides 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.
Manages MongoDB Atlas Stream Processing (ASP) workflows. Handles workspace provisioning, data source/sink connections, processor lifecycle operations, debugging diagnostics, and tier sizing. Supports Kafka, Atlas clusters, S3, HTTPS, and Lambda integrations for streaming data workloads and event processing. NOT for general MongoDB queries or Atlas cluster management. Requires MongoDB MCP Server with Atlas API credentials.
Optimize MongoDB client connection configuration (pools, timeouts, patterns) for any supported driver language. Use this skill when working/updating/reviewing on functions that instantiate or configure a MongoDB client (eg, when calling `connect()`), configuring connection pools, troubleshooting connection errors (ECONNREFUSED, timeouts, pool exhaustion), optimizing performance issues related to connections. This includes scenarios like building serverless functions with MongoDB, creating API endpoints that use MongoDB, optimizing high-traffic MongoDB applications, creating long-running tasks and concurrency, or debugging connection-related failures.
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 required environment variables, or when they ask about connecting to MongoDB/Atlas and don't have the credentials set up.
Generate read-only MongoDB queries (find) or aggregation pipelines using natural language, with collection schema context and sample documents. Use this skill whenever the user asks to write, create, or generate MongoDB queries, wants to filter/query/aggregate data in MongoDB, asks "how do I query...", needs help with query syntax, or discusses finding/filtering/grouping MongoDB documents. Also use for translating SQL-like requests to MongoDB syntax. Does NOT handle Atlas Search ($search operator), vector/semantic search ($vectorSearch operator), fuzzy matching, autocomplete indexes, or relevance scoring - use search-and-ai for those. Does NOT analyze or optimize existing queries - use mongodb-query-optimizer for that. Does NOT handle aggregation pipelines that involve write operations. Requires MongoDB MCP server.
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.
MongoDB schema design patterns and anti-patterns. Use when designing data models, reviewing schemas, migrating from SQL, or troubleshooting performance issues caused by schema problems. Triggers on "design schema", "embed vs reference", "MongoDB data model", "schema review", "unbounded arrays", "one-to-many", "tree structure", "16MB limit", "schema validation", "JSON Schema", "time series", "schema migration", "polymorphic", "TTL", "data lifecycle", "archive", "index explosion", "unnecessary indexes", "approximation pattern", "document versioning".
Share bugs, ideas, or general feedback.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOfficial MongoDB agent skills for schema design, query tuning, search, and connections.
Use this agent when you need to optimize database performance for B2B applications at enterprise scale. This agent specializes in multi-tenant database optimization, query performance tuning, indexing strategies, connection pooling, and database scaling for SaaS platforms. Handles PostgreSQL, MySQL, MongoDB, and cloud database optimizations. Examples:
Database plugin for nosql-data-modeler
Database engineering agents providing expertise in schema design, query optimization, and reliability
Commands for database schema design, migrations, and optimization
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Collection of official MongoDB agent skills for use in agentic workflows. For more information, refer to the MongoDB Agent Skills documentation.
Install the plugin from the Claude marketplace, or run the following command from a Claude session:
Install the plugin:
/plugin install mongodb
Follow the prompts to complete the installation, then run /reload-plugins to activate it.
Install the plugin from the Cursor marketplace, or run the following command from a Cursor session:
Install the plugin:
/add-plugin mongodb
Follow the prompts to complete the installation.
Add the mongodb/agent-skills marketplace to Codex:
codex plugin marketplace add mongodb/agent-skills
Start Codex and open the plugins browser:
/plugins
Navigate to the "MongoDB Agent Skills" tab and install the mongodb plugin.
Install the extension from the Gemini marketplace, or run the following command from Gemini CLI:
Install the extension:
gemini extensions install https://github.com/mongodb/agent-skills
Follow the prompts to complete the installation.
Install the plugin from the GitHub repository: /plugin install https://github.com/mongodb/agent-skills.git. Then restart Copilot CLI to activate the MCP server.
https://skills.sh/ is a popular directory and a CLI that automates the installation of skills.
Add the skills you want to your agent:
npx skills add mongodb/agent-skills
Install the MCP server: npx mongodb-mcp-server@1 setup and follow the instructions.
Clone the repository:
git clone https://github.com/mongodb/agent-skills.git
Install the skills for your platform:
Copy the skills/ directory to the location where your coding agent
reads its skills or context files. Refer to your agent's documentation
for the correct path.
Install the MCP server: npx mongodb-mcp-server@1 setup and follow the instructions.
Using the MCP Server to connect to MongoDB requires authentication - you can use the mongodb-mcp-setup skill to guide you through the process. Alternatively, refer to the MongoDB MCP server documentation for a full list of configuration options.