Built for Cline

Lighthouse MCP & JSON for Cline

Connect Cline in VS Code to PageSpeed Exporter via MCP or attach a stripped AIReport (<50KB) for autonomous Core Web Vitals and Lighthouse fixes.

Loading…

Loading...

How to use Lighthouse JSON with Cline

  1. 1

    Generate an MCP account token while signed in at speedexporter.com/dashboard

  2. 2

    Open Cline's MCP Server settings in VS Code and add https://speedexporter.com/api/mcp with Authorization: Bearer YOUR_ACCOUNT_TOKEN

  3. 3

    Alternatively, download a stripped AIReport JSON (<50KB) from speedexporter.com and attach it in Cline chat

  4. 4

    Run the prompt below so Cline prioritizes scorePlan.pointsAtRisk instead of savings.ms

  5. 5

    Approve Cline's file edits and verify your local build

  6. 6

    Deploy and re-scan with analyze_url until every lab metric reaches targetFor90

Ready-to-use prompt for Cline

Copy this prompt, attach your stripped AIReport JSON, and send it to Cline:

Call analyze_url on https://[your-site.com] (strategy: "mobile") via the pagespeed-exporter MCP server.

1. Read scorePlan and identify the metric with the largest pointsAtRisk
2. Inspect fixLocation and details for every failing issue affecting that metric
3. Edit the relevant workspace files (skip passedAuditIds; do not edit remote third-party files)
4. Report the exact changes made so we can deploy and re-scan toward targetFor90

Run live audits in Cline via MCP

/api/mcp

Cline has first-class MCP server support in VS Code. Add `https://speedexporter.com/api/mcp` with your dashboard Bearer token in Cline's MCP config to run live Lighthouse audits and autonomous fix loops.

Frequently asked questions

Can Cline call PageSpeed Exporter's MCP server directly?

Yes. Add https://speedexporter.com/api/mcp with your Authorization: Bearer account token from /dashboard in Cline's MCP settings to expose the analyze_url tool and fix_all_issues prompt.

Why does AIReport save tokens in Cline?

Cline charges per API token on your chosen LLM provider. Sending a <50KB stripped AIReport instead of a 1–2MB raw PSI JSON cuts input token cost dramatically on every turn of an autonomous fix loop.

What happens if I hit my monthly report cap inside Cline?

The MCP server returns a clear error linking to /pricing. Once you upgrade to Starter ($9/mo, 50 reports) or Pro ($29/mo, 200 reports) on that same account, your existing token works immediately without reconfiguring Cline.

Also works with

Need more reports? View pricing plans starting at $9/month.