pagespeed_audit
Pack: pagespeed-insights · Endpoint: https://gateway.pipeworx.io/pagespeed-insights/mcp
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/pagespeed_audit for the schema, then POST the same URL with its arguments for the data.
Run Google’s PageSpeed Insights (Lighthouse) against any public URL and get back the performance, accessibility, best-practices and SEO scores, the lab timing metrics behind them, and the RANKED list of specific fixes with the milliseconds or bytes each one would save — render-blocking resources, unused JavaScript and CSS, unoptimised images, missing text compression. AUTHORITATIVE for “why is this page slow and what do I fix first”: this is Google’s own analyser running the page on Google’s infrastructure, which is what no amount of reading a site’s HTML can substitute for. Works on any public site, including a competitor’s. A call takes 10-40 seconds because the page is genuinely loaded.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | yes | Full page URL to analyse, including the scheme, e.g. https://www.example.com/pricing. |
strategy | string | no | Device to emulate: mobile (the default, and what Google indexes with) or desktop. |
categories | array | no | Which Lighthouse categories to run. Defaults to performance only, which is much faster. Options: performance, accessibility, best-practices, seo. |
items | string | no | |
max_opportunities | number | no | How many ranked improvement opportunities to return (default 10, max 30). |
locale | string | no | BCP-47 locale for the audit titles, e.g. en, fr, ja. Defaults to English. |
Example call
Arguments
{
"url": "https://www.wikipedia.org"
}
curl
curl -X POST https://gateway.pipeworx.io/pagespeed-insights/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"pagespeed_audit","arguments":{"url":"https://www.wikipedia.org"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('pagespeed_audit', {
"url": "https://www.wikipedia.org"
});
More examples
{
"url": "https://www.shopify.com/pricing",
"strategy": "desktop",
"categories": [
"performance",
"seo"
],
"max_opportunities": 5
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"pagespeed-insights": {
"url": "https://gateway.pipeworx.io/pagespeed-insights/mcp"
}
}
}
See Getting Started for client-specific install steps.