Skip to main content
Glama
trendzeist-mcp

trendzeist-mcp

trendzeist-mcp

Turn Google Trends into your next 10 blog posts — in one call.

A free, local MCP server for content ideation and answer-engine optimization (AEO). It combines Google Trends, Autocomplete, Google News and Wikipedia to find ranked topics, real questions, content gaps and supporting sources. No API key, account or browser. Results stay on your machine apart from requests to those public services.

It helps decide what to write. Measuring your visibility inside ChatGPT, Perplexity or AI Overviews is out of scope.

You:   Give me blog post ideas about home espresso for US readers.
Agent: → discover_topics(["espresso", "espresso machine"], geo="US")
       ← breakout, rising and evergreen candidates with growth, angles and questions
       → mine_questions("espresso machine", geo="US")
       ← long-tail questions for titles, H2s and FAQs
       → compare_keywords(["how to descale espresso machine", "best coffee beans for espresso"])
       ← relative interest, recent direction and a recommended target

Quick start

# any one of these
uvx trendzeist-mcp
pipx run trendzeist-mcp
pip install trendzeist-mcp && trendzeist-mcp
docker run -i --rm ghcr.io/phalkmin/trendzeist-mcp

Claude Desktop — add under mcpServers in claude_desktop_config.json:

"trendzeist": { "command": "uvx", "args": ["trendzeist-mcp"] }

Claude Code: claude mcp add trendzeist -- uvx trendzeist-mcp

For Cursor, VS Code, Codex and other clients, see llms-install.md.

Related MCP server: google-search-trends-mcp

Tools

Tool

Use it for

discover_topics

Ranked breakout, rising and evergreen topics from 1-5 seeds, with angles, questions, scores and optional site-coverage gaps

mine_questions

Long-tail Autocomplete questions for titles, H2s, FAQs and AEO

aeo_opportunities

Question clusters scored with trend, news, Wikipedia, site coverage and citability evidence

what_changed

New, promoted, cooled and dropped queries since a local snapshot

seasonality

Peak months, seasonal strength and a publish-by date

compare_channels

Momentum on web, YouTube, News, Images and Shopping, with a format hint

trend_history

Local observations and breakout history for one keyword; no network requests

recurring_topics

Topics with repeated breakout episodes in the local archive; no network requests

news_coverage

Recent headlines, publishers and coverage recency from Google News

wiki_attention

Exact-title Wikipedia match and pageview trend

interest_over_time

Relative 0-100 interest curves, recent direction and 3/12-month growth

compare_keywords

Relative share and editorial recommendation for 2-5 keywords

related_queries

Top and rising related searches, breakout flags, angles and questions

related_topics

Best-effort Google Knowledge-Graph topics

interest_by_region

Demand by country, region, city or US metro area

suggest_keywords

Google entity suggestions for disambiguation

trending_now

Real-time trending searches and linked headlines

list_categories

Category IDs used to narrow Trends queries

trendzeist_status

Source health, cooldowns, cache and archive status; no network requests

Prompts: blog_ideas_from_trends, content_brief, answer_brief and weekly_review. A ready-made agent skill is in SKILL.md.

Reading results

  • Every result includes schema_version (currently 3) and _meta request/cache counters. Empty results include a reason; clamped inputs include a note.

  • direction describes the whole window. direction_now describes the recent slope; use the latter when deciding whether to publish now. Interest is relative 0-100, not absolute search volume. growth_3m needs today 12-m; growth_12m needs today 5-y.

  • score and score_breakdown are transparent heuristics for ranking within one call, not measurements of traffic or ranking probability.

  • suspect marks spam-like rising queries. off_topic marks likely unrelated ones; inspect filtered_out before discarding a possible adjacent topic.

  • level_shifts and warnings flag sustained steps that may distort growth figures. A flattened warning means a keyword should be queried separately.

  • Pass site_queries to discover_topics or aeo_opportunities to mark coverage as covered, partial or gap. exclude_covered=true removes fully covered items.

  • Language follows geo unless TRENDZEIST_HL is set. Localized question prefixes exist for Portuguese, Spanish, French, German, Italian, Polish and Dutch; other languages use English prefixes and return a language_note.

Local observation archive

Fresh Trends, related-query, trending and question results are recorded in archive.sqlite3 beside the disk cache. Cache hits and stale fallbacks are not recorded. This powers what_changed, trend_history and recurring_topics.

