Connect SearchCon MCP to Claude Code and it can run a live PageSpeed Insights test on your site, find what's slowing it down, fix it in your code, and re-test after you deploy. Real Lighthouse data, not guesses.

TL;DR
  • Sign in to SearchCon with Google. PageSpeed Insights is built in, nothing else to connect.
  • Run claude mcp add --transport http --scope user searchcon https://searchcon.co/mcp, then /mcp to sign in.
  • Ask Claude Code to test a page, fix the biggest issue, then re-test once it's deployed.
Fastest setup

Paste this into Claude Code. It reads the setup guide and connects SearchCon for you:

Read https://searchcon.co/INSTALL.md and connect SearchCon.

Or run the command yourself, then type /mcp and sign in:

claude mcp add --transport http --scope user searchcon https://searchcon.co/mcp
New to SearchCon? Watch how to connect it to Claude first, then come back to fix your Core Web Vitals.

What you'll need

  • A site in Google Search Console connected to Claude. Tests run on pages from your own Search Console sites.
  • Claude Code, running in your site's project folder.
  • A way to deploy your changes. PageSpeed tests the live page, not your local server.
Claude running a mobile PageSpeed test through SearchCon: Performance 99, lab timings, real-user Core Web Vitals and issues ranked by impact

Why fix Core Web Vitals with Claude Code?

PageSpeed Insights tells you what is slow. Fixing it means finding the image, script or style in your code that causes it. Claude Code does both in one session:

  • Live tests, never cached: every test runs fresh on Google's PageSpeed Insights, so a re-test shows your latest deploy.
  • Lab and real users: a Lighthouse score for one simulated visit, plus Chrome's 28-day Core Web Vitals from real visitors when Google has them.
  • Fixes ranked by impact: Lighthouse's failing checks come with estimated savings, so Claude Code starts with the biggest win.
  • It knows your code: it can trace "render-blocking resource" back to the exact script tag in your layout.

Step 1: Sign in to SearchCon with Google

  1. Go to searchcon.co and click Get Started.
  2. Sign in with Google and allow read-only access to Search Console.

PageSpeed Insights is built in, so there's no separate connection.

Step 2: Add SearchCon to Claude Code

In your terminal, run:

claude mcp add --transport http --scope user searchcon https://searchcon.co/mcp
  1. Start Claude Code in your site's project folder.
  2. Type /mcp, pick searchcon and sign in with Google in your browser.

--scope user makes SearchCon available in every project, not just this one. Already use SearchCon in Claude Code? Skip ahead.

Step 3: Test a page

Run a mobile PageSpeed test on my homepage. What's the biggest problem?

Claude Code runs the test and reports the Performance score, lab timings (LCP, CLS, TBT) and, if Google has enough visitors, whether real users pass Core Web Vitals. Then it lists the failing checks, biggest savings first.

Test mobile first. Google uses mobile for ranking, and it's usually the slower of the two.

Claude running mobile speed tests through SearchCon and finding oversized images that push LCP to 13.8 seconds

Step 4: Let Claude Code fix it

Fix the biggest issue in this codebase.

Claude Code finds the cause in your project and proposes a change. Common fixes:

  • Slow LCP: resize and compress the hero image, serve WebP or AVIF, add fetchpriority="high", and don't lazy-load it.
  • Render-blocking resources: defer non-critical scripts, inline critical CSS, preload the main font.
  • Layout shift (CLS): set width and height on images and embeds, reserve space for ads and banners.
  • Slow interaction (INP): split long JavaScript tasks, remove unused libraries, delay third-party scripts.

Review the diff before you accept it, like any other Claude Code change.

Step 5: Deploy and re-test

PageSpeed Insights tests your live page, so deploy the change first. Then ask:

I've deployed the fix. Re-test the homepage on mobile and compare with the last run.

Tests are never cached, so the new score reflects your deploy. Repeat with the next issue until you're happy.

The lab score updates straight away. Real-user Core Web Vitals are a 28-day average, so they improve gradually over the following weeks.

10 PageSpeed prompts to try in Claude Code

  1. Run a mobile PageSpeed test on my homepage. What's the biggest problem?
  2. What's slowing down LCP on /pricing? Fix it.
  3. Do real visitors pass Core Web Vitals on my site?
  4. Compare mobile and desktop performance for /blog.
  5. Find what causes layout shift on my product pages and fix it.
  6. Which third-party scripts hurt my score most? Delay the ones that can wait.
  7. Test my five top pages from Search Console and rank them by Performance score.
  8. Make every image on the homepage the right size and format.
  9. I just deployed. Re-test the homepage and compare with the last run.
  10. Fix the accessibility issues Lighthouse found on /signup.

Prioritize with Search Console

Not every slow page is worth fixing first. Because SearchCon also has your Search Console data, Claude Code can pick the pages that matter:

Find my 5 pages with the most Google clicks, test their mobile speed, and fix the slowest one.

More on the PageSpeed tool: PageSpeed Insights MCP.

Is it safe?

  • Read-only: SearchCon only reads test results and Search Console data. Claude Code changes your code, as usual, and you review every diff.
  • Your sites only: tests run on pages from your own Search Console properties.
  • Nothing stored: results are fetched live and passed to Claude Code. They aren't saved.

Troubleshooting

Claude Code says it can't test that URL. The URL must belong to one of your Search Console properties. Use the live address, not localhost or a preview URL.

The score didn't change after my fix. Check the change is deployed and the CDN cache is cleared, then re-test. Lab scores also vary a few points between runs.

No real-user data. Google only has Core Web Vitals for pages with enough Chrome visitors. The lab test still works.

Claude Code doesn't see the tools. Run /mcp to check searchcon is connected, then start a new session.

FAQ

Is this the same as PageSpeed Insights?

Yes. SearchCon runs Google's PageSpeed Insights (Lighthouse) and the Chrome UX Report, then Claude Code explains the results and fixes the code.

Can Claude Code test my local dev server?

No. PageSpeed Insights tests public pages on your own Search Console sites. Deploy your fix, then ask for a re-test.

Why do lab scores and Core Web Vitals differ?

The lab test is one simulated visit and shows changes straight away. Core Web Vitals are a 28-day average of real Chrome visitors, so fixes show up there gradually.

Is there a limit?

Each account can run 100 live lab tests a day. Real-user Core Web Vitals don't count toward it.

Is there a free trial?

Yes. SearchCon has a 3-day free trial with full access, then $12/month or $79/year.

Related guides