💡 Key Takeaways:
1) A PageSpeed Insights MCP server lets an AI assistant such as Claude or Cursor run PageSpeed tests as a tool, so a plain request like "test these five pages on mobile" returns real Lighthouse and field data.
2) Most PageSpeed MCP servers are small open-source wrappers around Google's free PageSpeed Insights API, so they run on your own Google API key and your project's quota.
3) Google's runPagespeed method runs only the Performance category when no category is passed, and its reference lists desktop as the default strategy, so a prompt that doesn't say "mobile" may not test mobile.
4) A full PageSpeed response is large, and long reports fill the model's context window fast, so ask for a handful of metrics per URL and not the whole report.
Ask for speed results, get rows you can fix
Pulldata is a no-code web data platform that collects live, structured data from the public web. Its MCP server for AI agents lets Claude, Cursor and other clients call Pulldata's tools from a chat, next to a dashboard and a REST API, and you pay only for results that come back.

What is a PageSpeed Insights MCP server?
A PageSpeed Insights MCP server is a small service that exposes PageSpeed tests to AI assistants as tools over the Model Context Protocol. The assistant picks the tool, sends a URL and options, and gets the test results back to read, compare or summarise.
MCP is described by its maintainers as "an open-source standard for connecting AI applications to external systems" (Model Context Protocol docs). Our guide to AI web scraping with MCP covers the protocol itself.
Behind almost every PageSpeed MCP server sits the same thing: Google's PageSpeed Insights API. It returns a Lighthouse lab run plus Chrome UX Report field data when Google has enough visits (About PageSpeed Insights), and the server's job is to turn that into something a model can use.

If you're new to the report, our explainer on what PageSpeed Insights is walks through lab data, field data and the score.
Which PageSpeed MCP servers can you use?
You can use Pulldata's hosted MCP server, one of several open-source PageSpeed wrappers you run locally, or Google's Chrome DevTools MCP server for traces in a local browser. They differ in where the test runs and whose key and quota they use.
Server | How it runs | What it needs |
|---|---|---|
Pulldata MCP server | Hosted, over SSE (Pulldata MCP docs) | A Pulldata API key; billed per result |
pagespeed-insights-mcp (ruslanlap) | Local, through npx (GitHub) | Your Google API key; PageSpeed and CrUX APIs |
mcp-pagespeed-insight (NicolasET) | Local, cloned and built (Glama listing) | Your Google API key |
pagespeed-mcp-server (PhialsBasement) | Local, npm or Smithery (Playbooks listing) | Node.js; check the README for a key |
Chrome DevTools MCP | Local Chrome, through npx (GitHub) | Node.js and Chrome installed |
The open-source wrappers are community projects, and directory listings disagree on details such as tool counts. Read each README and check the recent commits before you hand one your key.

How does a PageSpeed Insights MCP server work?
The AI client connects to the server, lists its tools, and calls one when your request matches. The server sends the URL to the PageSpeed API or a browser, waits for the test, then returns JSON that the model turns into a table or an answer.

Two parameters decide most of what comes back. The strategy parameter picks mobile or desktop, and category picks which Lighthouse categories run (runpagespeed reference).
When no category is passed, only Performance runs. A request for "a full audit" has to reach the server as a list of categories, or the model gets a performance-only report and may describe it as complete.

The Chrome DevTools server works differently. It drives a real Chrome on your machine, and its performance tools record a trace of the page load instead of calling Google's API, so you get detail on one page in your own conditions.

A local trace and a PageSpeed API run answer different questions. The trace shows what happened on your laptop and network, while the API runs on Google's servers and includes field data from real Chrome users when it exists.
How do you set up PageSpeed MCP in Claude, Cursor and other clients?
You add the server to the client's MCP settings, give it a key, and restart the client. Hosted servers need a URL and a header; local ones need a command and an environment variable.
For Pulldata, every client uses the same two values from the docs:
- Server URL: https://pdb.pulldata.io/api/mcp/sse
- Auth header: x-api-key, with a live key that starts with pdk_live_
Get the key from the dashboard after creating a free account at app.pulldata.io/signup, with Google sign-in or an email and a password of at least 8 characters. New accounts get $10 free credit with no card required.
Cursor
Create or edit .cursor/mcp.json in your project, or add the server under Cursor Settings. This is the snippet from Pulldata's docs page:
Ask "Check my Pulldata wallet balance" to confirm the connection, since that uses a free account tool. Cursor's own MCP documentation explains where the file lives.
Claude Desktop
Claude Desktop has its own tab in Pulldata's docs. Add the same URL and header to Claude Desktop's MCP configuration, then restart the app.
For a local PageSpeed wrapper, the ruslanlap README shows a Claude Desktop entry that runs the package with npx and passes your Google key in an env block. Its shape looks like this, but copy the current version from the README:
Claude Code CLI
Claude Code adds servers from the terminal with claude mcp add, as Anthropic's Claude Code MCP guide explains. Pulldata's docs list it as a supported client.
VS Code with Cline, and Windsurf
Both have tabs on Pulldata's docs page. Use the same URL and header in each client's MCP settings.
Restrict any Google key you hand to a local wrapper to the PageSpeed Insights API, as Google recommends for API keys (Google Cloud: Manage API keys). An unrestricted key in a config file can call every API enabled in that project.
Our step-by-step guide to the PageSpeed API key covers creating and restricting one.

