# HasData Google Trends

Fetches Google Trends timeline metrics and regional interest distributions as JSON without browser automation or Google credentials.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 5
- Author: HasData
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/HasData/google-trends-mcp
- Updated: 2026-10-14
- HTML: https://affpapa.org/en/nevibecode/mcp/hasdata-google-trends

## What it does

The `hasdata_google_trends_search_getTrendsData` tool lets an AI agent inspect Google Trends records directly. It delivers historical interest charts and geo-targeted breakdowns. You can compare multiple search terms inside a single timeseries call instead of making repetitive requests.

Communication runs over remote HTTP or via a lightweight stdio bridge using the `@hasdata/google-trends-mcp` npm package or its PyPI build. Configuration relies on passing `HASDATA_API_KEY` through headers or process environment flags.

Without a valid HasData token, requests fail immediately. The free tier grants 1,000 monthly credits with no payment card on file, where each tool execution spends 10 credits.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://mcp.hasdata.com/mcp?apis=google_trends`
- Environment variables: `HASDATA_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI**
```bash
claude mcp add google-trends -e HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/google-trends-mcp
```
Replace <…> with your own values

2. **Platform CLI: remote server**
```bash
claude mcp add --transport http hasdata-google-trends 'https://mcp.hasdata.com/mcp?apis=google_trends'
```

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add hasdata-google-trends --url 'https://mcp.hasdata.com/mcp?apis=google_trends'
```

2. **Platform CLI**
```bash
codex mcp add hasdata-google-trends --env HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/google-trends-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "hasdata-google-trends": {
            "url": "https://mcp.hasdata.com/mcp?apis=google_trends"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "hasdata-google-trends": {
            "command": "npx",
            "args": [
                "-y",
                "@hasdata/google-trends-mcp"
            ],
            "env": {
                "HASDATA_API_KEY": "<HASDATA_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "hasdata-google-trends": {
            "type": "http",
            "url": "https://mcp.hasdata.com/mcp?apis=google_trends"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "hasdata-google-trends": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@hasdata/google-trends-mcp"
            ],
            "env": {
                "HASDATA_API_KEY": "<HASDATA_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http hasdata-google-trends 'https://mcp.hasdata.com/mcp?apis=google_trends'
```

2. **Platform CLI**
```bash
gemini mcp add -e HASDATA_API_KEY=<HASDATA_API_KEY> hasdata-google-trends npx -y @hasdata/google-trends-mcp
```
Replace <…> with your own values

## When to use it
- evaluate historical interest curves across multiple search terms
- identify emerging search queries and breakout industry topics
- inspect query popularity across specific geographic regions
- fetch structured trends JSON without maintaining scraping scripts

## Example prompts
- Compare search interest between cold brew and iced coffee across the globe over the last five years.
- Retrieve US query volume for sunscreen broken down by state for the past 90 days.
- List rising search queries for cold brew coffee in the US and highlight breakout items.

## Similar
- [New-Term Radar](https://affpapa.org/en/nevibecode/mcp/new-term-radar.md) — MCP server · ★ 1823
- [NotFair](https://affpapa.org/en/nevibecode/mcp/notfair.md) — MCP server · ★ 4064
- [seo-monster](https://affpapa.org/en/nevibecode/mcp/seo-monster.md) — MCP server · ★ 555
- [Google Maps MCP Server](https://affpapa.org/en/nevibecode/mcp/google-maps-mcp-server.md) — MCP server · ★ 484
- [Search Console MCP](https://affpapa.org/en/nevibecode/mcp/search-console-mcp.md) — MCP server · ★ 310
- [squirrelscan](https://affpapa.org/en/nevibecode/mcp/squirrelscan.md) — MCP server · ★ 298

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
