Skip to main content
Glama
PageSpeed Insights Bulk Audit MCP Server

PageSpeed Insights Bulk Audit MCP Server

PageSpeed Insights Bulk Audit MCP Server

MCP Registry npm version npm downloads 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

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

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.

Available Tools

1 tool
audit_pagespeedBulk PageSpeed Insights audits on your own Google API keyA
Read-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

    A3.9/5.0

    Scored across 1 tool

    Disambiguation5/5

    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.

    Naming Consistency5/5

    The single name audit_pagespeed follows a clean verb_noun snake_case convention that reads naturally. No competing conventions exist to clash with it.

    Tool Count3/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers