# 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.

Canonical: https://kwerix.com/trends/mcp/

## How to connect an AI agent to Google Trends through MCP

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.

```json
{
  "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.

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

## Which prompts work with Google Trends MCP?

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

| Goal | Prompt |
|---|---|
| Seasonality | Is sunscreen seasonal in the US, and by when should I publish content for the next peak? |
| Comparison | Rank these 20 skincare keywords by Google Trends popularity on one scale. |
| Trending Now | What is trending in Spain right now in Sports and Technology? |
| Breakouts | Which 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.

| Question | Field |
|---|---|
| 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` |

## How much does Google Trends MCP cost?

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.

## Google Trends MCP FAQ

## Frequently asked questions

### 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

- [Kwerix, Google Trends API examples: MCP setup and prompts (GitHub)](https://github.com/Kwerix/google-trends-api)
- [Kwerix, Google Trends API & Scraper (README: use with AI agents)](https://apify.com/kwerix/google-trends-api)
