Skip to main content
Glama
PageSpeed Insights Bulk Audit MCP Server

PageSpeed Insights Bulk Audit MCP Server

Bulk PageSpeed Insights audits on your own Google API key

audit_pagespeed
Read-onlyIdempotent

Runs bulk PageSpeed Insights audits for multiple URLs across mobile and desktop, returning Lighthouse scores, Core Web Vitals, and top optimization opportunities.

Instructions

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.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "audit_pagespeed"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsNoPages 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.
localeNoLanguage for audit titles, for example en (default), de, or fr.
api_keyNoYour 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
max_urlsNoAudit at most this many URLs per run, after repeats are removed. Default 100, up to 5,000.
strategyNomobile (default), desktop, or both. both audits each URL twice and returns two rows.
categoriesNoWhich Lighthouse category scores to return: performance, accessibility, best-practices, seo. Default all four. Lab metrics and field data come with performance.
concurrencyNoHow 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_usdNoOptional. The run stops before a charge that would pass this amount. Summary rows are always returned.
include_opportunitiesNoyes (default) or no. With yes, each row lists up to 5 Lighthouse opportunities with the largest estimated time saving.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely new behavior: exact billing at 0.009 USD per audit row, one row per URL/device, and the shape of what comes back. It stops short of runtime expectations or failure modes, which keeps it off a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the input contract and followed by a single dense but scannable enumeration of return fields, with pricing last as a natural closer. The long semicolon-chained return list is information-dense rather than padded, though it reads as one run-on sentence that could be broken up.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the burden of describing returns and does so thoroughly: Lighthouse categories, lab metrics, CrUX field data with pass/fail, and top-5 opportunities. Combined with pricing and key-handling context, an agent has what it needs to call and interpret this correctly; only error and quota behavior are absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every one of the 9 parameters is already documented in the schema, and the description largely restates the same facts (strategy values, categories, row-per-device effect). It adds the useful link between `strategy=both` and two rows, but nothing about the parameters that the schema lacks, which is the baseline-3 case.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description makes the resource and scope unmistakable: bulk PageSpeed Insights audits, one row per URL and device, with named score families and metrics. It is framed as inputs-then-outputs rather than a single verb-first sentence, so it is a notch below a textbook 5, but no agent could confuse what this tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the key prerequisite (your own Google API key with PageSpeed Insights API enabled) and mentions a fallback when no key is supplied, which implies usage context. But there is no explicit when-to-use versus when-not-to-use guidance and no named alternative, so usage is only implied from the input contract.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools