惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
CXSECURITY Database RSS Feed - CXSecurity.com
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
T
Threat Research - Cisco Blogs
小众软件
小众软件
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
Apple Machine Learning Research
Apple Machine Learning Research
C
Cyber Attacks, Cyber Crime and Cyber Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Tailwind CSS Blog
Cisco Talos Blog
Cisco Talos Blog
V
V2EX
博客园 - 【当耐特】
C
Cybersecurity and Infrastructure Security Agency CISA
Hugging Face - Blog
Hugging Face - Blog
The Cloudflare Blog
The Last Watchdog
The Last Watchdog
Simon Willison's Weblog
Simon Willison's Weblog
T
Threatpost
S
Secure Thoughts
O
OpenAI News
P
Proofpoint News Feed
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Application and Cybersecurity Blog
Application and Cybersecurity Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
宝玉的分享
宝玉的分享
Scott Helme
Scott Helme
T
Tenable Blog
A
Arctic Wolf
L
LINUX DO - 热门话题
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
www.infosecurity-magazine.com
www.infosecurity-magazine.com
V
Visual Studio Blog
Hacker News: Ask HN
Hacker News: Ask HN
Hacker News - Newest:
Hacker News - Newest: "LLM"
腾讯CDC
博客园 - Franky
WordPress大学
WordPress大学
Know Your Adversary
Know Your Adversary
博客园_首页
雷峰网
雷峰网
IT之家
IT之家
PCI Perspectives
PCI Perspectives
L
LINUX DO - 最新话题
H
Heimdal Security Blog

How to Guides Archives - GTmetrix

How to Connect the GTmetrix MCP With Claude - GTmetrix How to Connect the GTmetrix MCP With GitHub Copilot CLI - GTmetrix How to Connect the GTmetrix MCP With ChatGPT - GTmetrix How to Connect the GTmetrix MCP With Cursor - GTmetrix Introducing GTmetrix MCP: What It Is, How It Works, and Why It Matters - GTmetrix Image Optimization With Imagify Using GTmetrix History Exports in Google Sheets WordPress Optimization Using WP Rocket WordPress Optimization Guide How to properly size images How to avoid multiple page redirects
How to Connect the GTmetrix MCP With Codex - GTmetrix
Varun · 2026-06-17 · via How to Guides Archives - GTmetrix

We show you how to connect the GTmetrix MCP with OpenAI’s Codex.


Overview

The GTmetrix MCP can be connected to OpenAI’s Codex in order to integrate GTmetrix workflow directly into Codex.

In this guide, we’ll show you how to connect the GTmetrix MCP to Codex with step-by-step instructions.


Connecting GTmetrix MCP to Codex

There are 2 primary ways to connect the GTmetrix MCP to Codex:

  • Using OAuth
  • Using TOML

Note for Organizational/Company Accounts

If you are using an organization-managed Codex account, your administrator may restrict the adding of custom MCP servers.

Reach out to your IT team add the GTmetrix MCP to the approved MCP servers list.

We provide step-by-step guidance for each method below:
 


 

Using OAuth

The simplest and quickest method to connect to the GTmetrix MCP is by using OAuth – you can connect with just a few clicks.
 

1) Navigate to Settings using the Sidebar

You can also use the Ctrl + comma keyboard shortcut on Windows/Linux (Cmd + comma on Mac).
 

 

2) Click on MCP servers

 

 

3) Click “Add server”

 

 

4) Enter MCP details

  • Name: GTmetrix
  • Select Streamable HTTP
  • URL: https://gtmetrix.com/mcp

Leave everything else empty – Click Save once you’ve entered the required details.
 

 

5) Authenticate your Connection

Click Authenticate – This will launch a new browser window asking you to log into GTmetrix.
 

 

  • Log into your GTmetrix account
  • Click Allow to authorize your connection

 

 
A success screen should appear when the connection is successfully established.
 

6) Restart/Open Codex and Confirm Connection

To confirm, restart Codex, then start a new chat and ask Codex if it can see the GTmetrix MCP tools.
 

 
If Codex responds with a list of GTmetrix tools, you know that the connection was successful and you can now start interacting with Codex and get it to use GTmetrix.
 


 

Using TOML

If you prefer to manually configure the GTmetrix MCP server in your Codex configuration files, you can do so with the instructions below:
 

1) Make sure you’ve generated an API key for your account on the GTmetrix account page

 

 
Copy your API key and keep it aside safely as you’ll need it to set up the MCP connection.
 

 
For security reasons, the screenshot above says YOUR_API_KEY but your Account page will display your actual API key.
 

2) Edit your config.toml file

  • Windows: C:/Users/<%USER%>/.codex/config.toml
  • Mac: ~/.codex/config.toml

Open this file in a text/code editor.
 

3) Add the gtmetrix MCP

Add the following code to the very bottom of the file:


[mcp_servers.gtmetrix]
url = "https://gtmetrix.com/mcp"

[mcp_servers.gtmetrix.http_headers]
Authorization = "Bearer YOUR_API_KEY"

where YOUR_API_KEY is your API key that you previously copied from the Account page.
 

4) Save the file and restart Codex

Save the config file, then quit the Codex Desktop app entirely and restart it to apply the changes.
 

5) Confirm Connection

Restart Codex, then start a new chat and ask Codex if it can see the GTmetrix MCP tools.
 

 
If Codex responds with a list of GTmetrix tools, you know that the connection was successful and you can now start interacting with Codex and get it to use GTmetrix.


Summary

Connecting the GTmetrix MCP to Codex is quick, simple, and can be done in multiple ways:

  • OAuth authentication
  • Editing the TOML config

Use the GTmetrix MCP connection to bring your GTmetrix workflows directly into Codex.

Get Codex to start GTmetrix tests, test in different scenarios (locations/devices/connection speeds, etc.), compare results, and help you understand what’s slowing down your page and how to fix them.

Give this a try and let us know if you run into any bugs or issues.


Unlock More API Credits for Codex Powered Performance Testing

Basic GTmetrix Splash

Run more tests with additional API credits. Use GTmetrix MCP inside Codex to automate testing, compare results, access history, and surface actionable insights.

Available with select PRO plans (excluding Lite plan).

Other features include: Priority access for tests, More Monitored Slots, Access to more locations, Remote Location Monitoring, Complete Mobile testing suite, and more!


Upgrade to PRO today