Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

Google Trends for Agent

Latest version: v0.2.53

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
MCP server Transport: stdio Publisher: meka-im
70 Stars
1 Forks
1 Versions
TypeScript Repo language

Scan summary

Google Trends for Agent was last scanned on 1 Dec 2026 at version 0.2.53. Risk score 20 of 100 (low). No malicious behavior was detected.

  • Releases: First and only release on 1 Dec 2026.
  • Findings: 1 rule fired in version 0.2.53 (2 instances: 2 low). The score describes this version only.
  • MCP server: Runs over stdio.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.53 LATEST 1 Dec 2026 1 rule fired

Rules fired in 0.2.53: 1

Findings

2 Low

Findings for v0.2.53. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Instructs fetching and running remote code

The skill's instructions or bundled files tell the agent to download content from a remote location and run it. This pattern can be used to change behavior after a review, but it also appears in legitimate installers. Check the source.

LOW
Checking access…

🔒 Create a free account to see all 2 findings with descriptions and instance counts

The score describes 0.2.53; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

google-trends-for-agent (gtfa) is a modern open-source (MIT) alternative to the archived pytrends library, built for AI agents, CLI workflows, and MCP clients. Instead of raw 0–100 relative curves or frequent HTTP 429 failures, it returns a stable JSON envelope, calibrated daily search volume estimates (using 59 public Google Ads anchors), charts, and explicit error codes.

[!WARNING] Unofficial. Not affiliated with or endorsed by Google. This project calls undocumented public Google Trends web endpoints that can change or fail without notice, and use may conflict with Google's Terms of Service. Use it for light, interactive analysis, not bulk scraping or an SLA.

Quick start (Node.js 20+)

Run immediately with npx on your own local IP ($0 unlimited — also honors your own HTTPS_PROXY / HTTP_PROXY with zero quota cap):

npx -y -p google-trends-for-agent gtfa snapshot Sora --geo US --json --pretty

Or install globally from npm (google-trends-for-agent):

npm install -g google-trends-for-agent

Add the local MCP server (gtfa-mcp) to Claude Code, Cursor, Codex, or Windsurf:

{
  "mcpServers": {
    "google-trends": {
      "command": "npx",
      "args": ["-y", "-p", "google-trends-for-agent", "gtfa-mcp"]
    }
  }
}
Commands & MCP tools at a glance
  • gtfa snapshot <term> (trends_snapshot) — trend curve, calibrated daily search volume, and related queries in one call.
  • gtfa ask <term> (trends_ask) — quick single-term momentum check with optional anchor validation (--validate).
  • gtfa compare <a,b,...> (trends_compare) — compare up to 5 keywords side by side (--calibrate for daily searches).
  • gtfa now (trends_now) — real-time trending searches across up to 30 countries.

Why google-trends-for-agent?

Capability google-trends-for-agent (MIT) pytrends (Archived Apr 2025) Legacy SEO Tools (Ahrefs / Semrush)
Status & License Actively maintained · 100% Free MIT Archived read-only (last push 2024) Paid subscription ($99–$139+/mo)
Breakout Keywords Real-time capture (e.g. gemini 4 carbon at 18,000/day) Relative 0–100 only Shows 0 for 30+ days
Daily Search Volume Calibrated via 59 open Google Ads anchors No absolute volume Lagging monthly averages
HTTP 429 Recovery $0 unlimited on Local IP or your own HTTPS_PROXY / HTTP_PROXY · or 1-click switch to Public Open-Source Actor ($5/mo Apify free tier ≈ 3,000–7,000 queries) or Self-Hosted Actor (same MIT repo) Frequent TooManyRequestsError (429) Closed database
Surfaces CLI (gtfa), MCP (gtfa-mcp), DeepSeek Harness (dsh) plugin, Apify Actor Python script only Web UI / paid API
Migrating from pytrends
pytrends call google-trends-for-agent (gtfa) equivalent
pytrends.interest_over_time() (single term) gtfa snapshot "cursor" --geo US --json (adds calibrated daily volume + related queries)
pytrends.interest_over_time() (2–5 terms) gtfa compare "cursor,windsurf,codex" --geo US --calibrate --json
pytrends.related_queries() Included automatically in gtfa snapshot (related.top & related.rising)
pytrends.trending_searches(pn='united_states') gtfa now --geo US --json
TooManyRequestsError: 429 Set HTTPS_PROXY ($0 unlimited), or add --egress actor-public with APIFY_TOKEN for residential proxy rotation

