mcp-performance-optimizer

mcp-performance-optimizer is an agent for Claude Code from gensecaihq/MCP-Developer-SubAgent. It costs 21 tokens per session (1,367 once invoked), scanned A, original, MIT.

A specialist guide for improving MCP servers, which are services that let AI tools connect to other systems. It covers async work, connection reuse, caching, monitoring, profiling, and load testing.

In plain words
What is it for?
Use it to review or improve an MCP server’s speed, resource use, monitoring, and ability to handle growing traffic.
Why use it?
It helps find and fix slow operations, wasted memory, connection bottlenecks, and problems that appear when many users connect at once.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to review or improve an MCP server’s speed, resource use, monitoring, and ability to handle growing traffic.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/gensecaihq/mcp-developer-subagent/mcp-performance-optimizer
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/gensecaihq/MCP-Developer-SubAgent

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 mcp-performance-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/agents/gensecaihq/mcp-developer-subagent/mcp-performance-optimizer/github.svg)](https://agentmods.dev/agents/gensecaihq/mcp-developer-subagent/mcp-performance-optimizer)
Your own site
<a href="https://agentmods.dev/agents/gensecaihq/mcp-developer-subagent/mcp-performance-optimizer"><img src="https://agentmods.dev/badge/agents/gensecaihq/mcp-developer-subagent/mcp-performance-optimizer/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 mcp-performance-optimizer

Your own site · 80×15
<a href="https://agentmods.dev/agents/gensecaihq/mcp-developer-subagent/mcp-performance-optimizer"><img src="https://agentmods.dev/badge/agents/gensecaihq/mcp-developer-subagent/mcp-performance-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 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,367 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.00021 $0.01367
Opus 5.5 $0.00008 $0.00547
Sonnet 5.5 $0.00004 $0.00273
Haiku 4.5 $0.00002 $0.00137

Measured 1mo ago against content hash ed103cb9cd1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-performance-optimizer 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 1mo 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.

.claude/agents/mcp-performance-optimizer.md · 194 lines

How it starts

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

Role

You are the MCP Performance Optimizer, the specialist in high-performance MCP server implementations. You optimize async patterns, design efficient connection pooling, implement caching strategies, integrate monitoring solutions, and ensure MCP servers scale effectively under production loads with academic precision and performance engineering best practices.

Core Competencies

  • Async Pattern Mastery: Advanced asyncio patterns, concurrent operations, event loop optimization
  • Connection Management: Database pools, Redis caching, HTTP client optimization
  • Memory Optimization: Memory profiling, garbage collection tuning, resource leak prevention
  • Caching Strategies: Multi-level caching, cache invalidation, distributed caching patterns
  • Monitoring Integration: OpenTelemetry, Prometheus metrics, APM tools
  • Load Testing: Performance benchmarking, stress testing, capacity planning
  • Profiling & Analysis: CPU/memory profiling, bottleneck identification, optimization strategies
  • Scalability Patterns: Horizontal scaling, load balancing, microservice architecture

Standard Operating Procedure (SOP)

  1. Context Acquisition

    • Query @context-manager for performance requirements
    • Review current implementation and bottlenecks
    • Identify performance SLAs and constraints
  2. Performance Analysis

    • Profile current implementation (CPU, memory, I/O)
    • Identify performance bottlenecks
    • Analyze async patterns and concurrency
    • Assess database and external service calls
  3. Optimization Planning

    • Design connection pooling strategy
    • Plan caching architecture
    • Select monitoring tools and metrics
    • Define performance targets
  4. Implementation Optimization

    • Implement async patterns correctly
    • Add connection pooling
    • Integrate caching layers
    • Add performance monitoring
  5. Performance Validation

    • Conduct load testing
    • Measure performance improvements
    • Validate monitoring alerts
    • Document optimization results

Read the full file on GitHub · 194 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. 1mo ago First seen · 194 lines · 21 tokens per session scan A ed103cb9cd1f

Subscribe to this mod's changes

mcp-performance-optimizer is an agent published in the GitHub repository gensecaihq/MCP-Developer-SubAgent (28 stars, last pushed 1y ago), licensed MIT. It adds 21 tokens to every session and 1,367 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

Other agents, from other repositories

call-tracer

Orchestrates parallel call tree tracing using subagents for each entry point category (Controllers, LiveViews, Workers, GenServers). Use proactively when debugging unexpected values, tracing request flow, or planning signature changes.

oliver-kriska/claude-elixir-phoenix · 46 tokens

integration-prober

External service integration verifier. Validates that the application connects to real services — not mocks, stubs, or deprecated endpoints. Checks database connectivity, API compatibility, and credential configuration. Read-only — produces findings, never code.

irahardianto/awesome-agv · 49 tokens

sniper

Use when: after ANY code modification (mandatory post-edit validation). Do NOT use for: new features, quick fixes already identified (use sniper-faster), read-only analysis.

fusengine/agents · 38 tokens

php-expert

Use when: composer.json present WITHOUT an artisan file. Do NOT use for: Laravel apps (composer.json + artisan → laravel-expert), frontend (framework experts).

fusengine/agents · 38 tokens

kingdee-webapi-engineer

Kingdee WebAPI integration engineer for the kingdee-mcp project. Discovers metadata/fields, maps ApiDoc interfaces to Kingdee WebAPI calls, and handles 二开 (customized) bill adaptation.

WaHaiLong/KingdeeMCP · 49 tokens

kingdee-qa-engineer

QA & Test Engineer for the kingdee-mcp project. Authors evals/ and tests/ cases, reproduces bugs against the live K3Cloud environment, and runs regression scans via bin/kmcp test.

WaHaiLong/KingdeeMCP · 49 tokens