hasdata-google-trends

hasdata-google-trends is a cursor rule for Cursor from HasData/google-trends-mcp. It costs 19 tokens per session (841 once invoked), scanned A, original, MIT.

A set of instructions for retrieving Google Trends data through HasData. It explains how to request time series, regional results, related topics, or related queries, and how to read their changing result formats.

In plain words
What is it for?
Use it when an agent needs search-interest curves, regional breakdowns, related searches, or related topics from Google Trends.
Why use it?
It prevents common mistakes such as treating relative scores as search totals or looking for a result under the wrong field. It also explains how to compare terms fairly in one request.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it when an agent needs search-interest curves, regional breakdowns, related searches, or related topics from Google Trends.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/hasdata/google-trends-mcp/hasdata-google-trends
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/HasData/google-trends-mcp

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hasdata-google-trends

README.md
[![agentmods](https://agentmods.dev/badge/rules/hasdata/google-trends-mcp/hasdata-google-trends/github.svg)](https://agentmods.dev/rules/hasdata/google-trends-mcp/hasdata-google-trends)
Your own site
<a href="https://agentmods.dev/rules/hasdata/google-trends-mcp/hasdata-google-trends"><img src="https://agentmods.dev/badge/rules/hasdata/google-trends-mcp/hasdata-google-trends/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hasdata-google-trends

Your own site · 80×15
<a href="https://agentmods.dev/rules/hasdata/google-trends-mcp/hasdata-google-trends"><img src="https://agentmods.dev/badge/rules/hasdata/google-trends-mcp/hasdata-google-trends.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 841 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.00841
Opus 5.5 $0.00008 $0.00336
Sonnet 5.5 $0.00004 $0.00168
Haiku 4.5 $0.00002 $0.00084

Measured 3d ago against content hash dc3aeb325c96, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hasdata-google-trends scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

rules/hasdata-google-trends.mdc · 45 lines

How it starts

The opening of the file, as written. The whole thing — 45 lines — stays where its author put it; the contents beside it link to each section on GitHub.

One tool, hasdata_google_trends_search_getTrendsData. It takes q and returns one block of data, and which block you get is decided by dataType.

dataType renames the answer

timeseries returns interestOverTime, geoMap returns geoMap, relatedTopics returns relatedTopics and relatedQueries returns relatedQueries. The top-level key changes with the parameter, so reading a fixed key means three of the four calls look empty. One call gives one block, and a question that needs the curve and the regions needs two calls.

Interest is relative, never absolute

Google Trends reports interest on a 0 to 100 scale inside the requested window and set of terms. The numbers are not searches, and they are not comparable across two separate calls, because each call rescales to its own maximum.

Comparing terms means putting them in one request. q takes them comma-separated up to five, and a sixth is rejected with a 400. Each point then carries a values array with one entry per term, each holding query, extractedValue and a hasData flag, which is how a term with nothing behind it is distinguished from a term sitting at zero.

That comparison cannot be carried into the other blocks. relatedTopics and relatedQueries take a single term and answer a multi-term q with a 422 reading supportsSingleQuery.

A point also carries isPartial. The final bucket of a running window is usually partial, so treating it as a finished period turns an incomplete count into a fall.

Rising is labelled, not measured

In relatedQueries, a rising entry reads either as a percentage such as +300% or as Breakout. A Breakout still carries an extractedValue, and it is a sentinel far above any real percentage rather than a measurement. Sorting the rising list on that number puts the sentinels on top as though they were the biggest gains, so sort on the label and treat Breakout as its own category.

Targeting

geo is an enum of documented locations and a value outside it fails with a 422 naming geo, so a made-up code is rejected rather than ignored. region chooses the granularity of a geoMap between country, region, dma and city, and its default follows geo, so pass it explicitly or report which granularity you actually got. cat narrows to a category, gprop switches the corpus to images, news, froogle or youtube, and date takes Google's own range strings such as now 1-H or today 12-m.

Read the full file on GitHub · 45 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · +6 lines dc3aeb325c96
  2. 23d ago First seen · 39 lines · 19 tokens per session scan A 80314e1d84ed

Subscribe to this mod's changes

hasdata-google-trends is a cursor rule published in the GitHub repository HasData/google-trends-mcp (5 stars, last pushed 2d ago), licensed MIT. It adds 19 tokens to every session and 841 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.