by meka-im
Open-source (MIT) pytrends alternative for AI agents, CLI & MCP — calibrated daily search volume via 59 Google Ads anchors
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/meka-im/google-trends-for-agentGuides for using ai agents skills like google-trends-for-agent.
See how google-trends-for-agent compares with popular alternatives.
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.
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"]
}
}
}
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.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 |
AI agents: start at the Client Setup Router and open the guide for your exact host before installing or calling tools.
| 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.
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.
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 pub
google-trends-for-agent is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by meka-im. Open-source (MIT) pytrends alternative for AI agents, CLI & MCP — calibrated daily search volume via 59 Google Ads anchors. It has 50 GitHub stars.
google-trends-for-agent's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/meka-im/google-trends-for-agent" and add it to your Claude Code skills directory (see the Installation section above).
google-trends-for-agent is primarily written in TypeScript. It is open-source under meka-im on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh google-trends-for-agent against similar tools.
No comments yet. Be the first to share your thoughts!