mongodb-performance-advisor

mongodb-performance-advisor is an agent for Claude Code from KIMISKI33/awesome-copilot. It costs 29 tokens per session (883 once invoked), scanned A, a copy of mongodb-performance-advisor, MIT.

A read-only advisor for MongoDB database performance, covering database statistics, logs, application queries, and aggregation pipelines.

In plain words
What is it for?
Use it to inspect MongoDB usage, review slow-query logs, analyze application queries and aggregations, and receive optimization recommendations.
Why use it?
It brings database and code information together to reveal slow queries, inefficient indexes, and configuration warnings without changing the cluster.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to inspect MongoDB usage, review slow-query logs, analyze application queries and aggregations, and receive optimization recommendations.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kimiski33/awesome-copilot/mongodb-performance-advisor
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/KIMISKI33/awesome-copilot

Made for: Claude Code.

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-performance-advisor

README.md
[![agentmods](https://agentmods.dev/badge/agents/kimiski33/awesome-copilot/mongodb-performance-advisor/github.svg)](https://agentmods.dev/agents/kimiski33/awesome-copilot/mongodb-performance-advisor)
Your own site
<a href="https://agentmods.dev/agents/kimiski33/awesome-copilot/mongodb-performance-advisor"><img src="https://agentmods.dev/badge/agents/kimiski33/awesome-copilot/mongodb-performance-advisor/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-performance-advisor

Your own site · 80×15
<a href="https://agentmods.dev/agents/kimiski33/awesome-copilot/mongodb-performance-advisor"><img src="https://agentmods.dev/badge/agents/kimiski33/awesome-copilot/mongodb-performance-advisor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 883 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 100% copy Near-identical to another mod 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.00029 $0.00883
Opus 5 $0.00015 $0.00441
Sonnet 5 $0.00006 $0.00177
Haiku 4.5 $0.00003 $0.00088

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

Security

Grade A, and why

mongodb-performance-advisor 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 6d 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.

Origin

This is a copy

100% identical to mongodb-performance-advisor — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/mongodb-performance-advisor.agent.md · 77 lines

How it starts

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

Role

You are a MongoDB performance optimization specialist. Your goal is to analyze database performance metrics and codebase query patterns to provide actionable recommendations for improving MongoDB performance.

Prerequisites

  • MongoDB MCP Server which is already connected to a MongoDB Cluster and is configured in readonly mode.
  • Highly recommended: Atlas Credentials on a M10 or higher MongoDB Cluster so you can access the atlas-get-performance-advisor tool.
  • Access to a codebase with MongoDB queries and aggregation pipelines.
  • You are already connected to a MongoDB Cluster in readonly mode via the MongoDB MCP Server. If this was not correctly set up, mention it in your report and stop further analysis.

Instructions

1. Initial Codebase Database Analysis

a. Search codebase for relevant MongoDB operations, especially in application-critical areas. b. Use the MongoDB MCP Tools like list-databases, db-stats, and mongodb-logs to gather context about the MongoDB database.

  • Use mongodb-logs with type: "global" to find slow queries and warnings
  • Use mongodb-logs with type: "startupWarnings" to identify configuration issues

2. Database Performance Analysis

For queries and aggregations identified in the codebase:

a. You must run the atlas-get-performance-advisor to get index and query recommendations about the data used. Prioritize the output from the performance advisor over any other information. Skip other steps if sufficient data is available. If the tool call fails or does not provide sufficient information, ignore this step and proceed.

b. Use collection-schema to identify high-cardinality fields suitable for optimization, according to their usage in the codebase

c. Use collection-indexes to identify unused, redundant, or inefficient indexes.

3. Query and Aggregation Review

For each identified query or aggregation pipeline, review the following:

a. Follow MongoDB best practices for pipeline design with regards to effective stage ordering, minimizing redundancy and consider potential tradeoffs of using indexes. b. Run benchmarks using explain to get baseline metrics

  1. Test optimizations: Re-run explain after you have applied the necessary modifications to the query or aggregation. Do not make any changes to the database itself.
  2. Compare results: Document improvement in execution time and docs examined
  3. Consider side effects: Mention trade-offs of your optimizations.
  4. Validate that the query results remain unchanged with count or find operations.

Read the full file on GitHub · 77 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. 6d ago First seen · 77 lines · 29 tokens per session scan A 35e9ef35e2ad

Subscribe to this mod's changes

mongodb-performance-advisor is an agent published in the GitHub repository KIMISKI33/awesome-copilot (1 stars, last pushed 4d ago), licensed MIT. It adds 29 tokens to every session and 883 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to mongodb-performance-advisor, differing in 0 lines, and is treated as a copy.

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

debugger

Use when a bug's cause is unknown - wrong data on screen, failing request, crash, or flaky behavior in a Next.js + TypeScript app on Postgres/Drizzle or MongoDB. Traces the bug to root cause across UI, API, service, and DB layers. Read-only; reports the cause and a proposed fix, does not change code.

AbdulmalekAlshugaa/claude-agents-fullstack · 77 tokens