id: "mongodb-connection"
kind: "skill"
name: "mongodb-connection"
title: "Mongodb Connection"
description: "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."
category: "developer-tools"
source:
  repository: "mongodb/agent-skills"
  path: "plugins/mongodb-atlas/skills/mongodb-connection/SKILL.md"
  commit: "ff9a88211c5a9fa74012bfa8b797132d510f9b44"
  url: "https://github.com/mongodb/agent-skills/tree/ff9a88211c5a9fa74012bfa8b797132d510f9b44/plugins/mongodb-atlas/skills/mongodb-connection"
license:
  spdx: "Apache-2.0"
  from: "SKILL.md frontmatter"
  redistributable: true
stars: 206
updated_at: "2026-11-19T15:33:48Z"
score: 0.8506
rank: 139
files_count: 2
bytes: 22644
has_scripts: false
trust_level: "unreviewed"
reviewed_by: "eval-v1"
source_tier: "official"
eval:
  version: "eval-v1"
  date: "2026-11-21T11:04:37Z"
  model: "claude-sonnet-5-5"
  score: 0.8506
  signals:
    tier: 1.0
    rubric: 0.94
    judge: 0.8467
    smoke: "not_run"
    popularity: 0.465
  rubric:
    score: 0.94
    trigger: 1.0
    scope: 0.7
    safety: 1.0
    injection: 1.0
    references: 1.0
    license: 1.0
    risky: []
    broken_references: []
  judge:
    trigger: 5
    scope: 4
    instructions: 4
    safety: 5
    injection: 5
    references: 5
    overall: 8
    verdict: "feature"
    rationale: "The description is specific about when to load it: configuring clients and pools, and troubleshooting pool exhaustion and timeouts. Instructions are concrete, with scenario tables for serverless, OLTP, OLAP and bursty workloads, plus sizing formulas and the monitoring-connection math. The context-first, one-question-at-a-time approach is useful. Some formulas are slightly inconsistent, and a few parts are generic. There are no safety or injection issues. The referenced monitoring-guide.md exists."
  smoke:
    status: "not_run"
requires:
  tools: []
  runtimes: []
  network: false
  mcp: []
compat:
  - client: "claude-code"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "codex-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "cursor"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "gemini-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "vscode-copilot"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "opencode"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "claude-desktop"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "chat-mcp"
    status: "full"
    reasons: ["ok"]
    source: "derived"
files:
  - path: "SKILL.md"
    bytes: 14029
    sha256: "71f4fbbc1c6a1f9c9ad0c9cbb7aa6ab601a1d77f9e0f988bbfae9f03a8b3615f"
    url: "https://raw.githubusercontent.com/mongodb/agent-skills/ff9a88211c5a9fa74012bfa8b797132d510f9b44/plugins/mongodb-atlas/skills/mongodb-connection/SKILL.md"
  - path: "references/monitoring-guide.md"
    bytes: 8615
    sha256: "16b361e3c16aa84cc8afc241d7142642fa77b20fa3bdb19091f5ad30da5a20ae"
    url: "https://raw.githubusercontent.com/mongodb/agent-skills/ff9a88211c5a9fa74012bfa8b797132d510f9b44/plugins/mongodb-atlas/skills/mongodb-connection/references/monitoring-guide.md"
alternates:
  - name: "mongodb-connection"
    repository: "mongodb/agent-skills"
    path: "plugins/mongodb/skills/mongodb-connection/SKILL.md"
    commit: "ff9a88211c5a9fa74012bfa8b797132d510f9b44"
    url: "https://github.com/mongodb/agent-skills/tree/ff9a88211c5a9fa74012bfa8b797132d510f9b44/plugins/mongodb/skills/mongodb-connection"
    license: "Apache-2.0"
    stars: 206
    score: 0.8506
    similarity: 1.0
    reason: "identical content"
  - name: "mongodb-connection"
    repository: "mongodb/agent-skills"
    path: "skills/mongodb-connection/SKILL.md"
    commit: "ff9a88211c5a9fa74012bfa8b797132d510f9b44"
    url: "https://github.com/mongodb/agent-skills/tree/ff9a88211c5a9fa74012bfa8b797132d510f9b44/skills/mongodb-connection"
    license: "Apache-2.0"
    stars: 206
    score: 0.8506
    similarity: 1.0
    reason: "identical content"
  - name: "mongodb-connection"
    repository: "fcakyon/claude-codex-settings"
    path: "plugins/mongodb-skills/skills/mongodb-connection/SKILL.md"
    commit: "18250de0945fbf3a2c373dbfb35a94b1435becd6"
    url: "https://github.com/fcakyon/claude-codex-settings/tree/18250de0945fbf3a2c373dbfb35a94b1435becd6/plugins/mongodb-skills/skills/mongodb-connection"
    license: "Apache-2.0"
    stars: 1214
    score: 0.7275
    similarity: 1.0
    reason: "identical content"
icon: "https://versatile.sh/avatars/mongodb.png"
