By mongodb
Connect to MongoDB instances to explore data, manage collections, optimize query performance with explain() and index recommendations, generate aggregation pipelines from natural language, design schemas, implement full-text and vector search, and manage Atlas Stream Processing workflows.
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.
Collection of official MongoDB agent skills for use in agentic workflows. For more information, refer to the MongoDB Agent Skills documentation.
This README covers the mongodb-atlas plugin, which connects your agent to the MongoDB-hosted Atlas MCP server over HTTP using OAuth. It bundles the official MongoDB agent skills for writing queries, designing schemas, optimizing queries, using Atlas Search and Vector Search, and more.
Connecting to MongoDB Community or Enterprise Advanced? For self-managed deployments, use the
mongodbplugin instead — it runs the MongoDB MCP server locally and connects to your own deployment. See Community & Enterprise Advanced setup for installation and configuration instructions.
The mongodb-atlas plugin is available on Claude, Cursor, Codex, GitHub Copilot (CLI and VS Code), and Grok.
Install mongodb-atlas from the Claude marketplace, or run the following command from a Claude session:
Install the plugin:
/plugin install mongodb-atlas
Follow the prompts to complete the installation, then run /reload-plugins to activate it.
Install mongodb-atlas from the Cursor marketplace, or run the following command from a Cursor session:
Install the plugin:
/add-plugin mongodb-atlas
Follow the prompts to complete the installation.
Open the plugins browser:
/plugins
Find the mongodb-atlas plugin and install it.
Install the plugin:
copilot plugin install mongodb-atlas
To browse first, run copilot plugin marketplace browse.
Open the Extensions view (⇧⌘X / Ctrl+Shift+X), search for @agentPlugins,
find mongodb-atlas, and select Install.
Open the marketplace browser in Grok Build:
/marketplace
Find mongodb-atlas and press i to install it.
The mongodb-atlas plugin connects to the MongoDB-hosted Atlas MCP server using OAuth. The first time your agent uses the server, you'll be prompted to sign in to MongoDB Atlas in your browser.
The methods below install just the agent skills — the same skills both plugins bundle — for agents or workflows that don't use a plugin marketplace. They don't configure an MCP server; to add one, run npx "mongodb-mcp-server@latest" setup, which can configure either the hosted Atlas MCP server or a self-managed deployment. Installing the mongodb-atlas or mongodb plugin just does this for you as a convenience (bundling the MCP configuration); for self-managed specifics, see Community & Enterprise Advanced setup.
https://skills.sh/ is a popular directory and CLI that automates installing skills:
npx skills add mongodb/agent-skills
Clone the repository:
git clone https://github.com/mongodb/agent-skills.git
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.
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub marcelhacks/anthropic-sg-safe-path-control-20260724 --plugin mongodbOfficial Claude plugin for MongoDB (MCP Server + Skills). Connect to databases, explore data, manage collections, optimize queries, generate reliable code, implement best practices, develop advanced features, and more.
Official 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:
Manage database replication, failover, and high availability configurations
Official Claude plugin for MongoDB (MCP Server + Skills). Connect to databases, explore data, manage collections, optimize queries, generate reliable code, implement best practices, develop advanced features, and more.
Database migration automation, observability, and cross-database migration strategies
Commands for database schema design, migrations, and optimization
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claim