GTmetrix MCP server
34 operations0 webhooks
GTmetrix page speed testing: start Lighthouse or metrics-only tests from 20+ locations and browsers, read reports (grade, Core Web Vitals, timings, page size), download screenshots, HAR files, videos and PDFs, and manage pages, monitoring, alert conditions and page tags (34 operations).
Try GTmetrix with your agent
Connect GTmetrix, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in GTmetrix on my account, then run one read-only example and show me the result.
GTmetrix tools and triggers
Tools are what your agent can do in GTmetrix through Corsair's MCP server. Triggers are the GTmetrix events a routine can start from.
Pages
- Alert ConditionsRead-only
Get a page's performance alert conditions and recipients.
pages.alertConditions
- Alert EventsRead-only
List the performance alerts a page has triggered, newest first.
pages.alertEvents
- Attach TagsWrite
Attach page tags to a page.
pages.attachTags
- DeleteDestructive
Delete a page and its reports permanently.
pages.delete
- Delete Alert ConditionsDestructive
Remove all of a page's performance alert conditions.
pages.deleteAlertConditions
- Detach TagsWrite
Detach page tags from a page.
pages.detachTags
- GetRead-only
Get a page: URL, latest report, report count, monitoring frequency and tags.
pages.get
- Latest ReportRead-only
Get a page's latest report.
pages.latestReport
- ListRead-only
List pages (URLs with at least one report), with paging, sorting and filters (url, monitored, page_tag).
pages.list
- Performance MonitorWrite
Set a page's monitoring frequency (hourly, daily, weekly, monthly) or turn it off. Scheduled tests use the account's monitoring allowance.
pages.performanceMonitor
- ReportsRead-only
List a page's reports, with paging, sorting and filters.
pages.reports
- RetestWrite
Run a new test with a page's settings. Spends API credits like tests.start.
pages.retest
- Update Alert ConditionsWrite
Replace a page's performance alert conditions (up to 10) and, for Team organizations, the recipients.
pages.updateAlertConditions
Page Tags
- Attach PagesWrite
Attach a page tag to pages.
pageTags.attachPages
- CreateWrite
Create a page tag (name, description, colour).
pageTags.create
- DeleteDestructive
Delete a page tag; it is detached from every page.
pageTags.delete
- Detach PagesWrite
Detach a page tag from pages.
pageTags.detachPages
- GetRead-only
Get one page tag.
pageTags.get
- ListRead-only
List the page tags on this account.
pageTags.list
- UpdateWrite
Change a page tag's name, description or colour.
pageTags.update
Reports
- DeleteDestructive
Delete a report permanently.
reports.delete
- GetRead-only
Get a report: grade, scores, Core Web Vitals, timings, page size, and links to its files.
reports.get
- ResourceRead-only
Download a report file: screenshot, HAR, filmstrip, video, Lighthouse JSON, resource summary or PDF. report.pdf spends 0.2 credits (0.3 full). analysis-options includes the test's cookies and HTTP auth.
reports.resource
- RetestWrite
Run a new test with a report's settings. Spends API credits like tests.start.
reports.retest
Tests
- GetRead-only
Poll a test. While it runs this returns its state; once complete GTmetrix redirects to the report, which is returned instead.
tests.get
- ListRead-only
List tests from the last 24 hours, with paging, sorting and filters (state, source, created, browser, location).
tests.list
- StartWrite
Start a page test. Spends API credits: 1 for Lighthouse, 0.7 legacy, 1.1 both, 0.6 metrics only, plus video and retention add-ons.
tests.start
Browsers
- GetRead-only
Get one browser and the test features it supports.
browsers.get
- ListRead-only
List the browsers tests can run in, with the features each supports (Lighthouse, video, throttling, custom DNS).
browsers.list
Locations
- GetRead-only
Get one test location.
locations.get
- ListRead-only
List test locations with their region, browsers and whether this account can use them.
locations.list
Simulated Devices
- GetRead-only
Get one simulated device.
simulatedDevices.get
- ListRead-only
List the phones and tablets a test can simulate (viewport, pixel ratio, user agent).
simulatedDevices.list
Status
- GetRead-only
Get the account's API credit balance, next refill and plan access. The API key GTmetrix returns as the record id is removed.
status.get
Connect GTmetrix to Claude, ChatGPT or Cursor
- 1
Connect GTmetrix in Corsair
Add your GTmetrix API key once in Corsair. Corsair stores the credential encrypted and makes the GTmetrix API calls for your agent, so it never goes into a prompt or a config file. Connect GTmetrix
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs GTmetrix. On a ChatGPT personal plan, connect GTmetrix here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Install Corsair from ChatGPT's plugin directory, connect it and sign in. A custom MCP server with the address works too, but personal plans get its read tools only.Add to Cursor / Grok BuildOr add this to~/.cursor/mcp.json. It opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Antigravity, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, GTmetrix's read and write operations run right away and its 4 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/gtmetrix, add the GTmetrix plugin, and connect with an API key. Then call methods like corsair.gtmetrix.api.browsers.get() from your app. Corsair syncs data per tenant.
Yes. GTmetrix requires an API key from your GTmetrix account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit GTmetrix, GitHub, Notion, Stripe, and the rest. Trigger GTmetrix from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for GTmetrix page speed testing: start Lighthouse or metrics-only tests from 20+ locations and browsers, read reports (grade, Core Web Vitals, timings, page size), download screenshots, HAR files, videos and PDFs, and manage pages, monitoring, alert conditions and page tags (34 operations). Common builds include sync jobs, admin tooling, and agents that call GTmetrix APIs from your backend. Local DB entities let you query synced GTmetrix records without hitting the API on every read.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per GTmetrix API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/gtmetrix in the open repo. When GTmetrix ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your GTmetrix data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store GTmetrix data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put GTmetrix on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 4 destructive GTmetrix operations. You can change a link's mode at hub.corsair.dev/me.