Vibeleaderboard
Index / tool
Category
Developer Tools
Rank
No. 1299Tools index
Pricing
Open Source
Type
TOOL
Use case
Data, Retrieval & Knowledge
Interfaces
CLI · MCP
GitHub
128 stars
Latest release
v0.2.56
Date

About

An open-source (MIT) replacement for the archived pytrends library, offered as a CLI and an MCP server for AI agents. Instead of raw 0 to 100 relative curves, it returns a stable JSON envelope with daily search volume estimates calibrated against 59 public Google Ads anchors, plus charts and explicit error codes. It uses undocumented Google Trends endpoints, so it suits light interactive analysis, not bulk scraping.

What it does

A Node.js command-line tool and agent tool server that pulls Google Trends data and turns its 0 to 100 interest scale into estimated searches per day. It queries your term next to a reference keyword whose real daily volume is known, then scales by the ratio between them. Four tools cover a single-term check, a fuller snapshot with charts, side-by-side comparison of up to five terms, and the live trending list for up to 30 countries. Results are saved locally, so a repeat query within six hours reuses them and a later run can report what changed.

Why it's ranked here

The calibration is the reason to look. Raw Trends numbers only rank terms against each other; this tool converts them into searches per day with a documented formula, and it refuses to guess when the reference signal is too weak, returning empty volume fields instead of a made-up number. Add an MIT license, a fixed response shape with explicit status and error codes, distinct exit codes for scripts, and install routes through npx, a registry manifest and a hosted Apify option. The ceiling is the data source: it calls undocumented Google endpoints, so it can break without notice.

What's good

Failure is spelled out. A rate limit or block stops a batch at the first hit instead of retrying into Google, and the error carries a retry hint when one exists. Thin data gets real handling: isolated zeros inside an otherwise active curve are flagged as gaps and left out of averages and peaks, and the still-filling tail of a recent window is trimmed before the latest value is reported. Every volume figure is labelled an estimate, not measured volume. CSV exports neutralize cell text a spreadsheet would run as a formula, and the optional local HTTP server binds only to the loopback address.

Tradeoffs

It depends on undocumented Google Trends endpoints, and the project itself warns that use may conflict with Google's terms. Calibrated volume only applies to web search in the default all-categories view; other filters return relative interest with empty volume fields. The reference anchors are the author's own published baseline set and sync automatically on first server start, so every estimate rests on one maintainer's dataset. The cloud fallback through Apify uses an OAuth scope that grants access to your whole Apify account. The detailed field guide to agent responses is written in Chinese.

How to use it well

Use it when an agent needs a quick read on whether a term is rising and roughly how many people search for it, such as sizing a product name or checking a topic before writing about it. Start with the snapshot tool on the default seven-day US window, and run the doctor command first if requests fail. Treat volumes as order-of-magnitude estimates and read the returned confidence label. It is not for bulk keyword research or anything that needs an uptime promise; a paid keyword data source fits that. Try your own proxy before the Apify route.

Technical notes+

package.json ships an ESM package with two bins (gtfa, gtfa-mcp), engines node >=20, runtime deps on @modelcontextprotocol/sdk, apify (bundled), undici, tough-cookie and zod, and an optional @deepseek-ai/schemastery peer for the dsh plugin that src/index.ts re-exports alongside the library surface. server.json registers an npm stdio package with one optional secret, APIFY_TOKEN. docs/mcp-api.md gives the shared calibration: anchorLevel is the mean of non-gap anchor scores, traffic = round(score × anchorDailySearches / anchorLevel), gated on at least one non-gap anchor point, anchorLevel at or above 1 and at least 25% non-zero anchor points, else every numeric traffic field is null with the shape kept. It also states baselines auto-sync once on first MCP start and only cover Web, category 0. src/cli.ts maps BLOCKED or RATE_LIMITED to exit 3, INVALID_INPUT or INVALID_COMBINATION to 4, partial to 2, other upstream failure to 1. docs/reference.md documents the 360-minute snapshot cache, the 1 to 5 keyword limit on compare, formula neutralization in CSV output, and that the Apify gateway OAuth scope is the account-wide full_api_access.

Observed

License
MIT
Language
TypeScript, ESM, requires Node.js 20 or later
Packaging
npm package exposing gtfa (CLI) and gtfa-mcp (MCP server) commands
Interfaces
CLI, stdio MCP server, local Streamable HTTP MCP endpoint, importable library, Apify Actor
MCP tools
Four: trends_ask, trends_snapshot, trends_compare, trends_now
MCP registry manifest
server.json declares an npm stdio package with optional APIFY_TOKEN
Data source
Undocumented Google Trends web endpoints; README marks the project unofficial
Calibration scope
Volume estimates cover web search, category 0 only
Test runner
Vitest declared as the test script in package.json

Read from README.md, package.json, server.json, src/index.ts, docs/mcp-api.md, docs/reference.md, src/cli.ts.

Similar tools

Browse all tools →

Tags

google-trendsmcpclisearch-volumepytrendstypescript

Tech Stack

Node.jsTypeScript

Media

google-trends-for-agent

Editorially curated, with community endorsements as a secondary signal. Corrections welcome.