MetorialDocs

Set up Gtmetrix in Metorial for Claude, ChatGPT and Cursor

Share Gtmetrix with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 11 tools (8 read-only).

To give your team Gtmetrix in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Gtmetrix integration in a Metorial portal, and each person connects with an API key. Agents can run web page speed tests and retrieve detailed performance reports. The integration has 11 tools, 8 read-only, 2 write and 1 destructive, plus 1 trigger.

What you'll learn

  • How an admin shares Gtmetrix in a portal and how each person connects
  • What Gtmetrix asks for when you connect, and where to find it
  • How to keep the 8 read-only tools and reject the other 3

Before you start

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokentoken

API Key

To connect, a person enters:

  • token: Your GTmetrix API key. Found in your GTmetrix Account Settings page.

Admin: share Gtmetrix in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Gtmetrix. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Gtmetrix.

Choose who gets it

Add the access groups that should see Gtmetrix. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Gtmetrix integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search gtmetrix

Employee: connect Gtmetrix

In the portal

Open Gtmetrix in the catalog

Sign in to your portal and open Gtmetrix. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API key (token).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search gtmetrix
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Gtmetrix connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list gtmetrix
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 8 read-only tools, such as get_page and get_test, and lose the 2 write tools, such as retest or run_test, and the destructive tool delete_resource.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list gtmetrix
metorial tools <integration-id>
metorial call <integration-id> get_account_status -d '{}'

metorial tools lists the 11 tools, minus any you rejected. get_account_status takes no input.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (8)

  • list_locations_browsers: Retrieves the available test locations and browsers for GTmetrix performance testing.
  • get_report: Retrieves a completed GTmetrix performance report by its report ID or test ID.
  • get_page: Retrieves a GTmetrix page by ID, including its metadata and optionally its latest report or historical reports list. Needs pageId.
  • list_pages: Lists GTmetrix pages (URL aggregations).
  • get_account_status: Retrieves the current GTmetrix account status including API credit balance, next refill time, account type, and feature access flags.
  • get_test: Checks the current state of a GTmetrix test without waiting for completion.
  • list_tests: Lists recent GTmetrix tests with status and report IDs.
  • list_simulated_devices: Lists GTmetrix simulated-device presets with IDs, viewport dimensions, pixel ratios, and user agents.

Write tools (2)

  • run_test: Runs a GTmetrix page speed test on a given URL and optionally waits for the test to complete. Needs url.
  • retest: Re-runs a performance test using the original analysis options from an existing page or report.

Destructive tools (1)

  • delete_resource: Deletes a GTmetrix page or report.

Triggers

Gtmetrix has 1 trigger, which fire on events in Gtmetrix:

  • inbound_webhook

Next steps