Lighthouse MCP
MCP server by danielsogl Verified · npm:@danielsogl
Lighthouse MCP runs Google Lighthouse audits for AI assistants, covering performance, Core Web Vitals, accessibility, SEO and security. It suits developers who want an LLM to assess website quality.
Install Lighthouse MCP
Built from the published package, never by AI.
claude mcp add lighthouse-mcp -- npx -y @danielsogl/lighthouse-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"lighthouse-mcp": {
"args": [
"-y",
"@danielsogl/lighthouse-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"lighthouse-mcp": {
"args": [
"-y",
"@danielsogl/lighthouse-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"lighthouse-mcp": {
"args": [
"-y",
"@danielsogl/lighthouse-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add lighthouse-mcp -- npx -y @danielsogl/lighthouse-mcp{
"mcpServers": {
"lighthouse-mcp": {
"args": [
"-y",
"@danielsogl/lighthouse-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add lighthouse-mcp npx -y @danielsogl/lighthouse-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the lighthouse-mcp block.
About
Lighthouse MCP is a Model Context Protocol server by danielsogl that gives LLMs and AI agents access to Google Lighthouse. It provides web performance audits, accessibility checks, SEO analysis, security assessment, resource analysis and Core Web Vitals monitoring. Every tool declares an outputSchema and returns structured content, so clients receive typed data instead of a JSON string. It also includes Lighthouse 13 audits for how well a page serves AI agents, such as WebMCP tools, the agent accessibility tree and llms.txt.
The server is started with npx and needs Node.js 22.0.0 or newer. It works with MCP clients such as VS Code, Cursor, Windsurf and Claude Desktop. For sites that need a login, it can use a persistent Chrome profile so cookies and local storage persist between runs, or attach to an existing Chrome instance with remote debugging enabled. It is aimed at developers and teams who want an AI assistant to run detailed website assessments.
Written from the project's README and checked against it.
Tools it gives your assistant
run_auditRuns a comprehensive Lighthouse audit on a URL with optional categories, device and throttling.get_accessibility_scoreReturns an accessibility score and recommendations for a URL.get_seo_analysisReturns SEO analysis and recommendations for a URL.get_performance_scoreReturns the overall performance score for a URL on a chosen device.get_core_web_vitalsReturns Core Web Vitals metrics, with optional threshold checking.compare_mobile_desktopCompares performance across mobile and desktop, with throttling options.check_performance_budgetChecks a URL against a custom performance budget.find_unused_javascriptFinds unused JavaScript code on a page, with optional minimum size and source maps.analyze_resourcesAnalyzes JavaScript, CSS, image and font resources on a website.get_security_auditPerforms a security audit of a URL, with optional selected checks.
What you need
- Node.js 22.0.0 or newer
- Chrome or Chromium browser
- An MCP client such as VS Code, Cursor, Windsurf or Claude Desktop
Try asking
- Run a full Lighthouse audit on https://example.com for mobile.
- Check the Core Web Vitals of my homepage and flag any failing metrics.
- Compare mobile and desktop performance for my product page.
Good to know
- Chrome's remote debugging requires a non-default user data directory.
- Attaching with --chrome-port alone does not preserve storage between runs.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Lighthouse MCP
All alternatives →Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.
Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.
Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.
A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner
Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.
Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.
Compare with Agentmesh MCP Proxy, Bla or Bla Agents
Lighthouse MCP: common questions
Does Lighthouse MCP work with logged-in pages?
Yes. The source says it can use a persistent Chrome profile with --profile-path, which keeps cookies and local storage between runs. Profile mode disables Lighthouse's storage reset.
Which tools does Lighthouse MCP provide?
It provides audit, performance, analysis and security tools, including run_audit, get_core_web_vitals and get_security_audit. Each tool declares an outputSchema and returns structured content.
Can I use a custom Chrome binary?
Yes. The source says the --chrome-path option or the CHROME_PATH environment variable sets the Chrome or Chromium executable and overrides auto-detection.
How do I install Lighthouse MCP?
In Claude Code run claude mcp add lighthouse-mcp -- npx -y @danielsogl/lighthouse-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Lighthouse MCP the official server?
Lighthouse MCP is published by npm:@danielsogl from its verified domain in the official MCP Registry.
Is Lighthouse MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Lighthouse MCP safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Lighthouse MCP?
Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.
Does Lighthouse MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
