Playwright-Lighthouse MCP Server
A MCP server that analyzes web site performance using Playwright and Lighthouse.
Overview
Playwright-Lighthouse MCP Server is a server that analyzes website performance using Playwright and Lighthouse through the Model Context Protocol (MCP).
To use the server, clone the repository, install the dependencies, and run the server with the appropriate configuration for MCP clients.
- Performance analysis using Lighthouse - Screenshot capture of web pages - Integration with MCP clients like Claude for Desktop
- Analyzing the performance of web applications.
- Capturing screenshots for visual regression testing.
- Integrating with other tools that support the Model Context Protocol.
Add to your AI client
Use these steps to connect Playwright-Lighthouse MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"playwright-lighthouse-mcp-kbyk004": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-playwright-lighthouse-mcp-kbyk004"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"playwright-lighthouse-mcp-kbyk004": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-playwright-lighthouse-mcp-kbyk004"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"playwright-lighthouse-mcp-kbyk004": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-playwright-lighthouse-mcp-kbyk004"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"playwright-lighthouse-mcp-kbyk004": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-playwright-lighthouse-mcp-kbyk004"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"playwright-lighthouse-mcp-kbyk004": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-playwright-lighthouse-mcp-kbyk004"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"playwright-lighthouse-mcp-kbyk004": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-playwright-lighthouse-mcp-kbyk004"
]
}
}
}FAQ
What are the prerequisites for using this server?
You need Node.js 18 or higher and npm installed.
Can I integrate this server with other applications?
Yes! It can be integrated with any client that supports the Model Context Protocol (MCP).
What kind of analysis does it perform?
It performs performance analysis and can capture screenshots of web pages.