Lighthouse MCP
Lets your AI agent run Google Lighthouse audits on a web page and read performance, accessibility and SEO scores.
217 stars on GitHubby priyankarkLicense MITUpdated 20 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add lighthouse -- npx -y lighthouse-mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
What is the performance score for example.com?
Run an accessibility and performance audit of my site on desktop without throttling.
What it is
This server wraps Google's Lighthouse tool. Your agent can audit a URL, choose mobile or desktop, and get scores and metrics, then use them to improve the page.
What it can do
run_audit: full audit with chosen categories, device and throttlingget_performance_score: just the performance score for a URL
When to use
- βΊWhen you want to know how fast your page is on mobile
- βΊWhen you want your agent to fix issues and check the score again
- βΊWhen you check accessibility, SEO and best practices of a page
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
roier-seoHelps your agent audit a website's SEO, speed and accessibility with Lighthouse, then fix common problems in the code.perf-lighthouseHelps your agent run Lighthouse speed audits on a website, read the report and set performance budgets.seo-unlighthouseLets your agent run Lighthouse speed and quality checks on many pages of a site at once, locally, and summarize the scores. Needs Node 18 or newer.Frequently asked questions
Is it free and open source?
The readme does not state the license or price. It is published on npm and the registry.
What does it need?
Node.js 22.19 or newer and Chrome or Chromium.
Can it audit localhost?
Yes, loopback addresses work by default. Set AUDIT_ALLOW_LOOPBACK=false to block them.
Is it safe?
Chrome runs with its sandbox, and private, link-local and cloud metadata addresses are blocked.
How long can an audit take?
Audits run one at a time and time out after 120 seconds.
Which categories can I audit?
Performance, accessibility, best practices and SEO.
If it does not work
- βΊUpdate Node.js to 22.19 or newer.
- βΊInstall Chrome or Chromium so Lighthouse can launch it.
- βΊFor hosted use, set AUDIT_ALLOW_LOOPBACK=false and isolate the network.
5 new skills a week. 1 minute to read.