Google Trends Mcp

io.github.purahmanian由 GitHub 帳號 purahmanian 發布v0.1.1更新於 Oct 24, 2026

Google Trends MCP server: interest over time, comparisons, related queries, trending searches

概覽

AI 產生的概覽

讓助理取得 Google Trends 資料:隨時間變化的關注度、關鍵字比較、相關查詢、熱門搜尋與地區關注度。

可以做什麼
這個本機 MCP 伺服器提供五個以 Google Trends 為基礎的工具:interest_over_time 回傳最多五個關鍵字的每週 0-100 關注度分數;compare_terms 對二到五個關鍵字做正規化比較並指出勝出者;related_queries 列出相關查詢中的熱門與上升項目;trending_now 回傳某國當天的熱門搜尋;interest_by_region 依國家或次級地區拆分關注度。它透過 stdio 執行,不需要 API 金鑰。
適用情境
當你想在 AI 用戶端中取得搜尋需求訊號時使用:查看季節性、比較關鍵字或品牌關注度、找出上升的相關查詢,或了解某國的熱門搜尋。適合行銷、產品研究與內容規劃,而非精確的市場衡量。
執行需求
需要本機 Node.js 執行環境與 npx,因為它以 npm 套件 google-trends-mcp 透過 stdio 安裝並執行。未宣告需要 API 金鑰、帳號或環境變數。需要能連線至 Google Trends 端點的外送網路。
安裝前請注意
它呼叫 Google Trends 未公開的內部端點,Google 可能隨時變更、限流或移除;可能出現 HTTP 429 或被封鎖,實務上約每分鐘幾次請求。你查詢的搜尋詞與地區代碼會傳送給 Google。此專案為非官方,與 Google 無關聯。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Google Trends Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

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):

json
{  "mcpServers": {    "google-trends": {      "command": "npx",      "args": ["-y", "google-trends-mcp"]    }  }}

Claude Code

bash
claude mcp add google-trends -- npx -y google-trends-mcp

OpenAI Codex CLI

Add to ~/.codex/config.toml:

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

bash
# Clone and installgit clone https://github.com/purahmanian/google-trends-mcp.gitcd google-trends-mcpnpm 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.

來源:README.md,提交 a505da1

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分