Playwright-Lighthouse MCP Server
local-only server
The server can only run on the client’s local machine because it depends on local resources.
Integrations
Runs performance analysis on websites, providing scores for performance, accessibility, best-practices, SEO, and PWA categories, along with specific improvement recommendations
Analyzes Progressive Web App compliance as one of the optional categories in the Lighthouse performance analysis
Playwright-Lighthouse MCP Server
A MCP server that analyzes web site performance using Playwright and Lighthouse. Through the Model Context Protocol (MCP), LLMs can perform web site performance analysis.
Features
- Performance analysis with Lighthouse
- Screenshot capture
Setup
Prerequisites
- Node.js 18 or higher
- npm
Installation
Usage
Debugging MCP Server
Integration with MCP Clients
This server is designed to be used with clients that support the Model Context Protocol (MCP). For example, it can be integrated with Claude for Desktop.
Configuration Example for Claude for Desktop
Add the following to the Claude for Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json
):
Available Tools
1. run-lighthouse
Runs a Lighthouse performance analysis on the currently open page.
Parameters:
url
: The URL of the website you want to analyzecategories
: Array of categories to analyze (default: ["performance"])- Available categories: "performance", "accessibility", "best-practices", "seo", "pwa"
maxItems
: Maximum number of improvement items to display for each category (default: 3, max: 5)
2. take-screenshot
Takes a screenshot of the currently open page.
Parameters:
url
: The URL of the website you want to capturefullPage
: If true, captures a screenshot of the entire page (default: false)
Output Format
The analysis results include:
- Overall scores for each selected category with color indicators
- Key improvement areas grouped by category
- Path to the saved report file
License
MIT License - see LICENSE for details
This server cannot be installed
A server that analyzes website performance using Playwright and Lighthouse, allowing LLMs to perform web performance analysis through the Model Context Protocol.