Perfonext Build MCP server
MCP server for Next.js build stats, chunk attribution, and bundle optimization advice.
0 stars36 downloads/wk
Reviews
Write oneNobody has reviewed Perfonext Build MCP yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Perfonext Build MCP tools (11)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
compare_buildsCompare two loaded Next.js builds and show which routes and chunks grew or shrank the most.
explain_growthIdentify which routes and chunks are responsible for bundle size growth between two loaded builds.
explain_shared_chunksShow which npm packages and app code dominate the shared chunks loaded by many routes, to identify
find_duplicatesFind npm packages whose code is bundled into more than one chunk, wasting bytes, ranked by wasted
get_largest_routesRank the heaviest user-facing routes in a loaded Next.js build by emitted chunk bytes.
get_shared_chunksRank the heaviest shared chunks in a loaded Next.js build and show which routes depend on them.
how_to_collect_statsExplain how to generate the webpack stats file (.next/stats.json) required by the bundle attribution
load_build_statsParse a Next.js .next directory and load route and chunk footprint data for later analysis.
load_webpack_statsParse the webpack module stats file (.next/stats.json) and link it to a build loaded with
suggest_optimizationsAggregate route, chunk, and (when loaded) webpack-stats evidence into severity-ranked,
trace_importExplain why a module is bundled by tracing its import chain from an entry point to the module.
Public scan report
scanner v0.1.10 · 2026-10-16 · same rubric, same numbers if you re-run it
- Code scan39 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 4 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Perfonext Build MCP compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 92/100
- higher than 93% of 48,243 servers
- Tools
- 11
- the typical server has 7
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 36
- more than 25% of 12,306 servers with a package
What its tools let an agent do: 11 read
Install Perfonext Build MCP in Claude Code, Cursor or VS Code
Runs npx -y @perfonext/build-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add perfonext-build-mcp -- npx -y @perfonext/build-mcp
What the publisher says
From the Perfonext Build MCP repository's README, as published. We do not edit it. Read it on GitHub
perfonext-build-mcp
Analyze Next.js build artifacts to find heavy routes, shared chunks, and bundle growth.
perfonext-build-mcp is a Model Context Protocol (MCP) server that gives GitHub Copilot, Claude Desktop, Claude Code, and other MCP clients structured bundle analysis for Next.js performance work. It loads .next build artifacts and turns them into route-size rankings, shared-chunk and duplication findings, and severity-ranked fix suggestions — evidence agents can reason over instead of inspecting raw .next manifests.
Quick Start
perfonext-build-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/build-mcpOr install globally:
npm install -g @perfonext/build-mcpThe executable command remains perfonext-build-mcp after installation.
VS Code
Add the server to .vscode/mcp.json (the workspace MCP configuration file):
{
"servers": {
"perfonext-build": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@perfonext/build-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 claudedesktopconfig.json:
{
"mcpServers": {
"perfonext-build": {
"command": "npx",
"args": ["-y", "@perfonext/build-mcp"]
}
}
}Restart Claude Desktop to pick up the new server.
Claude Code
Add the server with the CLI:
claude mcp add perfonext-build -- npx -y @perfonext/build-mcpOr add it directly to .mcp.json:
{
"mcpServers": {
"perfonext-build": {
"command": "npx",
"args": ["-y", "@perfonext/build-mcp"]
}
}
}Other MCP clients
Any client that supports stdio MCP servers can launch the same command/args pair: command: npx, args: ["-y", "@perfonext/build-mcp"]. Consult your client's docs for where its MCP server configuration file lives.
For a locally-built checkout, point command/args at node and the repo's dist/index.js instead, in any of the configurations above.
Then ask your assistant: "Load the Next.js build in ./.next and show me the largest routes."
Troubleshooting
spawn npx ENOENT / spawn node ENOENT on macOS with nvm
If the server fails to start with spawn npx ENOENT (or spawn node ENOENT), your editor/app was likely launched from the Dock/Finder and cannot see nvm. GUI apps on macOS do not load shell config (.zshrc/.bashrc), so npx/node installed via nvm are not on PATH. This applies to VS Code, Claude Desktop, and any other GUI MCP client on macOS.
Fix it by giving the MCP config an absolute npx path and a PATH that includes the same Node bin directory (dirname $(which npx)):
{
"command": "/Users/YOU/.nvm/versions/node/v<version>/bin/npx",
"args": ["-y", "@perfonext/build-mcp"],
"env": {
"PATH": "/Users/YOU/.nvm/versions/node/v<version>/bin:/usr/bin:/bin"
}
}Merge the command/args/env fields above into your client's server entry (e.g. under servers for VS Code or mcpServers for Claude Desktop/Code).
What It Does
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Perfonext Build MCP: common questions
- Is Perfonext Build MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the Perfonext Build MCP safety report
- How do I install Perfonext Build MCP?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Perfonext Build MCP need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Perfonext Build MCP maintained?
- The last commit was 24 days ago (2026-10-13). The latest release is v0.6.2.
- How does Perfonext Build MCP compare with other MCP servers?
- safety score 92/100 (higher than 93% of 48,243 servers); tools 11 (the typical server has 7); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.