Skip to main content
Glama
Sindhura30

Performance Analysis MCP Server

by Sindhura30

Performance Analysis MCP Server

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

Related MCP server: LightScout MCP

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 /analyze with JSON { "url": "https://..." } → returns analysis JSON plus summary string.

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 validator

  • src/collectors/playwright.ts — Playwright collector

  • src/collectors/cdp.ts — CDP network capture helper

  • src/tools/analyze-page.ts — orchestrates collectors and adapts results

  • src/tools/lighthouse.ts — Lighthouse runner (Phase 2)

  • src/tools/format-report.ts — text formatter for human-friendly output

  • src/server/mcp.ts — MCP stdio server and analyze_page tool

  • src/server/http.ts — HTTP compatibility server

Troubleshooting

  • If Playwright complains about missing browsers, run npx playwright install.

  • If tsc not found, run npm install to install devDependencies.

Next steps

  • Add automated recommendations, persistence, or LLM analysis integration.

Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Enables AI models to perform Google Lighthouse website performance analysis, including Core Web Vitals, accessibility, SEO audits, and actionable optimization recommendations. Provides comprehensive web performance insights through natural language interactions.
    708
    3
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Core Web Vitals analysis powered by Lighthouse. Four tools: analyze a URL, compare two URLs, check against thresholds, or crawl an entire site. Works with Claude Code, Cursor, Windsurf, and any MCP-compatible AI tool.
    4
    11
    MIT
  • A
    license
    B
    quality
    B
    maintenance
    Enables web performance analysis using Google PageSpeed Insights and Chrome UX Report APIs, providing compact metrics and diagnostics without local browser automation.
    5
    9
    MIT

View all related MCP servers

Related MCP Connectors

  • Website performance monitoring: scans, Core Web Vitals, RUM data and alerts.

  • Core Web Vitals metrics by CMS, CDN, and framework — free remote MCP, no auth.

  • Real User Monitoring for Core Web Vitals. Query LCP, INP, CLS field data from real visitors.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sindhura30/pageperformance-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server