How to integrate GTmetrix MCP with Codex

Connect Codex to GTmetrix MCP. Run a performance test on your homepage, check latest gtmetrix report for example.com, and more using natural language, with authentication handled for you.

GTmetrix logoGTmetrix
Api Key

GTmetrix is a web performance analysis tool that tests and reports on site speed. It helps developers and teams identify bottlenecks and optimize web applications for a better user experience.

20 Tools

Introduction

Codex is one of the most popular coding harnesses out there. And MCP makes the experience even better. With the GTmetrix MCP integration, Codex can start page speed tests, fetch performance reports, retest pages, list test locations and browsers, and check your account status, all without leaving the terminal or the app, whichever you prefer.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate GTmetrix with

Why use Composio?

Apart from a managed and hosted MCP server, you will get:

  • CodeAct: A dedicated workbench that allows GPT to write its code to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
  • Large tool responses: Handle them to minimise context rot.
  • Dynamic just-in-time access to 20,000 tools across 1800+ other Apps for cross-app workflows. It loads the tools you need, so GPTs aren't overwhelmed by tools you don't need.

How to install GTmetrix MCP in Codex

Run the setup command

Run this command in your terminal to add the Composio MCP server to Codex.

Terminal

It will initiate the authentication in a browser window, authorize Codex to access your Composio account.

Composio authentication page

(Optional) Authenticate with OAuth

To authenticate manually, run the login command to open a browser window and authorize Codex to access your Composio account.

bash
codex mcp login composio

Verify the connection

Run codex mcp list to confirm Composio appears as a registered MCP server.

bash
codex mcp list

Codex App

Codex App follows the same approach as VS Code.

  1. Click ⚙️ on the bottom left → MCP Servers → + Add servers → Streamable HTTP:
  2. Fill the header and Key fields with { "x-consumer-api-key" = "ck_*******" }.
  3. The Key is the Composio API key, that you can find on dashboard.composio.dev
  4. Click on Authenticate and authorize Codex to your Composio account and you're all set.
Codex App MCP setup
  1. Restart and verify if it's there in .codex/config.toml
bash
[mcp_servers.composio]
url = "https://connect.composio.dev/mcp"
http_headers = { "x-consumer-api-key" = "ck_*******" }

Try it

Ask Codex for a GTmetrix task. The first time, Composio asks you to connect your GTmetrix account.

For example, ask it to:

  • "Run a performance test on your homepage"
  • "Check latest GTmetrix report for example.com"
  • "List top optimization recommendations for your site"

What is the GTmetrix MCP server, and what's possible with it?

The GTmetrix MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your GTmetrix account. It provides structured and secure access to your website performance tests, reports, monitored pages, test locations, browsers, and account status, so your agent can start tests, review results, inspect report resources, track monitored pages, and check remaining credits on your behalf.

  • Website performance testing: Have your agent start a GTmetrix performance test for any specified website URL.
  • Test and report review: Let the agent retrieve your recent tests, inspect test details, and fetch performance reports for closer analysis.
  • Monitored page tracking: Direct your agent to list monitored pages, review their report history, and retrieve the latest report for each page.
  • Report resource retrieval: Instruct your agent to fetch screenshots, HAR files, videos, PDFs, or Lighthouse JSON from a performance report.
  • Test setup and account checks: Have your agent review available browsers and test locations, inspect their details, and check your account state and remaining credits.

Conclusion

You've successfully integrated GTmetrix with Codex using Composio's MCP server. Now you can interact with GTmetrix directly from your terminal, VS Code, or the Codex App using natural language commands.

Key benefits of this setup:

  • Seamless integration across CLI, VS Code, and standalone app
  • Natural language commands for GTmetrix operations
  • Managed authentication through Composio
  • Access to 20,000+ tools across 1800+ apps for cross-app workflows
  • CodeAct workbench for complex tool chaining

Next steps:

  • Try asking Codex to perform various GTmetrix operations
  • Explore cross-app workflows by connecting more toolkits
  • Build automation scripts that leverage Codex's AI capabilities
TOOLS

Supported Tools

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

Delete Page

Permanently delete a specific GTmetrix page, including all its reports and associated history.

Delete Report

Permanently delete a GTmetrix report and all of its resources.

Get Browser Details

Tool to retrieve browser details from GTmetrix.

Get Browsers

Tool to retrieve the list of available browsers for GTmetrix performance tests.

Get Location Details

Tool to retrieve location details from GTmetrix.

Get Locations

Tool to retrieve the list of available GTmetrix test locations.

Get Page Details

Tool to retrieve page details from the user's GTmetrix account.

Get Page Latest Report

Retrieve the latest test report for a GTmetrix page, including available performance metrics and timing data.

Get Page Reports

Retrieve a paginated list of historical performance reports for a GTmetrix page, with sorting options.

Get Pages

Retrieve a paginated list of GTmetrix account pages, including their configurations and latest report identifiers.

Get Report

Retrieve a GTmetrix test report by ID, including selected performance metrics, timing data, and resource links.

Get Report Resource

Tool to get a report resource such as screenshot, HAR file, video, PDF, or Lighthouse JSON.

Get Simulated Device

Tool to retrieve simulated device details.

Get Simulated Devices

Tool to retrieve the list of simulated devices available in GTmetrix.

Get API Account Status

Tool to retrieve the current API account state and remaining credits.

Get Test Details

Tool to retrieve test details for a specific GTMetrix test.

Get Tests

Retrieve a paginated, filterable list of API-sourced tests from your GTmetrix account, including their states, timestamps, and configuration details.

Retest Page

Tool to initiate a retest of a GTmetrix page with same parameters.

Retest Report

Tool to initiate a retest of a completed GTmetrix report with same parameters.

Start Test

Tool to start a new GTmetrix test for a specified URL.

FAQ

Frequently asked questions

Start with GTmetrix.It takes 30 seconds.

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

Start building