SwitasContact Us

Web Performance MCP

Audit site speed from your AI assistant with PageSpeed Insights, Chrome UX Report and WebPageTest, and get a prioritized fix list.

Type
MCP server
Works with
Claude, Cursor and other MCP clients
License
Apache-2.0
Maintenance
Actively maintained
Repository
github.com/switaslabs/web-performance-mcp ↗

Web Performance MCP lets Claude, Cursor and other MCP clients measure how fast a site is and turn the results into a prioritized list of fixes. It combines three sources: Google PageSpeed Insights for Lighthouse lab tests, the Chrome UX Report for Core Web Vitals from real Chrome users, and WebPageTest for tests in real browsers at a chosen location and network.

Built on open source

The server is a fork of pagespeed-insights-mcp by ruslanlap, released under the Apache 2.0 license. Its six PageSpeed tools, prompts and resources come from that project. Switas added the WebPageTest integration and the analysis on top, and keeps the original license and attribution.

What Switas added with WebPageTest

  • Tests in real Chrome at a chosen location and network: Frankfurt by default, throttled 4G, 3G or cable, on mobile or desktop
  • Largest Contentful Paint broken into its phases (server response, resource load delay, load time and render delay), with the LCP element and whether it is lazy-loaded
  • Layout shifts, the longest main-thread tasks and total CPU time
  • A caching check: whether the HTML is served from the CDN and which static files have short cache lifetimes
  • Third-party weight per domain and the technologies found on the page, such as the e-commerce platform, analytics and A/B testing tools
  • What-if experiments: the page runs with and without selected domains, such as an A/B testing tool or a chat widget, and you get the measured difference instead of a guess
  • Repeat visits with a warm cache and scripted journeys across several pages, for example home, category and product page

Tools

Ten tools in total: six PageSpeed tools for Lighthouse audits, focused diagnoses, real-user field data, page comparisons and batch checks, and four WebPageTest tools to run a test, read a result by topic, run a what-if experiment and list test locations.

Requirements

  • Node.js 20.19 or later
  • A Google API key with the PageSpeed Insights API enabled; the Chrome UX Report API is optional
  • Optional: a WebPageTest API key for the WebPageTest tools. Without it, the PageSpeed tools keep working

Setup

Clone the repository, build it and add it to your MCP client. The README has the commands for Claude Code, the configuration for Claude Desktop and a Docker option. Then ask in plain language, for example "How much faster would example.com be without the A/B testing script?"

View on GitHub ↗

More from Switas Labs

Let's build the next one.

Contact Us