原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Perfonext Profiler MCP

作者:souvikdu版本 0.7.3i★ –i在你的电脑上运行
注册名称io.github.souvikdu/perfonext-profiler-mcp

安装

概览

作者提供的说明(英文原文)

MCP server for analyzing V8/Chrome CPU profiles with line-level tick attribution.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 网页与浏览器

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "perfonext-profiler": {
      "command": "npx",
      "args": [
        "-y",
        "@perfonext/profiler-mcp"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add perfonext-profiler -- npx -y @perfonext/profiler-mcp

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "perfonext-profiler": {
      "command": "npx",
      "args": [
        "-y",
        "@perfonext/profiler-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "perfonext-profiler": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@perfonext/profiler-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 souvikdu 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“网页与浏览器”中的其他服务器比较i

  • 星标数多于此分类中其他 1378 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1378 个服务器的 33% 更新
  • 基础检查结果等于或优于此分类中其他 1378 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Perfonext Profiler MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.7.3)于2个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Browser Use, Chrome DevTools MCP, MCP Server Browser

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Browser Use

作者:browser-use

Browser agents and stealth cloud browsers for AI: run web tasks, fill forms, extract data.

电脑或云端★ 120,087MIT17天前更新
安装

Chrome DevTools MCP

作者:ChromeDevTools

MCP server for Chrome DevTools

在你的电脑上运行★ 54,821Apache-2.016天前更新
安装

MCP Server Browser

作者:bytedance

MCP server for browser use access

在你的电脑上运行★ 39,550Apache-2.014个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

perfonext-profiler-mcp

Analyze V8 and Chrome CPU profiles to find hotspots in Next.js servers and scripts.

perfonext-profiler-mcp is a Model Context Protocol (MCP) server that gives GitHub Copilot, Claude Desktop, Claude Code, and other MCP clients structured CPU profiling data for Next.js performance work. It loads V8 and Chrome CPU profiles and turns them into hotspot rankings, per-package costs, and source-annotated hot lines — evidence agents can reason over instead of ingesting multi-megabyte profile dumps.

Quick Start

perfonext-profiler-mcp is a standard MCP stdio server, so it works with any MCP-compatible client (GitHub Copilot in VS Code, Claude Desktop, Claude Code, Cursor, and others). Run it directly with npx:

npx -y @perfonext/profiler-mcp

Or install globally:

npm install -g @perfonext/profiler-mcp

The executable command remains perfonext-profiler-mcp after installation.

VS Code

Add the server to .vscode/mcp.json (the workspace MCP configuration file):

{

"servers": { "perfonext-profiler": { "type": "stdio", "command": "npx", "args": ["-y", "@perfonext/profiler-mcp"] } } }

Reload the VS Code window and run MCP: List Servers to start it, or accept the trust prompt when it appears.

Claude Desktop

Add the server to claude_desktop_config.json:

{

"mcpServers": { "perfonext-profiler": { "command": "npx", "args": ["-y", "@perfonext/profiler-mcp"] } } }

Restart Claude Desktop to pick up the new server.

Claude Code

Add the server with the CLI:

claude mcp add perfonext-profiler -- npx -y @perfonext/profiler-mcp

Or add the same mcpServers entry to .mcp.json.

Other MCP clients

Any client that supports stdio MCP servers can launch npx -y @perfonext/profiler-mcp. Consult your client's documentation for its MCP server configuration format.

For a locally-built checkout, point command/args at node and the repo's dist/index.js instead.

Troubleshooting

spawn npx ENOENT / spawn node ENOENT on macOS with nvm

If the server fails to start with this error, your GUI MCP client likely cannot see nvm. GUI apps on macOS do not load shell config (.zshrc/.bashrc), so nvm-installed npx/node are not on PATH. Use an absolute npx path and include the same Node directory in PATH:

{

"servers": { "perfonext-profiler": { "type": "stdio", "command": "/Users/YOU/.nvm/versions/node/v /bin/npx", "args": ["-y", "@perfonext/profiler-mcp"], "env": { "PATH": "/Users/YOU/.nvm/versions/node/v /bin:/usr/bin:/bin" } } } }

Merge these fields into your client's server entry, under servers for VS Code or mcpServers for Claude Desktop/Code. Then ask your assistant: _"How do I capture a CPU profile of my Next.js server?"_

What It Does

  • loads .cpuprofile files and Chrome trace exports that contain CPU profile data
  • identifies the hottest functions by self time, annotated with the originating npm package
  • explains caller and callee relationships for a selected function
  • reads actual source code for hot functions and annotates each line with V8 sample counts (v0.2.0)
  • aggregates CPU self-time per npm package to find expensive third-party dependencies (v0.3.0)
  • compares two profiles to surface regressions and improvements
  • returns deterministic optimization suggestions for common hotspots
  • summarizes loaded profiles so an MCP client can keep context tight

Tools

ToolDescription
how_to_collectReturn a ready-to-run command and step-by-step recipe for capturing a .cpuprofile, then loading it. Use this when you don't have a profile yet
load_profileParse and load a .cpuprofile file or Chrome trace export from disk
get_hotspotsFind top functions by self-time. Each entry includes a package field identifying the npm package or (user code)
explain_functionExplain a function's timing, callers, and callees. Pass includeSource: true to attach annotated source lines
read_source_contextRead the actual source file for a hot function and annotate each line with tick counts from positionTicks
get_package_costsAggregate CPU self-time by npm package — shows which dependencies are most expensive
compare_profilesCompare two profiles and highlight regressions
suggest_optimizationsGenerate structured, multi-pattern optimization suggestions for hot functions. Detects high fan-in, recursion, dominant callers, and V8-specific patterns. Deduplicates functions split across multiple call sites
get_profile_summarySummarize one profile or list all loaded profiles

Every tool result carries a nextStep breadcrumb pointing at the natural follow-up call, so an MCP client can walk the collect → analyze → fix loop without guessing.

Example Prompts

  • "How do I capture a CPU profile of my Next.js server?"
  • "Load the CPU profile at ./profile.cpuprofile and show me the top hotspots."
  • "Which npm packages are consuming the most CPU in this profile?"
  • "Explain why processData is expensive in the loaded profile."
  • "Show me the actual source lines for processData and mark which lines are hottest."
  • "Explain transformResult and include the annotated source code."
  • "Compare my baseline and current CPU profiles and tell me what got slower."
  • "Suggest optimizations for the top three hotspots."

Deep Tool Reference

Per-tool input/output schemas and manual profile capture

how_to_collect details
// Input

{ "scenario": "next-server" } // or "script"; defaults to "next-server"

// Output { "scenario": "next-server", "summary": "Profile a production Next.js server while it handles a single request. ...", "command": "node --cpu-prof --cpu-prof-dir=./.perf-profiles ./node_modules/next/dist/bin/next start", "steps": [ "...", "load_profile({ filePath: \"./.perf-profiles/ .cpuprofile\" })" ], "outputDir": "./.perf-profiles", "nextStep": "After stopping the server, call load_profile with the .cpuprofile ..." }

next-server profiles a production Next.js server while it serves a single request. If next start says standalone output is unsupported, use the script scenario with .next/standalone/server.js. script profiles that standalone server (or another Node entry). Keep the scenario to one route and one hit. Node writes one .cpuprofile per process/worker thread into the output directory. The Next server command uses Node CLI flags (not NODE_OPTIONS) so it is the same on Unix and Windows.

read_source_context details
// Input

{ "profileId": " ", "functionName": "myFn", "contextLines": 10 }

// Output (per line) { "lineNumber": 42, "content": " for (let i = 0; i < items.length; i++) {", "ticks": 18, // V8 samples that landed on this line "isHot": true // true when ticks >= 50% of peak ticks for this function }

The returned window is sized to cover the function's actual hot lines, not just a fixed radius around its declaration — a function's real bottleneck is often well past its function line. contextLines (default 10) sets the minimum padding around both the declaration and the hot lines; if any ticks still fall outside the returned window, the top-level result includes hiddenTicks (a count) and a warning telling you to retry with a larger contextLines. explain_function also accepts contextLines when called with includeSource: true.

Only files inside the current working directory can be read. file:// URLs and absolute paths are both handled; http://, node: builtins, and paths outside the project root are rejected.

suggest_optimizations details
// Input

{ "profileId": " ", "limit": 5 }

// Output (per function) { "function": "processData", "file": "file:///app/src/processor.js", "line": 10, "selfPercent": "18.2%", "patterns": [ { "pattern": "high-fan-in", "detail": "Called from 6 distinct call sites (e.g. renderRow, buildTree, …)", "suggestion": "This function is a shared hot path. Ensure it is well-optimised and monomorphic …" }, { "pattern": "hot-caller", "detail": "84% of calls come from \"renderRow\"", "suggestion": "Focus optimisation effort on \"renderRow\" rather than this function …" } ], "topSuggestion": "This function is a shared hot path …" }

Patterns detected (multiple can fire for the same function):

PatternTrigger
gc-pressureFunction name matches GC/Scavenge/MarkCompact
json-serializationJSON.parse / JSON.stringify
regex-costRegExp / exec / test calls
v8-deoptCompile / Recompile / Optimize / Deoptimize
high-fan-in≥ 3 distinct parent call sites
recursionFunction appears in its own descendant sub-tree
hot-callerOne caller accounts for ≥ 80% of call-site occurrences
cpu-boundFallback when no other pattern matches

Functions that appear at multiple call sites are automatically merged before ranking so the same logical function is only reported once.

get_package_costs details
// Input

{ "profileId": " ", "limit": 10 }

// Output (per package) { "rank": 1, "package": "lodash", "selfTime": "42.3ms", "selfPercent": "14.1%", "totalTimeIncludingCallbacks": "58.0ms", "totalPercentIncludingCallbacks": "19.3%", "topFunctions": [ { "function": "chunk", "file": "lodash/chunk.js", "line": 41, "selfTime": "28.0ms", "selfPercent": "9.3%" } ] }

selfTime is the time s

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx