MongoDB Connection Optimizer
Skill Verified ActiveOptimize 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.
Optimize MongoDB client connection configurations for any supported driver language by providing context-aware recommendations and best practices.
Features
- Expert MongoDB connection configuration advice
- Context-aware pool size and timeout recommendations
- Guidance for serverless, OLTP, OLAP, and high-traffic workloads
- Troubleshooting for connection pool exhaustion and timeouts
- Explanation of connection pool mechanics and lifecycle
Use Cases
- When instantiating or configuring a MongoDB client
- When troubleshooting connection errors (ECONNREFUSED, timeouts, pool exhaustion)
- When optimizing performance issues related to MongoDB connections
- When building serverless functions, API endpoints, or high-traffic applications using MongoDB
Non-Goals
- Providing generic, uncontextualized configuration parameters
- Acting as a general MongoDB administration tool
- Troubleshooting infrastructure or network-level connection issues directly
Workflow
- Gather environmental context (deployment type, workload, concurrency, memory limits, server version, OS, driver version)
- Explain connection pooling mechanics and lifecycle
- Calculate and recommend initial pool size based on context
- Provide scenario-specific configuration recommendations (serverless, OLTP, OLAP, high-traffic)
- Guide troubleshooting of connection issues (pool exhaustion, timeouts, churn)
Installation
First, add the marketplace
/plugin marketplace add mongodb/agent-skills/plugin install agent-skills@mongodb-pluginsQuality Score
VerifiedTrust Signals
Similar Extensions
Sql Optimization
100Universal SQL performance optimization assistant for comprehensive query tuning, indexing strategies, and database performance analysis across all SQL databases (MySQL, PostgreSQL, SQL Server, Oracle). Provides execution plan analysis, pagination optimization, batch operations, and performance monitoring guidance.
Mongodb Mcp Setup
100Guide 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.
Rule Effectiveness Analysis
100Analyze which rules are actively used vs inert. Detect coverage gaps. Recommend pruning to reduce token consumption.
Mongodb Search And Ai
100Guides 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.
Dsql
100Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, and develop applications with a serverless, distributed SQL database. Covers IAM auth, multi-tenant patterns, MySQL-to-DSQL migration, DDL operations, query plan explainability, and SQL compatibility validation. Triggers on phrases like: DSQL, Aurora DSQL, create DSQL table, DSQL schema, migrate to DSQL, distributed SQL database, serverless PostgreSQL-compatible database, DSQL query plan, DSQL EXPLAIN ANALYZE, why is my DSQL query slow.
Performance Analysis
100Comprehensive performance analysis, bottleneck detection, and optimization recommendations for Claude Flow swarms