See the full walkthrough: Fixing pytrends HTTP 429 & Migrating to google-trends-for-agent.

Choose your client guide & egress route

AI agents: start at the Client Setup Router and open the guide for your exact host before installing or calling tools.

  • DeepSeek Harness (dsh) · GrokBot · Muse · Dots & Web Agents
  • Claude Code & Desktop · OpenAI Codex · Cursor / VS Code / Windsurf / Cline · OpenClaw & CLI
Route Where it runs Execution
Local This machine Default $0 unlimited direct access (also honors custom HTTPS_PROXY / HTTP_PROXY) via CLI, stdio MCP, or native dsh tools
Public Actor Your Apify account One run per query; exits when done, no deployment ($5/mo free tier)
My own Actor Your Apify account Deploy this MIT repo once, then run on demand

Muse, GrokBot and Dots: use Apify on demand by default, with either the public Actor or your own deployment. Use the managed remote MCP gateway where supported, or the client's authenticated Apify connector/API. Local access remains available for development and explicit direct-use setups.

Deploy it yourself

Fork the repository and build it with Link Git repository in Apify Console, or run apify push. Keep Server / Standby disabled. In dsh, select My own Actor, sign in with Apify, and select the built Actor.

For an existing deployment from official main, use Update selected Actor in dsh. After the build finishes, Test connection shows keyword access and the actual Actor/plugin versions separately. Custom or pinned source is updated in Apify Console. See the release and acceptance checklist.

Remote MCP & cloud egress options

For Muse, GrokBot and Dots with remote MCP support, use Apify's hosted gateway and complete OAuth in the client:

{
  "mcpServers": {
    "google-trends": {
      "url": "https://mcp.apify.com?tools=meka.im/google-trends-for-agent"
    }
  }
}

For your own deployment, replace meka.im/google-trends-for-agent in tools= with your account's <username>/<actor-name>. The account must have access to it.

The gateway exposes this project as an Actor tool and supplies Dataset, key-value-store, and abort tools. It starts a one-off run; it does not promise the four direct trends_* names. Local MCP and the native dsh plugin provide the four trends_* tools. For ordinary tool / terms Actor input, read the results using the returned Dataset id.

Apify's full_api_access OAuth scope grants account-wide API access. Clients without MCP OAuth can configure a Bearer header through their credential storage. See the Actor reference and Actor costs.

