meka-im/google-trends-for-agent
替代 pytrends,为 AI agent/CLI/MCP 返回校准每日搜索量
解决什么问题
没有它,用户只能面对已归档的 pytrends、原始 0–100 相对曲线和频繁的 HTTP 429 失败。
- 校准每日搜索量
- 提供 CLI 与 MCP
- 稳定 JSON 与错误码
适用客户端
- cursor
- vscode
- cline
- windsurf
- cli
安装命令
npx -y -p google-trends-for-agent gtfa snapshot Sora --geo US --json --pretty npx -y -p google-trends-for-agent gtfa-mcp --http --port 4321 # http://127.0.0.1:4321/mcp 一键配置
{
"mcpServers": {
"google-trends": {
"command": "npx",
"args": [
"-y",
"-p",
"google-trends-for-agent",
"gtfa-mcp"
]
}
}
} {
"mcpServers": {
"google-trends": {
"url": "https://mcp.apify.com?tools=meka.im/google-trends-for-agent"
}
}
} {
"mcpServers": {
"google-trends": {
"command": "npx",
"args": [
"-y",
"-p",
"google-trends-for-agent",
"gtfa-mcp",
"--egress",
"actor-public"
],
"env": {
"APIFY_TOKEN": "<your-apify-token>"
}
}
}
} 安全标记
- 需要 API Key: 是
- 本地运行: 是
- 访问网络: 是
- 需要 root: 否
维护状态
| 最近提交 | 2026-12-05(0d) |
|---|---|
| Star | 250 |
| 待处理 issue | 4 |
| 协议 | MIT |
| 已归档 | 否 |
| 数据抓取于 | 2026-12-05 |
原文摘录
以下为仓库 README 原文,未做改写,用于核对上面的摘要。
`google-trends-for-agent` (`gtfa`) is a modern open-source (MIT) alternative to the archived [`pytrends`](https://github.com/GeneralMills/pytrends) library, built for AI agents, CLI workflows, and MCP clients.