Lighthouse MCP Server
About
MCP server that enables AI agents to perform comprehensive web audits using Google Lighthouse with 13+ tools for performance, accessibility, SEO, and security analysis.
Details
- License
- MIT
Explore
- 🚀 Performance Analysis: Complete Lighthouse audits with Core Web Vitals, performance scores, and optimization recommendations
- ♿ Accessibility Audits: WCAG compliance checking and accessibility score analysis
- 🔍 SEO Analysis: Search engine optimization audits and best practice recommendations
- 🔒 Security Assessment: HTTPS, CSP, and security vulnerability scanning
- 📊 Resource Analysis: JavaScript, CSS, image, and font optimization opportunities
- 📱 Mobile vs Desktop: Comparative analysis across devices with throttling options
- ⚡ Core Web Vitals: LCP, FID, CLS monitoring with threshold checking
- 🎯 Performance Budgets: Custom performance thresholds and budget monitoring
- 📚 Reference Resources: Built-in guidelines and best practices for web performance, accessibility, SEO, and security
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Lighthouse MCP ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install the Lighthouse MCP server with your preferred client using one of the configurations below:
{
"mcpServers": {
"lighthouse": {
"command": "npx",
"args": ["@danielsogl/lighthouse-mcp@latest"]
}
}
}
CHROME_PATH=/usr/bin/google-chrome npx @danielsogl/lighthouse-mcp@latest
In your MCP config:
json{
"mcpServers": {
"lighthouse": {
"command": "npx",
"args": ["@danielsogl/lighthouse-mcp@latest", "--chrome-path", "/usr/bin/google-chrome"]
}
}
}
<details>
<summary><b>Manual VS Code Installation</b></summary>
You can also install the Lighthouse MCP server using the VS Code CLI:
bash
<details>
<summary><b>Manual Cursor Installation</b></summary>
Go to Cursor Settings → MCP → Add new MCP Server. Name it "lighthouse", use command type with the command npx @danielsogl/lighthouse-mcp@latest:
{
"mcpServers": {
"lighthouse": {
"command": "npx",
"args": ["@danielsogl/lighthouse-mcp@latest"]
}
}
}
</details>
<details>
<summary><b>Manual Windsurf Installation</b></summary>
Follow the Windsurf MCP documentation. Use the following configuration:
{
"mcpServers": {
"lighthouse": {
"command": "npx",
"args": ["@danielsogl/lighthouse-mcp@latest"]
}
}
}
</details>
<details>
<summary><b>Claude Desktop Installation</b></summary>
Follow the MCP install guide, use the following configuration:
{
"mcpServers": {
"lighthouse": {
"command": "npx",
"args": ["@danielsogl/lighthouse-mcp@latest"]
}
}
}
</details>
run_audit
Run a comprehensive Lighthouse audit on a website
get_accessibility_score
Get the accessibility score and recommendations for a website
get_seo_analysis
Get SEO analysis and recommendations for a website
get_performance_score
Get the performance score for a website
get_core_web_vitals
Get Core Web Vitals metrics for a website
compare_mobile_desktop
Compare website performance between mobile and desktop devices
check_performance_budget
Check if website performance meets specified budget thresholds
get_lcp_opportunities
Get LCP optimization opportunities for a website
find_unused_javascript
Find unused JavaScript code to reduce bundle size
analyze_resources
Analyze website resources (images, JS, CSS, fonts) for optimization opportunities
get_security_audit
Perform security audit checking HTTPS, CSP, and other security measures
The Lighthouse MCP server provides the following tools for comprehensive web analysis:
| Tool | Description | Parameters |
| ------------------------- | ------------------------------------------- | ---------------------------------------------- |
| run_audit | Run a comprehensive Lighthouse audit | url, categories?, device?, throttling? |
| get_accessibility_score | Get accessibility score and recommendations | url, device?, includeDetails? |
| get_seo_analysis | Get SEO analysis and recommendations | url, device?, includeDetails? |
| check_pwa_readiness | Check Progressive Web App readiness | url, device?, includeDetails? |
| Tool | Description | Parameters |
| -------------------------- | ----------------------------------- | ------------------------------------------------------ |
| get_performance_score | Get overall performance score | url, device? |
| get_core_web_vitals | Get Core Web Vitals metrics | url, device?, includeDetails?, threshold? |
| compare_mobile_desktop | Compare performance across devices | url, categories?, throttling?, includeDetails? |
| check_performance_budget | Check against performance budgets | url, device?, budget |
| get_lcp_opportunities | Find LCP optimization opportunities | url, device?, includeDetails?, threshold? |
| Tool | Description | Parameters |
| ------------------------ | ----------------------------- | --------------------------------------------------- |
| find_unused_javascript | Find unused JavaScript code | url, device?, minBytes?, includeSourceMaps? |
| analyze_resources | Analyze all website resources | url, device?, resourceTypes?, minSize? |
| Tool | Description | Parameters |
| -------------------- | ------------------------------------ | --------------------------- |
| get_security_audit | Perform comprehensive security audit | url, device?, checks? |
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"lighthouse mcp server": {
"lighthouse-mcp-server": {
"command": "npx",
"args": [
"@danielsogl/lighthouse-mcp@latest",
"--chrome-path",
"/usr/bin/google-chrome"
]
}
}
}
}
McpServers
{
"lighthouse-mcp-server": {
"command": "npx",
"args": [
"@danielsogl/lighthouse-mcp@latest",
"--chrome-path",
"/usr/bin/google-chrome"
]
}
}
A Model Context Protocol (MCP) server that provides comprehensive web performance auditing and analysis capabilities using Google Lighthouse. This server enables LLMs and AI agents to perform detailed website performance assessments, accessibility audits, SEO analysis, security checks, and Core Web Vitals monitoring.
<a href="https://glama.ai/mcp/servers/@danielsogl/lighthouse-mcp-server">
</a>
🌟 Key Features
- 🚀 Performance Analysis: Complete Lighthouse audits with Core Web Vitals, performance scores, and optimization recommendations
- ♿ Accessibility Audits: WCAG compliance checking and accessibility score analysis
- 🔍 SEO Analysis: Search engine optimization audits and best practice recommendations
- 🔒 Security Assessment: HTTPS, CSP, and security vulnerability scanning
- 📊 Resource Analysis: JavaScript, CSS, image, and font optimization opportunities
- 📱 Mobile vs Desktop: Comparative analysis across devices with throttling options
- ⚡ Core Web Vitals: LCP, FID, CLS monitoring with threshold checking
- 🎯 Performance Budgets: Custom performance thresholds and budget monitoring
- 📚 Reference Resources: Built-in guidelines and best practices for web performance, accessibility, SEO, and security
🛠️ Requirements
- Node.js 22.0.0 or newer
- Chrome/Chromium browser (automatically managed by Lighthouse)
- VS Code, Cursor, Windsurf, Claude Desktop, or any other MCP client
🚀 Getting Started
Install the Lighthouse MCP server with your preferred client using one of the configurations below:
{
"mcpServers": {
"lighthouse": {
"command": "npx",
"args": ["@danielsogl/lighthouse-mcp@latest"]
}
}
}
Persistent Chrome Profiles (Login Sessions)
If you need authenticated sessions, launch with a persistent Chrome profile and run headed:
{
"mcpServers": {
"lighthouse": {
"command": "npx",
"args": [
"@danielsogl/lighthouse-mcp@latest",
"--profile-path",
"<profile-path>",
"--no-headless"
]
}
}
}
You can pass extra Chrome flags with --chrome-flag, for example --chrome-flag=--disable-gpu.
If the flag value starts with -- and matches a known option name, prefer --chrome-flag=... to avoid parsing it as a top-level option.
Profile mode disables Lighthouse's storage reset so cookies and local storage persist between runs.
If --user-data-dir points to a missing directory, it will be created and treated as a fresh profile.
Set --profile-path to the Profile Path shown in chrome://version (e.g. .../Default).
Note: Chrome's remote debugging requires a non-default user data directory, so reuse a dedicated profile directory instead of the system default.
You can also pass --user-data-dir + --profile-directory separately if you prefer.
Attaching with --chrome-port alone does not preserve storage; include a profile flag to keep sessions.
CLI Options
Supported runtime flags for the MCP server:
- --profile-path <path>: use the Profile Path from chrome://version (auto-derives user data dir + profile name)
- --user-data-dir <path>: reuse a Chrome profile directory for persistent sessions
- --profile-directory <name>: select a profile within the user data dir
- --chrome-path <path>: explicit path to the Chrome/Chromium executable (overrides auto-detection; also respects the CHROME_PATH environment variable)
- --chrome-flag <flag> or --chrome-flag=<flag>: pass through extra Chrome flags (repeatable)
- --chrome-port <port> or --remote-debugging-port <port>: attach to an existing Chrome instance launched with remote debugging enabled
- --headless: force headless mode
- --no-headless: force headed mode
WSL2 / Custom Chrome Path
If the wrong Chrome binary is picked up (e.g. Windows Chrome instead of the Linux binary on WSL2), set the path explicitly:
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



