Skip to main content
MCP server CX Codex

HasData Google Trends — Claude Code MCP server: setup guide

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

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add google-trends -e HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/google-trends-mcp
Open on GitHub

What HasData Google Trends 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.

What it helps with

  • 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 for the agent

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

How to install HasData Google Trends

1Platform CLI

claude mcp add google-trends -e HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/google-trends-mcp

Replace <…> with your own values

2Platform CLI: remote server

claude mcp add --transport http hasdata-google-trends 'https://mcp.hasdata.com/mcp?apis=google_trends'

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about HasData Google Trends

How do I install HasData Google Trends in Claude Code?

Run this command in your terminal: claude mcp add google-trends -e HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/google-trends-mcp.

How many requests does the free tier provide?

HasData includes 1,000 free credits each month without asking for card details. Since each query uses 10 credits, that allowance covers around 100 calls.

Is a Google account necessary to fetch trends?

No Google credentials or proxy pools are needed. The MCP server fetches trend details through HasData endpoints directly.

Similar MCP servers

Everything for SEO and GEO →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor