Performance Analysis Server
БесплатноНе проверенCollects page performance metrics using Playwright, CDP, and Lighthouse, and returns a normalized PerformanceReport.
Описание
Collects page performance metrics using Playwright, CDP, and Lighthouse, and returns a normalized PerformanceReport.
README
Lightweight MCP server for collecting page performance metrics (Playwright + CDP + Lighthouse) and returning a normalized PerformanceReport.
Prerequisites
- Node.js (16+ recommended)
- npm
- Optional: network access to target URLs
Install
npm install
# Install Playwright browsers (required for collectors)
npx playwright install
Build / Type-check / Test
npm run build
npm run lint
npm test
Run as MCP Server
The default command starts an MCP stdio server with an analyze_page tool.
npm start
The MCP tool accepts:
{ "url": "https://example.com" }
It returns a human-readable summary plus structured PerformanceReport content.
Run HTTP Compatibility Server
The HTTP server is available for local testing and non-MCP clients. You can provide a default URL via DEFAULT_URL or pass a URL in each request.
npm run start:http
With a default URL:
DEFAULT_URL=https://example.com npx ts-node src/index.ts http --no-prompt
Server API
GET /health→ returns{ ok: true }POST /analyzewith JSON{ "url": "https://..." }→ returns analysis JSON plussummarystring.
Example using curl (returns JSON file):
curl -s -X POST http://localhost:3333/analyze \
-H "Content-Type: application/json" \
-d '{"url":"https://www.lowes.com"}' -o report.json
One-off analyze (CLI)
npx ts-node src/index.ts analyze https://www.lowes.com > report.json
The CLI prints JSON followed by a human-readable summary.
Files of interest
src/schema/performance-report.ts— canonical schema and validatorsrc/collectors/playwright.ts— Playwright collectorsrc/collectors/cdp.ts— CDP network capture helpersrc/tools/analyze-page.ts— orchestrates collectors and adapts resultssrc/tools/lighthouse.ts— Lighthouse runner (Phase 2)src/tools/format-report.ts— text formatter for human-friendly outputsrc/server/mcp.ts— MCP stdio server andanalyze_pagetoolsrc/server/http.ts— HTTP compatibility server
Troubleshooting
- If Playwright complains about missing browsers, run
npx playwright install. - If
tscnot found, runnpm installto install devDependencies.
Next steps
- Add automated recommendations, persistence, or LLM analysis integration.
Установка Performance Analysis Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/Sindhura30/pageperformance-mcpFAQ
Performance Analysis Server MCP бесплатный?
Да, Performance Analysis Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Performance Analysis Server?
Нет, Performance Analysis Server работает без API-ключей и переменных окружения.
Performance Analysis Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Performance Analysis Server в Claude Desktop, Claude Code или Cursor?
Открой Performance Analysis Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Playwright
Browser automation, scraping, screenshots
автор: MicrosoftPuppeteer
Browser automation and web scraping.
автор: modelcontextprotocolopentabs-dev/opentabs
Plugin-based MCP server + Chrome extension that gives AI agents access to web applications through the user's authenticated browser session. 100+ plugins with a
автор: opentabs-devrobhunter/agentdeals
1,500+ developer infrastructure deals, free tiers, and startup programs across 54 categories. Search deals, compare vendors, plan stacks, and track pricing chan
автор: robhunterCompare Performance Analysis Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории browse
