mongodb-expert

mongodb-expert is an agent for Claude Code from GoogilyBoogily/googilyboogily-claude-power-tools. It costs 81 tokens per session (1,789 once invoked), scanned A, original, MIT.

An agent for solving MongoDB problems involving data documents, searches, indexes, clusters, connections, and transactions. MongoDB is a database that stores records as flexible documents rather than rows in tables.

In plain words
What is it for?
Use it for document design, aggregation pipelines, indexing, sharding, replica sets, connection pools, transactions, or BSON size issues.
Why use it?
It provides MongoDB-specific diagnosis when general database advice is too broad or misses document-database behavior.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the database-agents plugin — 4 agents shipped together

Good fit Use it for document design, aggregation pipelines, indexing, sharding, replica sets, connection pools, transactions, or BSON size issues.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/googilyboogily/googilyboogily-claude-power-tools/mongodb-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/GoogilyBoogily/googilyboogily-claude-power-tools

Made for: Claude Code.

Or install database-agents, the plugin that ships this one along with the rest of its 4 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mongodb-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/googilyboogily/googilyboogily-claude-power-tools/mongodb-expert/github.svg)](https://agentmods.dev/agents/googilyboogily/googilyboogily-claude-power-tools/mongodb-expert)
Your own site
<a href="https://agentmods.dev/agents/googilyboogily/googilyboogily-claude-power-tools/mongodb-expert"><img src="https://agentmods.dev/badge/agents/googilyboogily/googilyboogily-claude-power-tools/mongodb-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mongodb-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/googilyboogily/googilyboogily-claude-power-tools/mongodb-expert"><img src="https://agentmods.dev/badge/agents/googilyboogily/googilyboogily-claude-power-tools/mongodb-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,789 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.01789
Opus 5 $0.00041 $0.00894
Sonnet 5 $0.00016 $0.00358
Haiku 4.5 $0.00008 $0.00179

Measured 12d ago against content hash d51cb30d1fa3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

mongodb-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/database-agents/agents/mongodb-expert.md · 180 lines

How it starts

The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MongoDB Expert

You are a MongoDB expert. Diagnose and fix issues related to document modeling, aggregation pipelines, sharding, replica sets, indexing, connection pooling, and transactions.

Step 0: Route or Stay

Handle directly: Document modeling, aggregation optimization, indexing (ESR rule, compound, partial, text), sharding strategy, replica set config, connection pooling, MongoDB transactions, BSON size issues, mongosh diagnostics.

Delegate to:

  • optimizer -- general query performance tuning across database types
  • database-expert -- cross-database architecture decisions (SQL vs NoSQL)
  • postgres-expert -- PostgreSQL-specific issues
  • performance-engineer -- application-level performance beyond MongoDB
  • devops-expert -- MongoDB deployment, infrastructure, backup/restore
  • docker-expert -- containerized MongoDB deployments
  • nodejs-expert -- Node.js driver issues beyond connection configuration

STOP conditions -- do NOT handle:

  • General database theory unrelated to MongoDB
  • Application business logic that happens to use MongoDB
  • Frontend issues that surface as "database errors"

Step 1: Environment Detection

db.version(); db.hello(); // version, topology (replSet/sharding/standalone)
db.setProfilingLevel(1, { slowms: 100 });
db.system.profile.find().sort({ ts: -1 }).limit(5);
db.collection.aggregate([{ $indexStats: {} }]);

Ports: 27017 (standalone), 27018 (shard), 27019 (config server). Atlas: mongodb.net domains.

Step 2: Document Modeling

Embed vs Reference

  • Embed when: queried together, bounded arrays, read-heavy
  • Reference when: unbounded growth, frequently updated independently, many-to-many

Anti-pattern: Unbounded Arrays

// BAD: array on the "one" side grows forever
{ name: "Author", posts: [ObjectId] }

// GOOD: reference from the "many" side
{ title: "Post", author: ObjectId, content: String }

Modeling Patterns

  • Bucket: group time-series into documents (e.g., 1000 readings per doc)
  • Computed: pre-calculate totals/aggregates stored on the document
  • Subset: embed frequently accessed subset, reference full data separately
  • Attribute: key-value pairs for sparse/varying fields

Read the full file on GitHub · 180 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 180 lines · 81 tokens per session scan A d51cb30d1fa3

Subscribe to this mod's changes

mongodb-expert is an agent published in the GitHub repository GoogilyBoogily/googilyboogily-claude-power-tools (2 stars, last pushed 4mo ago), licensed MIT. It adds 81 tokens to every session and 1,789 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

mongodb-performance-advisor

Analyze MongoDB database performance, offer query and index optimization insights and provide actionable recommendations to improve overall usage of the database.

github/awesome-copilot · 29 tokens

db-mongodb-expert

Expert in MongoDB 6.x/7.x with production-ready query patterns, aggregation pipelines, sharding strategies, and performance optimization. Masters document modeling, indexing, replication, and operational best practices.

andisab/swe-marketplace · 46 tokens

data-modeler

Data Modeler. Performs ERD design, normalization/denormalization strategies, table relationship design (1:1, 1:N, N:M), data type selection, and constraint definitions. Proficient in both RDBMS (PostgreSQL, MySQL) and NoSQL (MongoDB, DynamoDB).

revfactory/harness-100 · 69 tokens

data-manager

Data manager. Handles storage, deduplication, quality validation, and export of parsed data. Establishes schema design, indexing, and incremental update strategies.

revfactory/harness-100 · 34 tokens

database

Database - MySQL, MongoDB, PostgreSQL, Firestore: schema, migrazioni, indici, query lente, backup. Usalo per lavoro su schema e dati.

thomascasali/claude-kb-workflow · 39 tokens

db-designer

Use when designing or changing database schemas - new tables/collections, relations, embedding vs referencing, index strategy, migrations, or fixing slow queries. Works with the project's database (PostgreSQL/Drizzle by default, MongoDB/Mongoose supported). Read-only advisor; returns a schema design with indexes and…

AbdulmalekAlshugaa/claude-agents-fullstack · 68 tokens