How to integrate GTmetrix MCP with Atomic Agent

Connect Atomic Agent 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

Atomic Agent is an open-source AI agent that runs on your machine and supports local models through llama.cpp. Connect it to 1,700+ apps through Composio, including GTmetrix.

This guide uses Atomic Agent's built-in Composio integration. You need Atomic Agent v0.5.6 or later, your own Composio API key, and a GTmetrix account. See the Atomic Agent documentation for installation instructions.

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

Also integrate GTmetrix with

How Atomic Agent connects to GTmetrix

Atomic Agent connects to Composio's Tool Router over Streamable HTTP MCP. It discovers the tools needed for your request, and Composio handles account authentication.

Execution and account-connection tools follow Atomic Agent's configured approval policy. Review any approval prompt before allowing an action on your connected account.

Connect GTmetrix to Atomic Agent

  1. Sign up or sign in to the Composio dashboard. Copy your API key.
  2. In Atomic Agent, open the Integrations tab and select Composio. Select API key, press e, paste the key, and press Enter. The tools become available immediately, without a restart.
  3. Ask Atomic Agent to do something in GTmetrix. It searches Composio for the right tool.
  4. On first use, open the sign-in link returned in the chat. Connect your GTmetrix account, then return to Atomic Agent to continue.

Headless setup

Add the following line to ~/.atomic-agent/.env, replacing YOUR_COMPOSIO_API_KEY with your key. Start Atomic Agent after saving the file.

bash
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY

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.

Use GTmetrix from Atomic Agent

With your account connected, ask Atomic Agent to work with GTmetrix in natural language. You can connect more apps through the same Composio integration as you need them.

Visit the Atomic Agent website or inspect the Atomic Agent source code.

Troubleshooting

Why is my API key rejected?

Copy the key directly from the Composio dashboard. Atomic Agent requires ASCII characters because it sends the key in an HTTP header. Remove any extra characters introduced when copying.

Why are Composio tools unavailable after saving a key?

Check that you use Atomic Agent v0.5.6 or later and that Composio is enabled in your configuration. A "composio": { "enabled": false } setting disables the integration while keeping the saved key on disk.

Does Composio have a free plan?

The Hobby plan includes 100,000 tool calls per month. Composio-managed OAuth apps have a lower included allowance. See Composio pricing for the current limits that apply to your connection.

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