The archive needs repeated use to become useful: run what_changed weekly to build baselines and distinguish breakout episodes. Sparse polling undercounts recurrence. Leaving a bounded related-query list is not proof of falling demand; confirm with interest_over_time before retiring a topic. Set TRENDZEIST_ARCHIVE=0 to opt out.

Configuration

Variable

Default

Purpose

TRENDZEIST_HL

unset

Pin Trends/Autocomplete language (for example en-US); otherwise follow geo

TRENDZEIST_TZ

360

Trends timezone offset in minutes

TRENDZEIST_MIN_INTERVAL

2.0

Minimum seconds between Google HTTP requests

TRENDZEIST_WIKI_MIN_INTERVAL

0.5

Minimum seconds between Wikimedia requests

TRENDZEIST_JITTER

0.5

Random extra spacing, as a fraction of the minimum interval

TRENDZEIST_EXPLORE_TTL

900

Trends and News cache seconds

TRENDZEIST_RSS_TTL

300

Trending RSS cache seconds

TRENDZEIST_STATIC_TTL

86400

Categories, suggestions, Autocomplete and Wikipedia cache seconds

TRENDZEIST_MAX_MEMORY_ENTRIES

256

Bounded in-memory cache size

TRENDZEIST_MAX_SERIES_POINTS

60

Maximum returned interest-curve points

TRENDZEIST_RETRIES

3

Retries for transient upstream errors

TRENDZEIST_BACKOFF

1.5

Exponential retry backoff factor

TRENDZEIST_COOLDOWN

60

Fail-fast seconds after HTTP 429; Retry-After takes precedence, capped at 600; 0 disables

TRENDZEIST_STALE_FALLBACK

1

Serve flagged expired cache data during rate limiting; 0 disables

TRENDZEIST_PROXIES

unset

Comma-separated proxy URLs; Trends rotates them, other sources use the first

TRENDZEIST_CACHE_DIR

OS cache dir

JSON cache location; off disables disk cache and archive

TRENDZEIST_ARCHIVE

1

Set to 0 to disable observation history

TRENDZEIST_ARCHIVE_DAYS

365

Archive retention in days

TRENDZEIST_LOG_LEVEL

WARNING

Python logging level on stderr

Limits and reliability

  • Google rate-limits aggressively. Start composites with 1-2 seeds. After HTTP 429, uncached requests fail fast during cooldown; cached and flagged stale results remain available, and other sources continue to work. Check trendzeist_status for retry timing.

  • mine_questions makes up to 16 Autocomplete requests. aeo_opportunities is the most expensive tool: up to 1 + 11 × number_of_seeds requests, including entity checks and Wikipedia pageviews. compare_channels makes up to five requests.

  • related_topics often returns no data; use related_queries instead. Google News, Autocomplete and Wikipedia results are best-effort and may be incomplete.

  • An exact-title Wikipedia match is confirmed; a related_article is only a suggestion to verify, not proof of a citation opportunity or content gap.

  • seasonality requires at least three full calendar years of non-zero data. Channel interest values use separate 0-100 scales; compare their growth, not means.

  • Google Trends, Autocomplete and Google News use undocumented public endpoints that may change, rate-limit or disappear. This project is not affiliated with Google; you are responsible for complying with applicable terms of service.

Run from source

git clone https://github.com/phalkmin/trendzeist-mcp && cd trendzeist-mcp
uv sync --group dev
uv run pytest -q
uv run trendzeist-mcp

Optional checks: uv run pytest -q -m live exercises Google, and npx @modelcontextprotocol/inspector uv run trendzeist-mcp opens interactive debugging.

To point a client at a clone, use "command": "uv", "args": ["--directory", "/path/to/trendzeist-mcp", "run", "trendzeist-mcp"].

Contributing and license

Issues and PRs are welcome. See AGENTS.md for architecture and commands. A weekly live canary checks upstream compatibility.

MIT — see LICENSE. Built with pytrends-modern and the official MCP Python SDK.

Available Tools

19 tools
aeo_opportunitiesA

AEO opportunity finder. For 1-5 seeds: question-shaped searches (Trends + a capped Autocomplete pass) clustered by seed and title angle, each scored with the seed's recent trend (direction_now over 12 months, growth_3m), Google News coverage (who to quote / pitch), Wikipedia presence, the site's own coverage and the evidence type that makes the answer citable (score_breakdown explains every point). site_queries = queries the site already ranks for (fill from a Search Console MCP or page titles); clusters then carry coverage covered / partial / gap and exclude_covered drops covered ones. Spam-like rising queries are ignored. Up to 1 + 11 requests per seed; partial failures per source in errors. A seed report with 'ambiguous' names several Google entities (e.g. Apple the company vs the fruit): ask the user before writing, then re-run with a more specific phrase (a mid only works for Google Trends, not for News / Wikipedia / Autocomplete). limit: clusters (1-25).

