gtfa-mcp
Integrates with Google Trends to provide search-interest signals for terms, including calibrated searches/day snapshots, comparative relative interest across keywords, related and rising queries, regional interest, and Trending Now data by country.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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.
google-trends-for-agent gives agents and humans a predictable way to ask how search interest is changing: a stable JSON envelope, calibrated searches/day estimates, charts, and explicit error codes instead of invented numbers.
Term gallery
Related MCP server: Google Trends MCP
Install
Requires Node.js 20+.
npm install -g github:meka-im/google-trends-for-agent
gtfa --help
gtfa-mcp # stdio MCP serverThe package installs two commands: gtfa for the CLI and gtfa-mcp for the MCP server.
Quick start
One snapshot, calibrated searches/day:
npx gtfa snapshot Sora --geo US --json --prettyThe MCP server runs over stdio. Point a client at the published package:
{
"mcpServers": {
"google-trends": {
"command": "npx",
"args": ["-y", "--package", "github:meka-im/google-trends-for-agent", "gtfa-mcp"]
}
}
}MCP tools
Tool | What it does |
| Interest, Popular/Rising queries, regions, optional verdict and diff. |
| Calibrated searches/day, anchor/traffic blocks, verdict, |
| Relative 0–100 interest for 2–5 keywords on one shared scale. |
| Trending Now by country, with rank, growth, categories, and links. |
Inputs, time windows, defaults, and envelope fields are in the reference and the MCP field guide.
CLI
Command | What it does |
| One term, with optional |
| Calibrated traffic, related queries, verdict, and SVG charts. |
| Relative interest for 1–5 keywords (also |
| Trending Now by country; |
Full flags and examples: reference.
How the numbers work
snapshotputs the term and anchor on one shared 0–100 scale, then calibrates withtraffic = round(score ÷ anchorLevel × dailySearches). The built-in US anchor isgptsat 550/day (about 16.5k/month, ±50%).Numeric traffic stays
nullunless the anchor has a non-gap point,anchorLevel ≥ 1, and at least 25% of non-gap points are nonzero. Sparse 24-hour windows can fail that gate; 7-day windows are denser.These are anchor-based estimates, not measured Google search volume. When the request is not
now 7-d,traffic7d/chart7dcome from a separate 7-day fetch; fornow 7-dthey reuse the primary snapshot and chart.Failures stay explicit:
ok,status, anderror.codereplace invented numbers, and partial results are reported rather than hidden.
Docs
Development
Tests use local fixtures and mocked transports; they do not call Google.
npm install
npm test # 194 tests
npm run typecheck
npm run build
npm run trends -- --helpNode.js 20+ is required. npm run build writes JavaScript and declarations to dist/. The library entrypoint (src/index.ts) exports the client, snapshot, calibration, chart, Trending Now, and time-zone APIs.
License
MIT. See LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Google Trends for agents: interest over time, by region, rising queries, Trending Now. No API key.
Bulk Google Trends: interest over time, regions, rising queries and plain-English trend summaries.
Google Trends: interest over time, by region and city, related and rising queries, and Trending Now in any country. Compare keywords on one scale. Runs on Apify, $1 per 1,000 keyword reports.
Google Trends data as JSON: interest over time, rising and top queries, regions, Trending Now.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to access Google Trends data for comparing keywords, discovering trending searches, and analyzing regional interest through natural language.2MIT
- AlicenseBqualityDmaintenanceEnables Claude to query Google Trends data such as keyword interest, related queries, and regional popularity, with robust proxy rotation to bypass Google's anti-bot measures.553 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to query Google Trends data, including search interest over time, regional breakdowns, trending searches, and keyword ideas.MIT
- AlicenseAqualityAmaintenanceEnables MCP clients to fetch Google Trends data for any term, including interest over time, interest by region, and related queries and topics, all as structured JSON.1147 npm42 PyPI5MIT