mcpField
G
google-trends-mcp

google-trends-mcp

Local
github.com/purahmanianData & Analytics2Updated 21w ago

About google-trends-mcp

google-trends-mcp is an MCP server that provides Google Trends search-interest data to MCP-compatible AI clients. It supports trend comparisons, related queries, regional breakdowns, and current trending searches without an API key.

Key features

  1. 01Retrieves interest over time for up to five terms
  2. 02Compares search interest across terms
  3. 03Finds top and rising related queries
  4. 04Shows current daily trending searches
  5. 05Breaks interest down by region

Use cases

  1. 01Compare keyword interest across markets
  2. 02Track seasonal search patterns
  3. 03Find rising queries around a topic
  4. 04Identify regional differences in search interest

MCP support

Exposes five Google Trends data tools to MCP-compatible clients. It requires no API key and queries the undocumented endpoints used by the Google Trends website.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"purahmanian-google-trends": {
"command": "npx",
"args": [
"-y",
"google-trends-mcp"
]
}
}
}
Run commandnpx -y google-trends-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmgoogle-trends-mcp0.1.1

Tools

5

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
geostringNoTwo-letter country code (e.g. "US") or empty for worldwide.
termsarrayYesSearch terms (1-5).
timeframestringNoTrends timeframe string, e.g. "today 12-m", "today 5-y", "now 7-d".

Details

From the project README

google-trends-mcp

Free Google Trends data inside any MCP-compatible AI client. No API key required.

CI npm


UNOFFICIAL ENDPOINT DISCLAIMER

This server communicates with the same internal endpoints that the trends.google.com frontend uses. These endpoints are undocumented and unofficial. Google can change, rate-limit, or remove them at any time without notice. This project is not affiliated with, endorsed by, or sponsored by Google LLC. "Google Trends" is a trademark of Google LLC.

If requests start failing, open an issue. The fix is usually a URL or parameter tweak.


What it does

ToolDescriptionExample prompt
interest_over_timeWeekly interest scores (0-100) for up to 5 terms"Show me interest in 'matcha latte' over the past year in the US"
compare_termsNormalized comparison of 2-5 terms with winner callout"Compare 'coffee', 'tea', and 'matcha' in Canada"
related_queriesTop and rising related search queries for a term"What related queries are rising for 'cold plunge'?"
trending_nowToday's daily trending searches for a country"What's trending on Google in the UK right now?"
interest_by_regionRegional breakdown of interest (country or sub-region)"Which US states search for 'pickleball' most?"

Quick start

No API key is needed. Install and run via npx.

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "google-trends": {
      "command": "npx",
      "args": ["-y", "google-trends-mcp"]
    }
  }
}
Claude Code
claude mcp add google-trends -- npx -y google-trends-mcp
OpenAI Codex CLI

Add to ~/.codex/config.toml:

[mcp_servers.google-trends]
command = "npx"
args = ["-y", "google-trends-mcp"]

Example conversations

Spotting seasonality:

"Use Google Trends to show me interest in 'pumpkin spice' over the past 5 years worldwide."

The model calls interest_over_time with terms=["pumpkin spice"], timeframe="today 5-y" and narrates the clear September-October spikes each year.

Keyword competition:

"Compare search interest in 'Notion', 'Obsidian', and 'Roam Research' in the US this year."

The model calls compare_terms, reads the averages, and identifies the winner with supporting time-series data.

Opportunity discovery:

"What are the fastest-rising related queries for 'sourdough bread' right now?"

The model calls related_queries and surfaces the rising queries, often revealing adjacent niches and trending subtopics.


Development

# Clone and install
git clone https://github.com/purahmanian/google-trends-mcp.git
cd google-trends-mcp
npm install

# Run tests (no network calls; all HTTP is mocked)
npm test

# Build TypeScript to dist/
npm run build

# Run the server locally (stdio mode)
node dist/index.js
Rate limits and blocking

Google does not publish a rate limit for these endpoints. In practice, a few requests per minute works reliably. If you hit HTTP 429 or get blocked, the server returns a descriptive error message. Waiting 2-5 minutes usually resolves it.


Built by

Built by Puya Ventures LLC. I build custom MCP servers and AI integrations for product teams and researchers. Get in touch: [email protected] | Portfolio: puyarahmanian.com

Part of the Product-Research MCP Suite: keepa-mcp · google-trends-mcp · junglescout-mcp


Privacy

This server runs entirely on your machine. It collects no telemetry and stores no data. The only network calls it makes are to Google Trends endpoints (trends.google.com), sending the search terms and region codes you ask about. No account or API key is involved. See Google's privacy policy: https://policies.google.com/privacy

License

MIT. See LICENSE.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.