{
  "markdown": "\n# mcp-perf-tools\n\nPerformance analysis tools for AI agents, exposed via the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/).\n\n## Tools\n\n### benchmark\n\nBenchmark 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.\n\n**Parameters:**\n- `code` (string) — JavaScript code to benchmark\n- `iterations` (number, default 1000) — Number of iterations\n- `compareCode` (string, optional) — Second implementation to compare\n- `labelA` / `labelB` (string) — Labels for comparison output\n\n### memory_analyze\n\nAnalyze 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.\n\n**Parameters:**\n- `action` — `\"snapshot\"` | `\"analyze\"` | `\"clear\"`\n\n### big_o_estimate\n\nEstimate 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.\n\n**Parameters:**\n- `inputSizes` (number[]) — Array of input sizes\n- `executionTimesMs` (number[]) — Corresponding execution times in ms\n\n### bundle_analyze\n\nAnalyze a JavaScript bundle file: raw size, gzip compressed estimate, detected module count, largest modules, and tree-shaking opportunities (side effects, duplicates).\n\n**Parameters:**\n- `filePath` (string) — Absolute path to the bundle file\n\n### load_test\n\nSimple 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.\n\n**Parameters:**\n- `url` (string) — Target URL\n- `totalRequests` (number, default 100) — Total requests to send\n- `concurrency` (number, default 10) — Concurrent request count\n- `method` (string, default \"GET\") — HTTP method\n- `headers` (object, optional) — HTTP headers\n- `body` (string, optional) — Request body\n- `timeoutMs` (number, default 30000) — Request timeout\n\n## Setup\n\n```bash\nnpm install\nnpm run build\n```\n\n## Usage with Claude Desktop\n\nAdd to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"perf-tools\": {\n      \"command\": \"node\",\n      \"args\": [\"D:/products/mcp-servers/mcp-perf-tools/dist/index.js\"]\n    }\n  }\n}\n```\n\n## License\n\nMIT\n",
  "bytes": 2383,
  "sha": "80f833ea363d9ada76ca834b579757e714289c689d112175d95e44b5d35062ca",
  "repo_slug": "rog0x/mcp-perf-tools",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_rog0x_perf_1b7ba560/readme"
}