
mcp-pagespeed-insights-bulk-audit
com.mambabuilt/mcp-pagespeed-insights-bulk-audit
Bulk PageSpeed Insights audits and Core Web Vitals on your own Google API key
Documentation
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
- What it does
- Quick start
- Prerequisites
- Example prompts
- Tool
- Inputs
- Pricing
- Full actor documentation
- License
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 |
|---|---|---|---|
api_key | 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. |
urls | 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. |
strategy | string | no | mobile (default), desktop, or both. both audits each URL twice and returns two rows. |
categories | array | no | Which Lighthouse category scores to return: performance, accessibility, best-practices, seo. Default all four. Lab metrics and field data come with performance. |
locale | string | no | Language for audit titles, for example en (default), de, or fr. |
include_opportunities | boolean | no | yes (default) or no. With yes, each row lists up to 5 Lighthouse opportunities with the largest estimated time saving. |
max_urls | number | no | Audit at most this many URLs per run, after repeats are removed. Default 100, up to 5,000. |
concurrency | 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. |
max_charge_usd | 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 |
|---|---|---|---|---|
audit-row, one URL audited on one device | $0.009 | $0.00855 | $0.0081 | $0.00765 |
apify-actor-start, per run start | $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.
@mambalabsdev/mcp-pagespeed-insights-bulk-auditnpm install @mambalabsdev/mcp-pagespeed-insights-bulk-auditRelated Servers
com.mambabuilt/mcp-account-hiring-watch
Watch company job boards for new, closed, and reposted postings, with 30 day hiring velocity.
com.mambabuilt/mcp-agent-accessibility-auditor
Audit whether an AI agent can read a site: llms.txt, robots AI rules, structured data.
com.mambabuilt/mcp-agent-brokerage-resolver
Find a US real estate agent's brokerage, brokerage size, and license status from state registers.