1. Conduid
  2. Security
  3. Lighthouse MCP Server
MCP server · Security

Lighthouse MCP Server

MCP server that enables AI agents to perform comprehensive web audits using Google Lighthouse with 13+ tools for performance, accessibility, SEO, and security analysis.

72Good

Scored 4 days ago · breakdown

About Lighthouse MCP Server

Lighthouse MCP Server is an MCP server published by danielsogl in the Security category: mCP server that enables AI agents to perform comprehensive web audits using Google Lighthouse with 13+ tools for performance, accessibility, SEO, and security analysis. It has been installed 0 times through Conduid.

The repository has 46 stars and 8 forks, with the last commit 6 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx lighthouse-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Lighthouse MCP Server

Powered by Claude · Grounded in docs

I know everything about Lighthouse MCP Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

lighthouse-mcp-v2.0.1lighthouse-mcp: v2.0.1 · 15 Aug 2026[2.0.1](https://github.com/danielsogl/lighthouse-mcp-server/compare/lighthouse-mcp-v2.0.0...lighthouse-mcp-v2.0.1) (2026-08-15) Bug Fixes build:** keep the test harness out of the published package…
lighthouse-mcp-v2.0.0lighthouse-mcp: v2.0.0 · 15 Aug 2026[2.0.0](https://github.com/danielsogl/lighthouse-mcp-server/compare/lighthouse-mcp-v1.5.0...lighthouse-mcp-v2.0.0) (2026-08-15) ⚠ BREAKING CHANGES the `interactive` entry is no longer present in the metrics returned by run_audit and…
lighthouse-mcp-v1.5.0lighthouse-mcp: v1.5.0 · 5 Apr 2026[1.5.0](https://github.com/danielsogl/lighthouse-mcp-server/compare/lighthouse-mcp-v1.4.0...lighthouse-mcp-v1.5.0) (2026-04-05) Features chrome:** add --chrome-path flag and CHROME_PATH env variable support…
lighthouse-mcp-v1.4.0lighthouse-mcp: v1.4.0 · 28 Dec 2025[1.4.0](https://github.com/danielsogl/lighthouse-mcp-server/compare/lighthouse-mcp-v1.3.3...lighthouse-mcp-v1.4.0) (2025-12-28) Features add Chrome profile support for authenticated Lighthouse runs…
lighthouse-mcp-v1.3.3lighthouse-mcp: v1.3.3 · 28 Dec 2025[1.3.3](https://github.com/danielsogl/lighthouse-mcp-server/compare/lighthouse-mcp-v1.3.2...lighthouse-mcp-v1.3.3) (2025-12-28) Miscellaneous Chores bump vitest…

README

Lighthouse MCP Server

NPM Version Node Version CI Coverage Sponsor

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.

🌟 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:

# Via CLI flag
npx @danielsogl/lighthouse-mcp@latest --chrome-path /usr/bin/google-chrome

# Via environment variable
CHROME_PATH=/usr/bin/google-chrome npx @danielsogl/lighthouse-mcp@latest

In your MCP config:

{
  "mcpServers": {
    "lighthouse": {
      "command": "npx",
      "args": ["@danielsogl/lighthouse-mcp@latest", "--chrome-path", "/usr/bin/google-chrome"]
    }
  }
}

E2E Smoke Test (Profile)

Run a real audit with a persistent profile (use an existing profile directory and log in once if needed):

npm run smoke:profile -- --url https://example.com \
  --profile-path "<profile-path>" \
  --no-headless

E2E Smoke Test (Attach to Existing Chrome)

Start Chrome with remote debugging enabled:

/path/to/GoogleChromeExecutable \
  --remote-debugging-port=9222 \
  --user-data-dir /path/to/chrome-profile

Replace /path/to/GoogleChromeExecutable with your platform's Chrome/Chromium binary path.

Then attach Lighthouse to that instance:

npm run smoke:profile -- --url https://example.com --chrome-port 9222

To preserve storage when attaching, pass the profile path so Lighthouse keeps cookies/local storage:

npm run smoke:profile -- --url https://example.com \
  --chrome-port 9222 \
  --profile-path "<profile-path>"

Install in VS Code

You can also install the Lighthouse MCP server using the VS Code CLI:

# For VS Code
code --add-mcp '{"name":"lighthouse","command":"npx","args":["-y","@danielsogl/lighthouse-mcp@latest"]}'

# For VS Code Insiders
code-insiders --add-mcp '{"name":"lighthouse","command":"npx","args":["-y","@danielsogl/lighthouse-mcp@latest"]}'

After installation, the Lighthouse MCP server will be available for use with your GitHub Copilot agent in VS Code.

Install in Cursor

Install MCP Server

Go to Cursor SettingsMCPAdd 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"]
    }
  }
}

Install in Windsurf

Follow the Windsurf MCP documentation. Use the following configuration:

{
  "mcpServers": {
    "lighthouse": {
      "command": "npx",
      "args": ["@danielsogl/lighthouse-mcp@latest"]
    }
  }
}

Install in Claude Desktop

Follow the MCP install guide, use the following configuration:

{
  "mcpServers": {
    "lighthouse": {
      "command": "npx",
      "args": ["@danielsogl/lighthouse-mcp@latest"]
    }
  }
}

🔧 Available Tools

The Lighthouse MCP server provides the following tools for comprehensive web analysis:

🏁 Audit Tools

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?

⚡ Performance Tools

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?

🔍 Analysis Tools

Tool Description Parameters
find_unused_javascript Find unused JavaScript code url, device?, minBytes?, includeSourceMaps?
analyze_resources Analyze all website resources url, device?, resourceTypes?, minSize?

🔒 Security Tools

Tool Description Parameters
get_security_audit Perform comprehensive security audit url, device?, checks?

💬 Available Prompts

The Lighthouse MCP server includes reusable prompts that help LLMs provide structured analysis and recommendations:

📊 Analysis Prompts

Prompt Description Parameters
analyze-audit-results Analyze Lighthouse audit results auditResults, focusArea?
compare-audits Compare before/after audit results beforeAudit, afterAudit, changesImplemented?
optimize-core-web-vitals Get Core Web Vitals optimization recommendations coreWebVitals, framework?, constraints?
optimize-resources Get resource optimization recommendations resourceAnalysis, loadingStrategy?, criticalUserJourneys?

📚 Available Resources

The Lighthouse MCP server provides built-in reference resources with essential guidelines and best practices:

Resource Description URI
core-web-vitals-thresholds Core Web Vitals performance thresholds lighthouse://performance/core-web-vitals-thresholds
optimization-techniques Performance optimization techniques and impact lighthouse://performance/optimization-techniques
wcag-guidelines WCAG 2.1 accessibility guidelines and issues lighthouse://accessibility/wcag-guidelines
seo-best-practices SEO best practices and optimization opportunities lighthouse://seo/best-practices
security-best-practices Web security best practices and vulnerabilities lighthouse://security/best-practices
budget-guidelines Performance budget recommendations by site type lighthouse://performance/budget-guidelines
categories-scoring Lighthouse audit categories and scoring methods lighthouse://audits/categories-scoring
framework-guides Framework-specific optimization guides lighthouse://frameworks/optimization-guides

🎯 Strategy Prompts

Prompt Description Parameters
create-performance-plan Generate comprehensive performance improvement plan currentMetrics, targetGoals?, timeframe?
create-performance-budget Create custom performance budget recommendations currentMetrics, businessGoals?, userBase?
seo-recommendations Generate SEO improvement recommendations seoAudit, websiteType?, targetAudience?
accessibility-guide Create accessibility improvement guide accessibilityAudit, complianceLevel?, userGroups?

🔧 Prompt Parameter Details

  • auditResults: JSON audit results from Lighthouse tools
  • focusArea: Specific category to focus on ("performance", "accessibility", "seo", "best-practices", "pwa")
  • beforeAudit / afterAudit: Lighthouse audit results before and after changes
  • changesImplemented: Description of changes made between audits
  • currentMetrics: Current performance metrics from audits
  • targetGoals: Specific performance targets or business goals
  • timeframe: Timeline for implementing improvements
  • framework: Frontend framework or technology stack
  • constraints: Technical or business constraints
  • websiteType: Type of website (e.g., e-commerce, blog, corporate)
  • targetAudience: Target audience or market information
  • complianceLevel: WCAG compliance level ("AA" or "AAA")
  • userGroups: Specific user groups to consider for accessibility

📋 Parameter Details

Common Parameters

  • url (required): The website URL to analyze
  • device: Target device ("desktop" or "mobile", default: "desktop")
  • includeDetails: Include detailed audit information (default: false)
  • throttling: Enable network/CPU throttling (default: false)

Specific Parameters

  • categories: Lighthouse categories to audit (["performance", "accessibility", "best-practices", "seo", "pwa"])
  • threshold: Custom thresholds for metrics (e.g., {"lcp": 2.5, "fid": 100, "cls": 0.1})
  • budget: Performance budget limits (e.g., {"performanceScore": 90, "largestContentfulPaint": 2500})
  • resourceTypes: Resource types to analyze (["images", "javascript", "css", "fonts", "other"])
  • minBytes: Minimum file size threshold for analysis (default: 2048)
  • checks: Security checks to perform (["https", "mixed-content", "csp", "hsts", "vulnerabilities"])

💡 Usage Examples

Basic Performance Audit

// Get overall performance score
{
  "tool": "get_performance_score",
  "arguments": {
    "url": "https://example.com",
    "device": "mobile"
  }
}

Core Web Vitals Analysis

// Check Core Web Vitals with custom thresholds
{
  "tool": "get_core_web_vitals",
  "arguments": {
    "url": "https://example.com",
    "device": "mobile",
    "includeDetails": true,
    "threshold": {
      "lcp": 2.5,
      "fid": 100,
      "cls": 0.1
    }
  }
}

Security Assessment

// Comprehensive security audit
{
  "tool": "get_security_audit",
  "arguments": {
    "url": "https://example.com",
    "checks": ["https", "csp", "hsts"]
  }
}

Resource Optimization

// Find optimization opportunities
{
  "tool": "analyze_resources",
  "arguments": {
    "url": "https://example.com",
    "resourceTypes": ["images", "javascript"],
    "minSize": 1024
  }
}

Using Reference Resources

Access built-in guidelines and best practices:

// Get Core Web Vitals thresholds
{
  "resource": {
    "uri": "lighthouse://performance/core-web-vitals-thresholds"
  }
}

// Access WCAG accessibility guidelines
{
  "resource": {
    "uri": "lighthouse://accessibility/wcag-guidelines"
  }
}

// Get framework-specific optimization guides
{
  "resource": {
    "uri": "lighthouse://frameworks/optimization-guides"
  }
}

Using Prompts for Analysis

// Analyze audit results with focused recommendations
{
  "prompt": "analyze-audit-results",
  "arguments": {
    "auditResults": "{...lighthouse audit json...}",
    "focusArea": "performance"
  }
}

// Create a performance improvement plan
{
  "prompt": "create-performance-plan",
  "arguments": {
    "currentMetrics": "{...current performance metrics...}",
    "targetGoals": "Achieve 90+ performance score and sub-2s LCP",
    "timeframe": "3 months"
  }
}

// Compare before/after audit results
{
  "prompt": "compare-audits",
  "arguments": {
    "beforeAudit": "{...before audit results...}",
    "afterAudit": "{...after audit results...}",
    "changesImplemented": "Implemented lazy loading and image optimization"
  }
}

🎯 Use Cases

  • Performance Monitoring: Automated performance tracking and Core Web Vitals monitoring
  • Accessibility Compliance: WCAG 2.1 compliance checking and remediation guidance
  • SEO Optimization: Technical SEO audits and search engine optimization recommendations
  • Security Assessment: Vulnerability scanning and security best practice validation
  • Resource Optimization: Bundle analysis and optimization opportunity identification
  • Performance Budgets: Automated performance budget monitoring and alerting
  • CI/CD Integration: Automated quality gates and performance regression detection

🏗️ Architecture

The server is built using:

🤝 Contributing

Contributions are welcome! Please read our Contributing Guide for details on:

  • Code style and standards
  • Testing requirements
  • Pull request process
  • Development setup

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔒 Security

For security issues, please see our Security Policy.

📞 Support

🙏 Acknowledgments

  • Google Lighthouse team for the excellent auditing engine
  • Anthropic for the Model Context Protocol specification
  • The open source community for continuous inspiration and contributions

Built with ❤️ by Daniel Sogl

README mirrored from the source repository 4 days ago. The original is authoritative.

Questions

About Lighthouse MCP Server

How do I install Lighthouse MCP Server?

Run npx lighthouse-mcp-server, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Lighthouse MCP Server safe to use with an AI agent?

Its trust score is 72 out of 100 (good). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Lighthouse MCP Server still maintained?

Yes — the latest release is lighthouse-mcp-v2.0.1 (15 Aug 2026), and the last commit was 6 months ago. The repository has 46 stars and 0 open issues.