playwright-lighthouse-mcp
If you are the rightful owner of playwright-lighthouse-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcpreview.com.
A MCP server that analyzes web site performance using Playwright and Lighthouse.
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
# Clone the repository
git clone https://github.com/kbyk004/playwright-lighthouse-mcp.git
cd playwright-lighthouse-mcp
# Install dependencies
npm install
npx playwright install
# Build
npm run build
Usage
Debugging MCP Server
npm run inspector
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
):
{
"mcpServers": {
"playwright-lighthouse": {
"command": "node",
"args": [
"/path-to/playwright-lighthouse-mcp/build/index.js"
]
}
}
}
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 for details
Related MCP Servers
View all browser_automation servers →Fetch
by modelcontextprotocol
A Model Context Protocol server that provides web content fetching capabilities, enabling LLMs to retrieve and process content from web pages.
markdownify-mcp
by zcaceres
Markdownify is a Model Context Protocol (MCP) server that converts various file types and web content to Markdown format.
deepwiki-mcp
by regenrek
This is an unofficial Deepwiki MCP Server that processes Deepwiki URLs, crawls pages, converts them to Markdown, and returns documents or lists by page.
mcp-playwright
by executeautomation
A Model Context Protocol server that provides browser automation capabilities using Playwright.
fetch-mcp
by zcaceres
This MCP server provides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown.
web-eval-agent
by Operative-Sh
operative.sh's MCP Server is a tool for autonomous debugging of web applications directly from your code editor.
cursor-talk-to-figma-mcp
by sonnylazuardi
This project implements a Model Context Protocol (MCP) integration between Cursor AI and Figma, allowing Cursor to communicate with Figma for reading designs and modifying them programmatically.