关于 Ecommerce Trends MCP
Ecommerce Trends MCP 是同一 Trends MCP 服务的电商视角介绍,面向需要观察商品与品类需求变化的用户。其数据来自 Google、Amazon、TikTok 等多个来源,并提供增长信号。
主要功能
- 01商品与品类需求的历史趋势
- 02多时间窗口的增长率计算
- 03Amazon 畅销榜类别排名
- 04Google Shopping 搜索量数据
适用场景
- 01评估某个商品品类的需求是否上升
- 02对比同一商品在不同平台的搜索热度
- 03查看 Amazon 某一类别中排名快速上升的商品
MCP 相关
该项目是托管的 MCP 服务,通过 streamable HTTP 暴露 get_time_series、get_growth 和 get_top_trends 三个工具,供 MCP 客户端调用。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://ecommerce.api.trendsmcp.ai/mcpclaude mcp add --transport http ai-trendsmcp-ecommerce https://ecommerce.api.trendsmcp.ai/mcp{"mcpServers":{"ai-trendsmcp-ecommerce":{"type":"http","url":"https://ecommerce.api.trendsmcp.ai/mcp"}}}在 Cursor 中打开{"servers":{"ai-trendsmcp-ecommerce":{"type":"http","url":"https://ecommerce.api.trendsmcp.ai/mcp"}}}在 VS Code 中打开{"mcpServers":{"ai-trendsmcp-ecommerce":{"type":"http","url":"https://ecommerce.api.trendsmcp.ai/mcp"}}}{"mcpServers":{"ai-trendsmcp-ecommerce":{"serverUrl":"https://ecommerce.api.trendsmcp.ai/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
https://ecommerce.api.trendsmcp.ai/mcp需要授权工具
详细介绍
Trends MCP
为 AI Agent 提供实时趋势数据。覆盖 Google、TikTok、YouTube、Amazon、Reddit 和其他 30 多个来源。一个 MCP 连接,一个 API 密钥。
You: Using TrendsMCP, compare 6-month growth for GLP-1 on Google, TikTok, and Amazon.
Agent: Google Search +84%
TikTok +212%
Amazon +61%
三个工具。对于支持该处理流程的数据,均标准化为 0–100。无需为各平台单独配置密钥,也无需自行抓取数据。
快速安装
与网站首页横幅展示的四个客户端相同。请先获取免费密钥(每月 100 次请求)。Claude 和 ChatGPT 会通过 OAuth 登录。对于 Cursor 和 VS Code:点击按钮;如果深度链接使用了占位符,再填入 /account 中的密钥。
| 客户端 | 点击后 |
|---|---|
| Claude | 连接器名称和 URL 已预先填好(https://www.trendsmcp.ai/mcp)。确认后授权。 |
| Cursor | 批准安装 MCP。如果出现提示,请替换 YOUR_API_KEY。 |
| ChatGPT | 启用开发者模式(个人资料 → 设置 → 安全)。将名称设为 Trends MCP,URL 设为 https://www.trendsmcp.ai/mcp,然后授权。 |
| VS Code | 在账户页面登录,然后使用 VS Code 按钮,以便包含密钥。 |
然后提问:Using TrendsMCP, what's trending on Google right now?
工具 · 数据源 · 信息流 · REST · 在其他客户端中安装
这是什么
托管的 MCP 服务,地址为 https://api.trendsmcp.ai/mcp。POST https://api.trendsmcp.ai/api 使用相同的 Bearer 密钥。本仓库还提供一个 stdio 适配器,供 Glama 和本地宿主使用。
| 工具 | 适用场景 | 是否需要关键词? |
|---|---|---|
get_time_series | 查询某个来源上某个关键词的历史数据 | 是 |
get_growth | 查看 7D–5Y 的百分比变化(一次调用可查询多个时间窗口) | 是 |
get_top_trends | 查询某个平台当前的热门排名 | 否 |
在其他客户端中安装
将 YOUR_API_KEY 替换为你账户中的密钥。
Claude Code
claude mcp add --scope user --transport http trends-mcp https://api.trendsmcp.ai/mcp \
--header "Authorization: Bearer YOUR_API_KEY"
Cursor(手动)
~/.cursor/mcp.json(Windows:%USERPROFILE%\.cursor\mcp.json)
{
"mcpServers": {
"trends-mcp": {
"url": "https://api.trendsmcp.ai/mcp",
"transport": "http",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}
VS Code / Copilot(手动 JSON)
.vscode/mcp.json 或命令面板 → MCP:添加服务。建议使用账户页面中的 VS Code 按钮,密钥会自动为你配置。
{
"servers": {
"trends-mcp": {
"type": "http",
"url": "https://api.trendsmcp.ai/mcp",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}
Windsurf
使用 serverUrl,而不是 Cursor 的 url + transport。文件:~/.codeium/windsurf/mcp_config.json。
{
"mcpServers": {
"trends-mcp": {
"serverUrl": "https://api.trendsmcp.ai/mcp",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}
Cline
远程服务,类型必须准确为 streamableHttp。参见 llms-install.md。
{
"mcpServers": {
"trends-mcp": {
"type": "streamableHttp",
"url": "https://api.trendsmcp.ai/mcp",
"headers": { "Authorization": "Bearer YOUR_API_KEY" },
"disabled": false
}
}
}
Claude Desktop(不支持原生 HTTP)
{
"mcpServers": {
"trends-mcp": {
"command": "npx",
"args": [
"-y", "mcp-remote",
"https://api.trendsmcp.ai/mcp",
"--header", "Authorization:${AUTH_HEADER}"
],
"env": { "AUTH_HEADER": "Bearer YOUR_API_KEY" }
}
}
}
Claude.ai 自定义连接器
设置 → 连接器 → 添加 https://www.trendsmcp.ai/mcp。此路径使用 www.trendsmcp.ai 上的 OAuth。不要在该连接器配置中填写 Bearer 密钥。
Stdio(此仓库 / Glama)
托管 HTTP 仍是产品的默认方式。此进程无需密钥即可列出工具;付费调用需要 TRENDSMCP_API_KEY,并使用相同的配额计费。
pip install -e .
python -m trends_mcp_server
{
"mcpServers": {
"trends-mcp": {
"command": "python",
"args": ["-m", "trends_mcp_server"],
"env": { "TRENDSMCP_API_KEY": "YOUR_API_KEY" }
}
}
}
提示词建议
说“using TrendsMCP”,这样模型会选择这些工具,而不是网页搜索。更多客户端:文档。
工具
始终更新的参数列表:文档。
get_time_series
获取一个 source + keyword 的每周(或每日)历史数据。MCP 和 REST 使用相同的名称(mode: "get_time_series")。REST 也接受 get_trends 作为别名。
| 参数 | 必填 | 说明 |
|---|---|---|
keyword | 是 | 格式取决于来源(见下表) |
source | 是 | 每次调用只能指定一个来源。使用目录中的小写名称 |
data_mode | 否 | 仅限 REST。weekly(默认)或 daily |
在支持的处理流程中,指数范围为 0–100(100 = 返回时间范围内的峰值)。当来源有绝对值序列时,会提供 volume。
get_growth
计算两个时间点之间的百分比变化。一次调用包含多个时间窗口,仍按该来源 + 关键词计为一次请求。
| 参数 | 必填 | 说明 |
|---|---|---|
keyword | 是 | 格式与 get_time_series 相同 |
source | 是 | 一个来源,或以逗号分隔的列表(google search, tiktok, amazon) |
percent_growth | 否 | 默认值为 ["12M"]。可使用下方预设值,或 { "recent", "baseline", "name" } 日期对象 |
预设值:7D 14D 30D 1M 2M 3M 6M 9M 12M 1Y 18M 24M 2Y 36M 3Y 48M 60M 5Y MTD QTD YTD。
get_top_trends
实时排名列表。无需关键词。在 MCP 中,必须提供 type,且其值必须与信息流名称完全一致(包括大小写)。在 REST 中,只有在打算提取所有信息流时才省略 type(按信息流计费)。
| 参数 | MCP 中必填 | 说明 |
|---|---|---|
type | 是 | 参见实时信息流 |
limit | 否 | 默认值为 25,最大值为 200 |
offset | 否 | 分页 |
category | 部分类型必填 | Amazon / Google Trends / Top Websites / Substack / TikTok 话题标签分类榜单 |
sort | 否 | rank(默认)或 rank_change |
window | 否 | 与 sort=rank_change 配合使用:1d 3d 7d 14d 30d |
能正确路由的提示词
Using TrendsMCP, what's trending on Google right now?
Using TrendsMCP, what are the hottest Reddit posts right now?
Using TrendsMCP, compare 6-month growth for creatine gummies on Google, TikTok, and Amazon.
Using TrendsMCP, show Google Search history for protein soda.
Via TrendsMCP, pull npm download history for langchain.
Using TrendsMCP, show Steam concurrent players for Elden Ring.
Via TrendsMCP, Android downloads for com.openai.chatgpt.
Using TrendsMCP, fastest-climbing Amazon best sellers in Toys Games this week.
关键词来源
get_time_series / get_growth 中的 source。与实时信息流中的 type 字符串不同。
source | 信号 | keyword |
|---|---|---|
google search | 搜索量 | 任意短语 |
google images | 图片搜索量 | 任意短语 |
google news | 新闻标签页流量 | 任意短语 |
google shopping | 购物标签页流量 | 任意短语 |
youtube | YouTube 搜索量 | 任意短语 |
tiktok | 话题标签量 | 话题标签或主题(# 可省略) |
reddit | 子版块关注度 | 仅名称,不带 r/ |
amazon | 商品搜索量 | 商品或类别 |
wikipedia | 页面浏览量 | 条目标题或主题 |
news volume | 提及量 | 任意短语 |
news sentiment | 新闻语气 | 任意短语 |
app downloads | Android 下载量 | Play bundle id,例如 com.openai.chatgpt |
app rankings | Android 榜单排名 | Bundle id |
npm | 每周下载量 | 准确的软件包名称(react、@babel/core) |
steam | 每月同时在线玩家数 | 游戏显示名称(Elden Ring) |
source: "Google Trends" 无效。查询历史数据时使用 google search,查询实时榜单时使用 type: "Google Trends"。
实时信息流
get_top_trends 中的 type。请原样复制名称。
type | 榜单 |
|---|---|
Google Trends | Google 当前搜索 |
Google Trends by Category | 需要 category(例如 Games) |
Google News Top News | Google News 新闻 |
TikTok Trending Hashtags | 话题标签 |
TikTok Trending Hashtags by Category | 需要 category |
TikTok Trending Searches | 应用内搜索 |
YouTube Trending | 视频 |
X (Twitter) Trending | X 上的热门话题 |
Reddit Hot Posts | 首页 |
Reddit World News | r/worldnews |
Wikipedia Trending | 浏览量最高的条目 |
Amazon Best Sellers Top Rated | 评分最高的畅销商品 |
Amazon Best Sellers by Category | 需要 category(例如 Toys Games) |
App Store Top Free / App Store Top Paid | iOS 榜单 |
Google Play | Play 榜单 |
Top Websites | 全球流量排名;可选 category |
Spotify Top Podcasts | 播客 |
Steam Most Played | 实时玩家数 |
Substack / Substack by Category | 新闻简报 |
GitHub | 每日热门仓库 |
IMDb MOVIEmeter | 电影热度 |
Open Library Trending Books | 图书 |
类别名称列表:文档。
iOS 榜单、GitHub 仓库、Spotify、IMDb、Open Library、Substack 和 Top Websites 都是信息流,不是 source 值。不存在 source: "web traffic"。
REST API
curl -sS -X POST https://api.trendsmcp.ai/api \
-H "Authorization: Bearer $TRENDSMCP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"mode":"get_top_trends","type":"Google Trends","limit":5}'
import os, requests
r = requests.post(
"https://api.trendsmcp.ai/api",
headers={"Authorization": f"Bearer {os.environ['TRENDSMCP_API_KEY']}"},
json={"mode": "get_growth", "source": "google search", "keyword": "bitcoin", "percent_growth": ["3M", "12M"]},
)
print(r.json())
Python 客户端:pip install trendsmcp。
限额和错误
| 套餐 | 每月请求数 | 价格 |
|---|---|---|
| Free | 100 | $0 |
| Starter | 1,000 | $19 |
| Pro | 5,000 | $49 |
| Business | 25,000 | $199 |
按年计费可优惠 20%。所有套餐使用相同的来源目录。免费套餐的历史数据和“前 N 名”上限请参阅定价。失败的调用不计费。超出配额时会返回 429 / rate_limited(不会产生意外的超额费用)。
每个计费请求:
get_time_series:一个来源 + 一个关键词get_growth:一个来源 + 一个关键词(该调用中的所有时间窗口均包含在内)get_top_trends:每个type计费(分页按文档说明)
| 状态 | 含义 |
|---|---|
| 400 | source / type / 字段无效或缺失 |
| 401 | 密钥缺失或无效 |
| 404 | 找不到该关键词和来源对应的时间序列 |
| 429 | 达到每月上限 |
| 500 | 上游或内部错误 |
不要提交密钥。Claude.ai 连接器使用 OAuth;其他客户端使用 Authorization: Bearer …。
此工具不支持的功能
- 区域 / 地理位置细分、相关查询或相关主题
- 小时级时间序列
- 在一次调用中通过
get_time_series查询多个来源(请使用带逗号分隔source列表的get_growth,或多次调用get_time_series) - 自行编造信息流名称:MCP
type必须与表格中的一致
开发此仓库
pip install -e .
python -m trends_mcp_server
CI:.github/workflows/ci.yml。安全:SECURITY.md。问题:github.com/trendsmcp-ai/Trends-MCP/issues。
链接
- 账户 / 密钥
- 文档
- 定价
- llms.txt
- TrendWatch(在你自己的 GitHub 仓库中接收提醒)
MIT © Trends MCP
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。