PageSpeed Insights Bulk Audit MCP Server
Calls Google's official PageSpeed Insights API v5 (googleapis.com) for each URL using the user's own free Google API key (25,000 audits/day quota), with the key stored encrypted by Apify and never written to output rows or logs.
Runs bulk PageSpeed Insights audits for a list of URLs on mobile, desktop, or both, returning one flat row per URL and device with Lighthouse category scores (performance, accessibility, best practices, SEO), lab metrics, CrUX field data with Core Web Vitals pass/fail, and the top 5 opportunities by estimated time saved; supports categories, locale, concurrency, URL caps, and a max charge limit.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PageSpeed Insights Bulk Audit MCP Server Run PageSpeed audits on stripe.com and adyen.com for mobile and desktop."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PageSpeed Insights Bulk Audit MCP Server
An MCP server for the Mamba Labs PageSpeed Insights Bulk Audit actor on Apify. Lighthouse scores and Core Web Vitals for many URLs, on your own Google API key.
What's Inside
Related MCP server: lighthouse-mcp
What it does
Give a list of URLs and your own free Google API key. The actor calls the official Google PageSpeed Insights API v5 for each URL on mobile, desktop, or both, and returns one flat row per URL and device: Lighthouse category scores, lab metrics, Chrome UX Report field data with a Core Web Vitals pass or fail, and the top 5 opportunities by estimated time saved. Calls run 4 at a time by default.
All of the work runs on Apify. This package is a thin client that starts the actor run, waits for it, and hands back the dataset rows.
Quick start
You need Node.js 18 or newer and an Apify account with an API token.
Add this to your Claude Desktop config (claude_desktop_config.json), Cursor, or any MCP client:
{
"mcpServers": {
"mamba-pagespeed-insights-bulk-audit": {
"command": "npx",
"args": [
"-y",
"@mambalabsdev/mcp-pagespeed-insights-bulk-audit"
],
"env": {
"APIFY_TOKEN": "your-apify-token"
}
}
}
}Restart the client. The audit_pagespeed tool appears.
Prerequisites
Node.js 18 or newer.
An Apify API token from console.apify.com/account/integrations, set as
APIFY_TOKEN. The server lists its tool without a token; a call needs one.
Example prompts
"Run PageSpeed Insights on these 20 landing pages on mobile and tell me which fail Core Web Vitals."
"Compare the mobile and desktop performance scores of stripe.com and adyen.com."
"Which of these prospect websites load slowest on mobile?"
Tool
audit_pagespeed. One tool. Example arguments:
{
"urls": [
"https://apify.com"
],
"strategy": "both"
}Inputs
Every buyer facing input of the actor. Omitted inputs take the actor's own defaults.
Input | Type | Required | Description |
| string | no | Your own Google API key with the PageSpeed Insights API enabled. Make one free in Google Cloud Console: APIs and Services, Credentials, Create credentials, API key, then enable PageSpeed Insights API. Google's free quota is 25,000 audits a day. The key is stored encrypted by Apify, sent only to googleapis.com, and never written to a row or a log. With no key the run writes one free row and audits nothing. |
| array | no | Pages to audit, one per line, for example https://www.example.com/pricing. A domain with no scheme gets https:// added. Repeats are audited once. In Clay, put the column inside a one item list. |
| string | no | mobile (default), desktop, or both. both audits each URL twice and returns two rows. |
| array | no | Which Lighthouse category scores to return: performance, accessibility, best-practices, seo. Default all four. Lab metrics and field data come with performance. |
| string | no | Language for audit titles, for example en (default), de, or fr. |
| boolean | no | yes (default) or no. With yes, each row lists up to 5 Lighthouse opportunities with the largest estimated time saving. |
| number | no | Audit at most this many URLs per run, after repeats are removed. Default 100, up to 5,000. |
| number | no | How many audits run at the same time, 1 to 8. Default 4. A per minute quota answer makes the actor wait 61 seconds and try again. |
| string | no | Optional. The run stops before a charge that would pass this amount. Summary rows are always returned. |
Pricing
Pay per event on Apify, billed to your Apify account. Prices in USD.
Event | Free plan | Bronze | Silver | Gold |
| $0.009 | $0.00855 | $0.0081 | $0.00765 |
| $0.006 | $0.006 | $0.006 | $0.006 |
A missing or refused key, a quota stop, a page Lighthouse could not load, and refused input are free. Mamba Labs pays the platform costs of the run, Apify proxy traffic included.
Full actor documentation
apify.com/mambalabs/pagespeed-insights-bulk-audit
License
MIT. See LICENSE.
Available Tools
1 toolaudit_pagespeedBulk PageSpeed Insights audits on your own Google API keyARead-onlyIdempotent
Give URLs and your own free Google API key with the PageSpeed Insights API enabled. Returns one row per URL and device (mobile, desktop, or both): Lighthouse performance, accessibility, best practices, and SEO scores; lab LCP, FCP, TBT, CLS, Speed Index, and server response; Chrome UX Report field LCP, INP, CLS, FCP, and TTFB with a Core Web Vitals pass or fail; and the top 5 opportunities by time saved. Pay per event on Apify: 0.009 USD per audit row.
Inputs: urls, locale, api_key, max_urls, +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool on the server there is nothing to confuse it with; an agent cannot misselect. The tool's purpose (bulk PageSpeed audit for a list of URLs) is clearly stated and self-contained.
The single name audit_pagespeed follows a clean verb_noun snake_case convention that reads naturally. No competing conventions exist to clash with it.
A single nontrivial batch tool is a defensible design for a narrow Apify actor wrapper, so this isn't an extreme mismatch. Still, one tool leaves no room for natural companion operations (e.g. listing past runs or fetching a single report), making the surface feel thin.
The tool returns rich per-URL/per-device output: Lighthouse category scores, lab metrics, CrUX field data with CWV pass/fail, and top opportunities — covering the auditing domain well. Minor gaps exist around comparing or retrieving prior audits and filtering by thresholds, which agents can work around by re-running.
Maintenance
Related MCP Connectors
Bulk Google PageSpeed Insights: Lighthouse scores, Core Web Vitals, top fixes for URLs or a sitemap.
Bulk Lighthouse audits of URL lists or sitemaps, mobile & desktop, no Google API key. $0.02/audit.
Bulk Lighthouse audits of URL lists or sitemaps, mobile & desktop, no Google API key. $0.02/audit.
Bulk PageSpeed Insights and Core Web Vitals (LCP, INP, CLS) for many URLs. Runs on Apify.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables auditing of websites for performance, SEO, accessibility, security, and mobile readiness, with tools to validate URLs, run page audits, save results, and retrieve reports.1-
- AlicenseAqualityDmaintenanceEnables running Lighthouse web performance audits via MCP, providing Core Web Vitals, performance scores, and optimization suggestions for single or multiple URLs.21MIT
- FlicenseNot gradedqualityCmaintenanceEnables analysis of web page performance through the Google PageSpeed Insights API v5, providing tools for scores, Core Web Vitals, opportunities, diagnostics, mobile vs desktop comparison, and batch analysis.-
- AlicenseNot gradedqualityCmaintenanceRuns Google PageSpeed Insights audits against any public URL, returning Lighthouse scores, lab timing metrics, ranked fixes, and real-user Chrome UX Report field data.95 npmMIT