rog0x avatar

Perf

rog0x/mcp-perf-tools

Gives Claude five performance analysis tools for profiling code directly in conversation. The benchmark tool runs JavaScript snippets with statistical timing (p95, p99, ops/sec) and side-by-side comparisons. Memory analyze takes heap snapshots over time and uses linear regression to spot leaks. Big O estimate fits your timing data against common complexity classes and shows an ASCII growth curve. Bundle analyze inspects JavaScript bundles for size, compression, and tree-shaking opportunities. Load test hits HTTP endpoints with configurable concurrency and reports percentile latencies. Useful when you're optimizing hot paths, debugging memory issues, or need quick performance feedback without leaving the chat.

tools
5
transport
STDIO
last updated
Mar 22, 2026

Tools

5 tools

Public tool metadata for what this MCP can expose to an agent.

benchmarkBenchmark JavaScript code execution. Run a snippet N times and measure min/max/avg/median/p95/p99 latency and operations per second. Optionally compare two implementations side by side.

Benchmark JavaScript code execution. Run a snippet N times and measure min/max/avg/median/p95/p99 latency and operations per second. Optionally compare two implementations side by side.

No parameter schema in public metadata yet.

memory_analyzeAnalyze Node.js memory usage: heap used/total, RSS, external memory, and array buffers. Takes snapshots over time and uses linear regression to detect trends and potential memory leaks.

Analyze Node.js memory usage: heap used/total, RSS, external memory, and array buffers. Takes snapshots over time and uses linear regression to detect trends and potential memory leaks.

No parameter schema in public metadata yet.

big_o_estimateEstimate Big O complexity from empirical timing data. Fits measurements against O(1), O(log n), O(n), O(n log n), O(n^2), O(n^3), and O(2^n) using R-squared scoring. Includes an ASCII growth curve visualization.

Estimate Big O complexity from empirical timing data. Fits measurements against O(1), O(log n), O(n), O(n log n), O(n^2), O(n^3), and O(2^n) using R-squared scoring. Includes an ASCII growth curve visualization.

No parameter schema in public metadata yet.

bundle_analyzeAnalyze a JavaScript bundle file: raw size, gzip compressed estimate, detected module count, largest modules, and tree-shaking opportunities (side effects, duplicates).

Analyze a JavaScript bundle file: raw size, gzip compressed estimate, detected module count, largest modules, and tree-shaking opportunities (side effects, duplicates).

No parameter schema in public metadata yet.

load_testSimple HTTP load tester. Sends N requests at a given concurrency level and reports response time percentiles, error rate, throughput (req/sec), and status code distribution.

Simple HTTP load tester. Sends N requests at a given concurrency level and reports response time percentiles, error rate, throughput (req/sec), and status code distribution.

No parameter schema in public metadata yet.

Sponsors

Readme

mcp-perf-tools

Performance analysis tools for AI agents, exposed via the Model Context Protocol (MCP).

Tools

benchmark

Benchmark JavaScript code execution. Run a snippet N times and measure min/max/avg/median/p95/p99 latency and operations per second. Optionally compare two implementations side by side.

Parameters:

  • code (string) — JavaScript code to benchmark
  • iterations (number, default 1000) — Number of iterations
  • compareCode (string, optional) — Second implementation to compare
  • labelA / labelB (string) — Labels for comparison output

memory_analyze

Analyze Node.js memory usage: heap used/total, RSS, external memory, and array buffers. Takes snapshots over time and uses linear regression to detect trends and potential memory leaks.

Parameters:

  • action — "snapshot" | "analyze" | "clear"

big_o_estimate

Estimate Big O complexity from empirical timing data. Fits measurements against O(1), O(log n), O(n), O(n log n), O(n^2), O(n^3), and O(2^n) using R-squared scoring. Includes an ASCII growth curve visualization.


View the full README on GitHub

Details

Repository
github.com/rog0x/mcp-perf-tools
Category
AI & LLM Tools
Package
@rog0x/mcp-perf-tools
Transport
STDIO
Registry
MCP registry, active

More from rog0x

Related AI & LLM Tools MCP servers

View all
1runrelay avatarMcp Relayrunrelay/app-runrelayRunRelay MCP relay — AI agent threads, HITL confirmations, and travel capability discovery.0stars
2rupert1987 avatarAlya — The Hub for Autonomous Agentsrupert1987/alya-mcpOperator-as-agent MCP hub. 6 tools. First $5 free, then $0.001/call.0stars
3saybanet avatarSayba AI Agent Social Platformsaybanet/sayba-platform-mcp-serverAI Agent social network with 23 MCP tools for social, tasks, skills, and XC token economy.0stars
4saybanet avatarSayba Skill Marketsaybanet/sayba-skill-mcp-serverDiscover, invoke, publish, and rate AI Agent skills on Sayba platform0stars
5sciencelogo avatarScienceLogosciencelogo/mcpWrite and validate ScienceLogo workflows from any AI agent.0stars
6skewing1 avatarInsureLinkio.github.skewing1/insurelinkAI agent-to-agent SLA agreements on Base with insurance, reputation, and x402 payments.0stars