SKILL5.3K installs191

Mongodb Connection

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.

Type
Skill
Author
mongodb
GitHub stars
191
Installs
5.3K
Last updated
October 31, 2026

Install

npx skills add https://github.com/mongodb/agent-skills --skill mongodb-connection

About this skill

Optimizes MongoDB client connection configuration — pools, timeouts, and patterns — across supported driver languages. Use it when instantiating or configuring a client, tuning connection pools, or troubleshooting errors like ECONNREFUSED, timeouts, and pool exhaustion. It also applies to serverless functions, high-traffic APIs, and long-running concurrent workloads.

Summary written with AI assistance from the project's public description.


Categories


More from mongodb


Similar Skills