Inputs: seeds (required), geo, limit, timeframe, +2 more. Returns: object

compare_channelsB

Which Google property a topic grows on: web, youtube, news, images, shopping, each with direction / direction_now / growth_3m, plus fastest_channel and a format_hint (video tutorial, buying guide, newsjacking piece ...). 5 requests (web first; the rest are skipped on a 429). Channels are separate 0-100 scales: compare growth, never means.

Inputs: keyword (required), geo, timeframe. Returns: object

compare_keywordsA

Compare 2-5 keywords head-to-head: relative share, leader and trend direction for each. Use to pick the strongest angle among alternatives. Each ranking row has a role (leader / rising challenger / declining / niche / steady) and a content_implication; winner is the term to target (a rising challenger beats a falling or dead leader; null + winner_reason when nothing has data or interest) and seo_interpretation sums it up in one sentence.

Inputs: keywords (required), geo, gprop, category, +1 more. Returns: object

discover_topicsA

One-shot topic discovery for blog ideation. For 1-5 seed keywords, pulls 12-month trend context (direction, direction_now, growth_3m) plus rising/top related queries, de-duplicates and ranks candidates as breakout > rising > evergreen, each tagged with a title angle and an explainable score. questions collects question-shaped searches across seeds; suspect lists spam-like rising queries kept out of the ranking. site_queries = queries the site already ranks for (fill from a Search Console MCP or page titles): each topic then gets coverage covered / partial / gap, and exclude_covered drops the covered ones. Partial failures are reported per seed in errors instead of failing the call. A seed report with 'ambiguous' names several Google entities (e.g. Apple the company vs the fruit): ask the user before writing, or re-run with the right mid. First call of a session: start with 1-2 seeds to avoid a 429.

Inputs: seed_keywords (required), geo, gprop, category, +4 more. Returns: object

interest_by_regionB

Where a keyword is searched most. resolution: COUNTRY (geo='' only), REGION (states/provinces within geo), CITY and DMA (US metro areas; geo='US' or worldwide only). Non-US countries support REGION only.

Inputs: keywords (required), geo, gprop, limit, +3 more. Returns: object

interest_over_timeA

Search-interest time series (0-100) for 1-5 keywords, with per-keyword summary (mean, latest, peak, direction over the whole window, direction_now = recent slope, growth_3m/growth_12m % and a plain-English insight). Use direction_now to decide whether to write about a topic now; direction can be 'rising' or 'new' for a topic that peaked months ago. A sustained step in a series is reported as summary..level_shift and in warnings (shared by several keywords = likely a Google sampling change): growth figures spanning that week overstate the change. Long series are downsampled to ~60 points. gprop: '' (web), 'news', 'youtube' (authority channels answer engines cite), 'images', 'froogle'.

Inputs: keywords (required), geo, gprop, category, +1 more. Returns: object

list_categoriesA

Browse/search Google Trends category ids (e.g. 'coffee' -> Food & Drink > Coffee & Tea). Pass the id as category to other tools to narrow results.

Inputs: limit, search. Returns: object

mine_questionsA

