Google Trends MCP: give AI agents Google Trends data through the Apify MCP server

Google Trends MCP means giving an AI agent Google Trends data as a tool: the Apify MCP server exposes the Actor kwerix/google-trends-api to MCP clients such as Claude, ChatGPT and Cursor through one URL. The agent sends keywords and reads one compact row per keyword, which fits in its context, at $0.0015 per keyword.

KwerixPublished

MCP client configuration that gives AI agents Google Trends MCP access to the Google Trends API

There are 3 steps to connect an AI agent to Google Trends through MCP.

  1. Add the Apify MCP server to the client with the Actor as its only tool: https://mcp.apify.com?tools=kwerix/google-trends-api.
  2. Sign in to Apify in the browser window that the first connection opens.
  3. Ask the agent a Google Trends question in plain language.
{
  "mcpServers": {
    "apify": { "type": "http", "url": "https://mcp.apify.com?tools=kwerix/google-trends-api" }
  }
}

Clients that only support local servers run the same tool through npx, with the token in the environment.

{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": ["-y", "@apify/actors-mcp-server@latest", "--tools", "kwerix/google-trends-api"],
      "env": { "APIFY_TOKEN": "<your token>" }
    }
  }
}

4 prompts work well with Google Trends MCP, according to the Kwerix examples repository.

GoalPrompt
SeasonalityIs sunscreen seasonal in the US, and by when should I publish content for the next peak?
ComparisonRank these 20 skincare keywords by Google Trends popularity on one scale.
Trending NowWhat is trending in Spain right now in Sports and Technology?
BreakoutsWhich queries are breaking out around ai agents?

Which field answers which question?

Every Google Trends question maps to one field, and the table shows which field answers which question for the agent.

QuestionField
Is this topic growing or declining?trendSlopePctPerYear, yoyChangePct
Is it seasonal, and when does it peak?seasonality.isSeasonal, seasonality.peakMonths, seasonality.nextPeakDate
When should content be published?seasonality.publishBy, seasonality.publishWindowOpen
What is breaking out right now?breakoutQueries, then risingQueries
Which keyword is most popular?comparison.rank, with compareKeywords: true
Where is it searched most?interestByRegion, with includeInterestByRegion: true

Google Trends MCP costs $0.0015 per keyword and $0.0005 per trend on the agent’s Apify account, and the default output keeps one compact row per keyword with no raw timeline, so the results fit in a model’s context.

  • Agents call the same Google Trends data API that developers call from Python and JavaScript, with the same rows.

Does the Google Trends MCP server need an API key?

No, not for the remote server: the first connection opens a browser to sign in to Apify. The local server through npx needs an APIFY_TOKEN.

Can an agent compare more than 5 keywords through MCP?

Yes. The agent sets compareKeywords to true and reads comparison.rank and comparison.averageOnCommonScale for every keyword.

Sources