PageSpeed Insights Bulk Audit MCP Server
# PageSpeed Insights Bulk Audit MCP Server
[](https://registry.modelcontextprotocol.io/v0/servers?search=com.mambabuilt/mcp-pagespeed-insights-bulk-audit&limit=1) [](https://www.npmjs.com/package/@mambalabsdev/mcp-pagespeed-insights-bulk-audit) [](https://www.npmjs.com/package/@mambalabsdev/mcp-pagespeed-insights-bulk-audit) [](https://github.com/mambalabsdev/mcp-pagespeed-insights-bulk-audit/blob/main/LICENSE)
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](#what-it-does)
- [Quick start](#quick-start)
- [Prerequisites](#prerequisites)
- [Example prompts](#example-prompts)
- [Tool](#tool)
- [Inputs](#inputs)
- [Pricing](#pricing)
- [Full actor documentation](#full-actor-documentation)
- [License](#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:
```json
{
"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](https://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:
```json
{
"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](https://apify.com/mambalabs/pagespeed-insights-bulk-audit)
## License
MIT. See [LICENSE](LICENSE).
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.