analyze_resources
Analyze website resources (images, JS, CSS, fonts) for optimization opportunities
Run Google Lighthouse from an assistant — performance, accessibility, SEO and security audits, Core Web Vitals, and mobile-vs-desktop comparisons — with typed results.
LABSCO SUMMARY
The structuredContent guarantee is what makes this useful to an agent rather than just runnable: every tool has an outputSchema, so a score or a set of opportunities arrives as typed data the model can reason over instead of a JSON blob to re-parse. The focused tools matter too — get_lcp_opportunities and find_unused_javascript go straight to the fix rather than making you read a full report to find it.
A server that runs Google Lighthouse audits: 12 tools covering the full audit plus focused scores for performance, accessibility, SEO, PWA readiness and security, Core Web Vitals, resource analysis and performance budgets. Every tool returns validated structuredContent against an outputSchema.
Node.js 22.0.0 or newer and a Chrome/Chromium browser, which Lighthouse manages automatically. Run it as npx @danielsogl/lighthouse-mcp. No account.
One command — npx @danielsogl/lighthouse-mcp@latest
USE CASES
Run the full audit, then pull the performance and accessibility scores with their recommendations to see what regressed.
Read LCP, INP and CLS, then get the specific LCP opportunities so you fix the largest paint rather than guessing at it.
Find the unused JavaScript and analyze the images, CSS and fonts to see which resources are worth optimizing first.
Check the site against your performance thresholds and compare mobile against desktop, so a change has to clear the bar on both.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
analyze_resourcesAnalyze website resources (images, JS, CSS, fonts) for optimization opportunities
check_performance_budgetCheck if website performance meets specified budget thresholds
check_pwa_readinessCheck Progressive Web App readiness and requirements
compare_mobile_desktopCompare website performance between mobile and desktop devices
find_unused_javascriptFind unused JavaScript code to reduce bundle size
get_accessibility_scoreGet the accessibility score and recommendations for a website
get_core_web_vitalsGet Core Web Vitals metrics for a website
get_lcp_opportunitiesGet LCP optimization opportunities for a website
get_performance_scoreGet the performance score for a website
get_security_auditPerform security audit checking HTTPS, CSP, and other security measures
get_seo_analysisGet SEO analysis and recommendations for a website
run_auditRun a comprehensive Lighthouse audit on a website
BEFORE YOU INSTALL
12 tools when we connected. check_pwa_readiness is missing from the documentation. The 8 prompts and 8 resources the server also ships are not tools.
CONTEXT COST
Rated by the size of the 12 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx @danielsogl/lighthouse-mcp@latestcode --add-mcp '{"name":"lighthouse","command":"npx","args":["-y","@danielsogl/lighthouse-mcp@latest"]}'code-insiders --add-mcp '{"name":"lighthouse","command":"npx","args":["-y","@danielsogl/lighthouse-mcp@latest"]}'{
"mcpServers": {
"lighthouse": {
"command": "npx",
"args": [
"@danielsogl/lighthouse-mcp@latest"
]
}
}
}