Long-tail questions people type about a seed, from Google Autocomplete ('how to', 'why', 'what is', 'vs' ... expansions; localised prefixes for pt/es/fr/de/it/pl/nl follow geo's language, see prefix_language), de-duplicated and tagged with a title angle. Feeds FAQ sections and answer-engine (AEO) content. Up to ~16 throttled requests per call; results cached 24 h. limit: 1-100.

Inputs: seed (required), geo, limit. Returns: object

news_coverageA

Who is covering a topic in Google News: recent headlines, a publisher frequency table (mention / pitch targets) and a recency histogram with a coverage label. One request, cached 15 min. limit = headlines returned (1-50).

Inputs: topic (required), geo, limit. Returns: object

recurring_topicsA

Topics that broke out again and again (local archive, last days 1-365): each with episodes (separate breakout runs under other seeds; runs that overlap or restart within 7 days, under any seed, count once), first/last breakout, the seeds it appeared under and an action (one durable page, refreshed at each spike). min_episodes 2-10 (default 3); seeds (optional, up to 5) limits the scan. coverage_days + note when the archive is younger than the window. Free: makes no network requests.

Inputs: geo, days, limit, seeds, +1 more. Returns: object

seasonalityA

When demand for a keyword peaks each year (5-year weekly data): monthly_index, peak_months, seasonal_strength, next_peak and publish_by (6 weeks before the peak), with a plain-English insight. One request; seasonal=null with a reason when fewer than 3 full years exist.

Inputs: keyword (required), geo. Returns: object

suggest_keywordsA

Google's entity suggestions for a keyword (title, type, mid). Use to disambiguate ambiguous terms or find the canonical topic id.

Inputs: keyword (required). Returns: object

trend_historyA

Local archive of what the tools have seen about a keyword (as a seed or as a related query under other seeds) in the last days (1-365): first_seen / last_seen, breakout_episodes (separate breakout runs; >= 3 = recurring, durable page) vs breakout_observations (polling count), direction_timeline per timeframe and seen_under_seeds. Free: makes no network requests.

Inputs: keyword (required), geo, days. Returns: object

trendzeist_statusA

Health of every data source (google_trends, google_autocomplete, google_news, wikipedia: live / error / idle with the last error), cache usage, observation archive (rows, dates, last_error) and effective settings. Free: makes no network requests.

Inputs: no named parameters. Returns: object

what_changedA

What changed for 1-5 seeds since the last snapshot at least since_days (1-90) old: new_breakouts and promoted (action: investigate now), new_rising (consider), cooled / dropped queries (review: verify with interest_over_time before retiring, or refresh existing post), rank_moves and a direction_flip on direction_now. Leaving Google's relative list is not proof of falling demand. Refreshes current data first (1 + N requests, cached), then compares complete snapshots from the local observation archive, which fills up as any tool fetches fresh data. No snapshot old enough -> compares with the oldest available (baseline_note gives its real age); first run -> first_seen lists the current breakouts and rising queries ('no history yet') plus the date to rerun.

Inputs: seeds (required), geo, since_days. Returns: object

wiki_attentionA

Does Wikipedia have an exact-title article for a topic, and is attention growing? Exact article (title, encoded URL, wordcount), daily pageviews for days (7-90) with direction / growth / insight, or has_article=false with a related_article suggestion (when search finds a different title); verify gaps before citing. lang = Wikipedia edition ('en', 'pt', 'de'). Own rate lane; cached 24 h.

Inputs: topic (required), days, lang. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 19 tools

    Disambiguation3/5

    Most tools target distinct data sources or questions, and the descriptions actively cross-reference each other (related_queries points to related_topics, suggest_keywords, mine_questions, discover_topics), which shows the authors know the overlap exists. But the boundaries are genuinely blurry in places: discover_topics and aeo_opportunities both do multi-seed ranked ideation with site_queries coverage/scoring and 'ambiguous' seed handling, and what_changed / trend_history / recurring_topics all mine the same local snapshot archive with near-parallel concepts (episodes, first_seen, breakouts). An agent can pick wrong without reading careful paragraphs of prose.

    Naming Consistency4/5

    Uniform snake_case throughout, which is the important thing, and names are readable and mostly self-describing (interest_over_time, interest_by_region, compare_keywords, trending_now). The only inconsistency is stylistic: some names lead with a verb (list_, compare_, discover_, mine_, suggest_) while many are bare noun phrases (seasonality, news_coverage, trend_history, what_changed). Predictable enough that it never impedes selection.

    Tool Count3/5

    19 tools is borderline heavy for one server and lands in the crowded band; several clusters (three archive/history tools, two multi-seed ideation scorers) could plausibly be merged without losing capability. Each tool does carry real behaviour and documentation rather than being a thin wrapper, so it is not bloated by padding — just wide.

    Completeness5/5

    The surface covers the domain end to end: category lookup, time series, regional breakdown, related queries/topics, entity disambiguation, real-time trends, cross-channel and head-to-head comparison, seasonality, news and Wikipedia evidence, plus local archival/history and change detection, and a free status tool. Almost every workflow an SEO/content agent would want (discover, validate, time, compare, monitor) has a tool, with no obvious dead ends.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides Google Search trend data as an MCP tool, with historical series, growth percentages, and live trending searches, no scraping or rate limits.
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides free Google Trends data (interest over time, term comparison, related queries, trending now, regional breakdown) to MCP-compatible AI clients without needing an API key.
      5
      153 npm
      2
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables querying Google Trends data directly from conversational MCP clients, including search interest over time, related queries and topics, regional breakdowns, and trending searches, for market research without leaving the chat.
      11
      10
      MIT