Google Trends

v0.1.1
io.github.mamrrez/gtrends-mcp-full Checked 3 days ago Published 2 months ago

Google Trends: Trending Now, interest over time, regions, related searches.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_capabilities

Version, settings, session and cache state, saved history and the list of tools. Call this first when unsure.

check_endpoints

Ask each Google Trends endpoint one small question and report which ones answer. Google Trends has no public API; this server uses the endpoints of the Trends website, which can change without notice. Run this when a tool fails unexpectedly: it separates "Google is rate-limiting me" from "this endpoint changed" from "the network is down". Sends about 12 requests and never answers from the cache.

find_location

Find the location code (geo) for a country, region, state or metro area by name. query: part of a name ("tehran", "calif", "bavaria") or a code ("IR"). inside: a code whose sub-locations to list instead ("IR" → its provinces, "US-CA" → its metro areas). Codes look like IR, US, US-CA, US-CA-807. Every other tool takes them as `geo`; blank means worldwide.

ParameterTypeDescription
insidestring
limitinteger
querystring

find_category

Find the id of a Google Trends category ("Autos & Vehicles" = 47) to narrow a term to one meaning. A category limits a search term to searches Google files under that subject — "jaguar" in Autos & Vehicles is the car, in Pets & Animals the cat. Pass the id as `category` to the explore tools. With no keyword at all, a category id shows interest in the whole subject.

ParameterTypeDescription
query *string
limitinteger

find_topic

Find the Google Trends *topics* for a piece of text and the ids that select them. A search term ("tesla") counts only searches containing that exact wording, in one language. A topic ("Tesla — Automotive company", id /m/0dr90d) counts every search about the thing, in any language and spelling, and leaves out other meanings (the band, the inventor). Pass a topic id wherever a keyword is expected.

ParameterTypeDescription
text *string

clear_cache

Delete saved answers so the next call asks Google again. what: "expired" (default — only answers too old to be used even as a fallback), "all", or one kind: trending, timeseries, regions, related, explore. reset_session: also forget the stored session cookie and any back-off, for a clean start after a block. Saved Trending Now history and the watchlist are never touched.

ParameterTypeDescription
reset_sessionboolean
whatstring

trend_details

Everything about one current trend: every query in it, the news behind it, and its hour-by-hour curve. trend: the trend's title, or any words it contains. geo: country or region code; blank = the default location, else US. with_chart: also fetch the last 7 days of hourly interest for the title (two more requests).

ParameterTypeDescription
trend *string
geostring
hoursinteger
newsinteger
with_chartboolean

interest_over_time

Search interest over time for up to 5 terms on one shared scale — the main Google Trends chart. keywords: comma-separated terms or topic ids (find_topic). Operators work inside a term: `a + b` either wording, `a -b` excluding b, `"a b"` exact phrase. Blank with a `category` measures the whole category. timeframe: 1h, 4h, 1d, 7d, 1m, 3m, 12m, 5y, all; any 6m / 2y / 45d; a year 2024; a month 2024-03; or explicit dates "2024-01-01 2024-12-31". Short ranges come back by the minute or hour, up to ~9 months daily, up to 5 years weekly, longer monthl…

ParameterTypeDescription
categoryinteger
geostring
keywordsstring
pointsinteger
propertystring
timeframestring

interest_by_region

Where a term is most popular: countries, regions, cities or metro areas ranked by interest. With one term, each place gets 0-100 relative to the strongest place — interest as a share of that place's own searches, so a small region can outrank a large one. With 2-5 terms, each place shows how its interest splits between them (percentages), i.e. who wins where. geo: blank = worldwide (ranks countries); a country ranks its regions; a region its cities. resolution: auto, country, region, city, or dma (US metro areas). include_low_volume: also lis…

ParameterTypeDescription
keywords *string
categoryinteger
geostring
include_low_volumeboolean
limitinteger
propertystring
resolutionstring
timeframestring

compare_periods

One term in two time ranges on the same scale: this year against last year, this quarter against the one before. period: the range to look at (3m, 12m, 2026, 2026-03, or explicit dates; not hours). against: "year_before" (same dates a year earlier), "previous" (the range just before), or another range. The two curves are aligned by position, so day 10 of one sits beside day 10 of the other.

ParameterTypeDescription
keyword *string
againststring
categoryinteger
geostring
periodstring
pointsinteger
propertystring

compare_locations

One term in up to 5 countries or regions side by side: where it matters more, and whether the curves move together. geos: comma-separated location codes (US, GB, DE) — countries or regions, not worldwide. The values say how large a share of each place's own searches the term takes, so a small country can score above a large one; they are not search counts.

ParameterTypeDescription
geos *string
keyword *string
categoryinteger
pointsinteger
propertystring
timeframestring

keyword_overview

The whole Google Trends page for one term in a single call: curve, direction, top places, related searches. Use it as the first look at a keyword. It makes four requests; a part that Google refuses is reported and the rest is still returned.