Example prompts and what comes back
Good PageSpeed prompts name the URLs, the device and the metrics you want. Here's a prompt that leaves little for the model to guess:
A well-behaved server answers with one test per URL and a short set of values each. The model then builds the table, and you can ask follow-ups such as "which audits explain the slow LCP on the second page".
Ask for the field data level every time. When a page has too few Chrome visits, PageSpeed shows origin data instead (Google), and five low-traffic pages can come back with identical field numbers that the model happily ranks.

Useful follow-ups stay concrete:
- "Run the two failing pages again three times and give the median."
- "Repeat on desktop and show both devices side by side."
- "Which tool did you call, and with which strategy?"
- "Print the raw values for page three before you summarise."
- "Group these pages by template and say which template fails most."
For lists of more than a handful of URLs, skip the chat. Our guide to a bulk PageSpeed test covers running a whole list and keeping one row per page, and our post on sending PageSpeed Insights to Google Sheets keeps the rows in a spreadsheet.
What are the limits and costs?
Limits come from three places: the PageSpeed API or test engine, the MCP server and the AI client. Costs depend on the server: wrappers run on Google's free API within your quota, and hosted services bill per result or per request.
Google lists no price for the PageSpeed Insights API, and our post on PageSpeed Insights API pricing covers what "free" leaves to you. Third-party guides put the default quota at 25,000 requests a day per project (Unlighthouse), but Google's docs we could find don't state it, so check the Quotas tab in your Cloud console.
Pulldata bills per result that comes back, with failed rows free, and current rates are on the Pulldata pricing page. The docs say the server enforces wallet limits and supports daily budget caps.
Time is a limit too. Each PageSpeed test loads the page in full, so a chat that tests ten URLs one after another can take minutes, and some clients give up on a slow tool call before it returns.
The client's context window is the last limit. A raw PageSpeed response holds every audit, so trim the output to a few fields per URL, or the model starts dropping earlier results to fit new ones.

Set a daily budget cap or a quota alert before you let an agent run tests unattended. An agent that retries a failing URL in a loop burns through calls quickly, and a cap stops it without anyone watching.
Where do PageSpeed MCP requests go wrong?
Most failures come from the prompt and the defaults, not the server. The model fills in whatever you leave out, and PageSpeed has several settings that change the result when guessed wrong.
- Device: no device in the prompt can mean a desktop test. Say "mobile" every time.
- Categories: "audit everything" needs every category named, or only Performance runs.
- One run treated as truth: lab scores vary between runs, as Google's Lighthouse variability page explains.
- Private pages: staging sites and pages behind a login can't be reached by Google's servers.
- Summaries without data: a neat paragraph can hide numbers the model filled in from memory.
- Old metrics: a model trained on older material may still talk about First Input Delay, which INP replaced (web.dev).

Ask the assistant to name the tool it called and the strategy it sent before you read its table. If it can't, it may be answering from memory, and the numbers aren't from a test at all.
What are the alternatives to a PageSpeed Insights MCP server?
The alternatives are calling an API from your own code, running a no-code tool on a URL list, or using the PageSpeed web tool by hand. Pick an MCP server only when a model needs to read and act on the results in the same conversation.
For a weekly check on a fixed list, a model adds nothing. Developers can call the PageSpeed audit API from a scheduled job, and non-developers can run the website performance audit tool from the dashboard.
Our guide to Core Web Vitals monitoring covers that routine end to end. For a single page, the free web tool at pagespeed.web.dev is still the fastest way to look.
The same MCP server can do more than speed tests. Pulldata's server also runs the Google Maps lead scraper and the Google search results API, covered in our posts on Google Maps MCP and SERP API MCP.
PageSpeed Insights MCP FAQ
Is there an official PageSpeed Insights MCP server from Google?
We couldn't find one. The Chrome DevTools team publishes an MCP server for local traces, while PageSpeed MCP servers come from community projects and data platforms.
Can Claude run a PageSpeed test?
Yes, once you connect an MCP server that exposes PageSpeed tests. Claude then calls the tool and shows the results in chat.
Do I need a Google API key for PageSpeed MCP?
For local wrappers, yes, since they call Google's API with your key. Hosted servers like Pulldata use their own key setup.
Why does my agent report a desktop score?
The prompt likely didn't name a device, so the server sent the default. Ask for mobile in every prompt.
Can an AI agent fix my PageSpeed issues?
It can explain the audits and suggest code changes. Test again after any change, since the agent can't see the result without a new run.
Sources were checked on Google's, Chrome's and the projects' own pages on Nov 3.
Disclaimer: This article is general information about connecting AI assistants to PageSpeed data. Open-source servers are third-party projects, so review their code and terms before giving them a key; Pulldata is not affiliated with Google or the projects named here.



