> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Gtmetrix in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/gtmetrix
Last updated: 2026-11-24

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 will 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**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An API key from Gtmetrix for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **API Key** | API token | `token` |

### 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

1. **Open Shared Resources**

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

2. **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.

3. **Limit the tools**

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

4. **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:

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

## Employee: connect Gtmetrix

### In the portal

1. **Open Gtmetrix in the catalog**

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

2. **Authenticate**

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

3. **Confirm**

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

### With the CLI

```bash
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.

```bash
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](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
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

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Gtmetrix there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Gtmetrix on metorial.com](https://metorial.com/integrations/gtmetrix): the integration overview