ParameterTypeDescription
keyword *string
categoryinteger
geostring
propertystring
timeframestring

compare_many

Rank 6 to 25 terms on one scale — past Google Trends' limit of five per comparison. Google rescales every comparison to its own maximum, so two separate five-term charts cannot be read against each other. This tool runs the terms in groups that all contain one shared *anchor* term and uses it to bring every group onto a single scale. anchor: the shared term. Blank = chosen automatically (a mid-sized term among the first five, which keeps both large and small terms measurable). Returns each term's average, peak and latest value, where the larg…

ParameterTypeDescription
keywords *string
anchorstring
categoryinteger
geostring
propertystring
timeframestring

seasonality

The yearly rhythm of a term: which months it peaks and dips, how reliably, and when to publish for it. Uses five years of data by default ("all" goes back to 2004). Growth or decline is removed first, so a rising term is not mistaken for a seasonal one. Returns a month-by-month index (100 = an average month), the peak and trough, how consistent the pattern is from year to year, year averages, the months ahead on the current rhythm, and a publishing date. lead_weeks: how long before demand starts to climb the content should be live.

ParameterTypeDescription
keyword *string
categoryinteger
geostring
lead_weeksinteger
propertystring
timeframestring

trend_momentum

Is each term growing, fading, flat or exploding — with the numbers behind the verdict. Each term (up to 8) is measured on its own scale, so a small term's shape is not flattened by a large one. Per term: year-over-year change of the last quarter, last quarter against the quarter before, the long-run slope, where it stands against its own peak, and a label: breakout, rising, stable, declining or new.

ParameterTypeDescription
keywords *string
categoryinteger
geostring
propertystring
timeframestring

find_spikes

The moments a term suddenly jumped: when each spike started, when it peaked, how long it lasted and how big it was. A spike is a run of points at least `threshold` times the term's usual level around that date (its median over the surrounding year). Use it to date events, launches, outages and news cycles, or to tell a one-off burst from real growth.

ParameterTypeDescription
keyword *string
categoryinteger
geostring
limitinteger
propertystring
thresholdnumber
timeframestring

content_calendar

A publishing calendar from seasonality: for up to 8 topics, when each peaks and the date its content must be live. Each term's five-year rhythm is measured; the result is sorted by what needs publishing soonest. Terms without a yearly pattern are listed as evergreen. lead_weeks: how long before demand starts to climb the content should be published.

ParameterTypeDescription
keywords *string
categoryinteger
geostring
lead_weeksinteger
propertystring

daily_history

Day-by-day interest over a long range — Google Trends itself only gives daily data for up to ~9 months. The range is fetched as overlapping 8-month windows and the windows are joined on one 0-100 scale using the days they share. Up to about 4 years (8 windows, two requests each). Also returns the weekday pattern: which days of the week the term is searched most. start, end: YYYY-MM-DD; end defaults to today. points: rows to return (the daily series is averaged down to this many); the summary is always given.

ParameterTypeDescription
keyword *string
start *string
categoryinteger
endstring
geostring
pointsinteger
propertystring

keyword_ideas

Keyword ideas from what people actually search next: rising and top related queries for up to 5 seed terms, merged. The same query coming from several seeds is listed once; each idea shows which seeds it came from — an idea related to several seeds sits at the centre of the subject. Rising ideas are sorted breakouts first: these are the searches that did not exist a period ago. Costs two paced requests per seed.

ParameterTypeDescription
seeds *string
categoryinteger
geostring
limitinteger
propertystring
timeframestring

watchlist_add

Put terms on the watchlist so watchlist_report tracks their direction over time. keywords: comma-separated terms or topic ids. geo: the location to track them in (blank = default). note: an optional label, e.g. the client or campaign they belong to.

ParameterTypeDescription
keywords *string
geostring
notestring

watchlist_remove

Take terms off the watchlist. Blank geo removes them from every location; their past readings are kept.

ParameterTypeDescription
keywords *string
geostring

watchlist_report

The watchlist measured now: each term's direction, what changed since the last report, and whether it is trending today. Every run stores a reading per term, so the next report can say "was stable, now rising". Terms are measured over five years, one at a time (two requests each): `limit` terms per call, `offset` to continue. Also checks today's Trending Now list for each term.

ParameterTypeDescription
geostring
limitinteger
offsetinteger

history_sql

Run a read-only SQL SELECT on the local data file, for questions the other history tools do not cover. Tables: trending(geo, title, qkey, started, ended, volume, growth, categories, breakdown, first_seen, last_seen) — one row per saved trend; times are unix seconds UTC; categories and breakdown are JSON lists. snapshots(id, taken_at, geo, hours, trends) — one row per snapshot_trending run. watchlist(keyword, geo, note, added_at) readings(keyword, geo, taken_at, latest, average, yoy, label) — one row per watchlist_report measurement.…

ParameterTypeDescription
query *string
limitinteger