The CLI is gtfa; gtfa-mcp runs the local MCP server. Both default to local egress (this machine's network) and also support Apify on-demand cloud egress (--egress actor-public or --egress actor-own --actor <id>, or GTFA_EGRESS / GTFA_APIFY_ACTOR with APIFY_TOKEN), giving direct access to the four trends_* tools through Apify's residential proxy:

{
  "mcpServers": {
    "google-trends": {
      "command": "npx",
      "args": ["-y", "-p", "google-trends-for-agent", "gtfa-mcp", "--egress", "actor-public"],
      "env": { "APIFY_TOKEN": "<your-apify-token>" }
    }
  }
}

After a global install (npm install -g google-trends-for-agent), use this config (or an absolute path to gtfa-mcp) directly without invoking npx on every start:

{
  "mcpServers": { "google-trends": { "command": "gtfa-mcp", "args": [] } }
}

For a local Streamable HTTP endpoint (bound to 127.0.0.1):

npx -y -p google-trends-for-agent gtfa-mcp --http --port 4321   # http://127.0.0.1:4321/mcp

Build from a local git checkout:

git clone https://github.com/meka-im/google-trends-for-agent.git
cd google-trends-for-agent
npm ci
npm install -g "$(npm pack | tail -1)"

The source checkout tracks the repository's default main branch. If your review process requires an immutable source revision, pin a published npm version or git commit rather than relying on a moving branch.

The published tarball bundles the audited apify dependency tree so a consumer install does not re-resolve older vulnerable Apify transitives. Root npm overrides do not propagate into consumers, so this bundle is part of the consumer protection. The root also applies an explicit @crawlee/core → minimatch ^11.0.1 security override (lock: 11.0.8); Crawlee declares ^9, so consumer npm ls may show a range warning even though the explicit override is intentional. Audits cover both the root tree and a clean install of the packed artifact. Bundling materially increases package size.

Check both package-download and data-fetch connectivity:

curl -I https://registry.npmjs.org
curl -I https://trends.google.com

If npx … exits non-zero with empty stdout/stderr, the npm package fetch failed before gtfa started; inspect the npm debug log (typically ~/.npm/_logs/). MCP fails to start means npx/npm errors or EOF before the handshake. MCP started but a tool fetch failed means the handshake and tools/list succeed, but the tool returns NETWORK_ERROR, RATE_LIMITED, or another upstream error. Use gtfa doctor --json for the latter.

dsh plugin

  • DeepSeek Harness Desktop (macOS): open Plugins → + Install plugin, enter the npm package name google-trends-for-agent directly (do not paste a full npmjs.com web URL), and install with one click—no manual allowBuilds editing required.
  • dsh CLI (dsh web): requires Node >=24.9 and pnpm >=10 on PATH (install dsh with npm i -g @deepseek-ai/dsh and pnpm with npm i -g pnpm@10; CLI/MCP alone only require Node 20+):
dsh plugin --profile web add google-trends-for-agent

After installing or upgrading the plugin, fully quit and reopen dsh to load its backend. Saving plugin settings applies them immediately.

To test unreleased commits from main instead of the published npm package, install from GitHub:

dsh plugin --profile web add github:meka-im/google-trends-for-agent

The first run usually prints a build-approval key and fails (unless cached in the pnpm store). Append the printed key (ending in the commit hash) as an allowBuilds: map entry to $DSH_HOME/profiles/web/pnpm-workspace.yaml (DSH_HOME defaults to ~/.dsh), keeping all existing keys, then re-run:

allowBuilds:
  "google-trends-for-agent@https://codeload.github.com/meka-im/google-trends-for-agent/tar.gz/<commit>": true

Use : true under allowBuilds: rather than an onlyBuiltDependencies: list; the key changes whenever main advances.

The plugin is enabled by default after install and provides four native tools plus a gtfa skill. Click Plugin settings (or the route pill) inside the Google Trends sidebar panel—or open Plugins → Google Trends → Components → Google Trends / gtfa—to open the standalone settings page. Choose Local (this machine), Public Actor, or My own Actor under Egress, then click Save; login itself needs no Save. When the Host provides its credentials service, both Actor routes offer Sign in with Apify: the page shows Apify's official authorization link and user code, checks pending status every 2 seconds while honoring Apify's polling interval (including slow_down), pauses when closed, resumes when reopened, and restarts an expired attempt. Apify's only current device OAuth scope is full_api_access—full Apify API access, not access limited to this Actor or tool.

The settings page uses three egress cards, with OAuth status and usage directly below. Expand Usage details for billing-cycle and proxy details. Advanced groups Calibration baselines, Manual Token (Actor routes only), and Files and charts. Save and Discard float above the page while scrolling; Test connection checks the current connection, including unsaved Actor or manual-token changes, without saving them. Use the account menu beside the connection check to sign out. The layout follows the Host's light/dark theme and stacks on narrow screens.

Credentials are re-resolved on every operation: a stored OAuth session is used first; only when none is stored does the plugin use the saved config token, then APIFY_TOKEN. A stored session that is expired or damaged and cannot be refreshed requires signing in again; it does not silently fall back or report success. OAuth credentials do not enter browser-visible status or model-visible tool input/output; Host-internal code resolves them through the credentials service. Without that service, OAuth is unavailable, while local egress, the manual token, and APIFY_TOKEN still work. For the dsh device flow, the current access token is long-lived with no refresh token; future standard expiry/refresh responses can be handled by the plugin.

Persistence is delegated to the dsh credentials service/provider-managed store, separate from the profile; backend location, record keys, and schema can vary. The current local file-backed provider uses owner-only 0700 directory and 0600 file permissions when applicable; it is not an OS Keychain or encrypted storage and cannot stop other processes under the same OS user from reading it. The manual token remains an Advanced / fallback option and is still stored in plaintext in cordis.patch.yml (mode 0600), hidden in the UI, never logged, and absent from browser-visible status and model-visible tool input/output. Cancel only stops a pending flow. Sign out removes the stored OAuth session but retains reusable client registration according to the provider backend; it does not revoke the cloud authorization, so use Apify Console for that. See the dsh plugin reference for routes and lifecycle details.

Open Google Trends from the dsh sidebar (or More) for Query and History. Single-term snapshots and comparisons default to 7 days (now 7-d) and support all nine time ranges, from the past hour to all time. Plugin settings opens the existing installed-plugin page. Chat still uses the same four native tools.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • MCP Registry io.github.meka-im/google-trends-for-agent

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229