GTmetrix MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with GTmetrix MCP or direct API to run performance tests, read reports, inspect HAR files, and manage monitoring through natural language.

GTmetrix MCP logoGTmetrix MCP
Dcr Oauth

GTmetrix MCP is a hosted MCP server for website performance testing and report analysis. It gives developers quick, structured access to speed insights, history, and monitoring.

18 Tools

Try GTmetrix MCP now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
GTmetrix MCP
Try asking
TOOLS

Supported Tools

Every GTmetrix MCP action and event your agent gets out of the box.

Gtmetrix delete page tag

Permanently delete a page tag: irreversible.

Gtmetrix get account status

Returns the current GTmetrix account status including plan type, remaining API credits, next refill date, and feature access flags.

Gtmetrix get catalog

Fetch a GTmetrix lookup catalog (JSON).

Gtmetrix get guide

Fetch a GTmetrix documentation guide (markdown).

Gtmetrix get page alert conditions

Fetch the performance-alert conditions currently configured for a GTmetrix page: whether a video is kept when an alert triggers, the metric/operator/threshold conditions, and (for Team organizations) the recipients notified.

Gtmetrix get page alert events

Fetch the performance-alert events triggered by a GTmetrix page, so an agent can investigate why a page alerted.

Gtmetrix get report

Retrieve the report data using the report ID.

Gtmetrix get report har

Fetch the raw HAR (net.har) for a completed report and return it inline.

Gtmetrix get report history

Fetch the historical performance data for a GTmetrix page.

Gtmetrix get test

Get the current status of a started test.

Gtmetrix list pages

List GTmetrix pages for the authenticated account.

Gtmetrix list page tags

List every page tag on the authenticated account: tag_id, name, description, color, and page_count (how many non-deleted pages currently carry it — a quick way to spot a stale or unused tag).

Gtmetrix reauthenticate

Sign in to a GTmetrix account from the current MCP session.

Gtmetrix save page tag

Create a page tag, or update one by passing its tag_id (an upsert, matching the REST API's POST /page_tags).

Gtmetrix set page alert conditions

Replace the performance-alert conditions configured for a GTmetrix page: which metrics trigger an alert, whether a video is kept, and (for Team organizations) who gets notified.

Gtmetrix set page monitoring

Enable or disable recurring monitoring for a GTmetrix page, which re-runs its saved test settings on a schedule and keeps each run as a report.

Gtmetrix start test

Start a new GTmetrix page performance test for a URL.

Gtmetrix update page tags

Attach or detach a page tag from a batch of pages at once — the bulk direction agents usually want ('tag these 30 pages checkout'), from the tag's point of view: one tag_id, many page_ids.

SETUP GUIDE

Connect GTmetrix MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["gtmetrix_mcp"],
  mcp: true,
});
Create a session scoped to GTmetrix MCP and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Run a GTmetrix performance test for https://example.com and summarize the results.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a GTmetrix MCP request
SETUP GUIDE

Connect GTmetrix MCP API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["gtmetrix_mcp"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to GTmetrix MCP
3

Run GTmetrix MCP tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Run a GTmetrix performance test for https://example.com and summarize the results." }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the GTmetrix MCP tool calls through the session, and print the final answer

Why Use Composio?

AI Native GTmetrix MCP Integration

  • Supports both GTmetrix MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable performance test and report execution
  • Rich coverage for reading reports, querying history, and managing monitoring data

Managed Auth

  • Connect your own DCR OAuth credentials through Composio's secure authentication flow
  • Central place to manage, scope, and revoke GTmetrix MCP access
  • Per user and per environment credentials instead of hard-coded secrets

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access GTmetrix MCP
  • Scoped, least privilege access to GTmetrix MCP resources
  • Full audit trail of agent actions to support review and compliance
FRAMEWORKS

Use GTmetrix MCP with any AI Agent Framework

Choose a Framework you want to connect GTmetrix MCP with

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with GTmetrix MCP.It takes 30 seconds.

Managed auth, hosted MCP servers, and every GTmetrix MCP tool your agent needs.Free to start.

Start building