mcpField
C
Content Strategy Trends MCP

Content Strategy Trends MCP

远程服务
trendsmcp.ai商业与营销449 周前更新

关于 Content Strategy Trends MCP

Content Strategy Trends MCP 与 Trends MCP 为同一项目,是面向 AI Agent 的趋势数据 MCP 服务,可提供多个数据源的话题热度与增长信号,帮助在话题达到峰值前发现正在升温的内容方向。

主要功能

  1. 01按数据源查询关键词热度历史
  2. 02多时间窗口的百分比增长计算
  3. 03实时热门榜单查询
  4. 04支持远程 HTTP 与本地 stdio 两种接入方式
  5. 05REST API 与 MCP 共用同一 API Key

适用场景

  1. 01在话题达到峰值前发现正在升温的选题
  2. 02比较某一主题在搜索与社交平台上的增长
  3. 03查看 YouTube 或 TikTok 上的热门话题

MCP 相关

该项目是 MCP 服务端,通过 get_time_series、get_growth、get_top_trends 三个工具向 MCP 客户端提供趋势数据。

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址https://content-strategy.api.trendsmcp.ai/mcp
一键复制安装命令
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。

全部服务地址
Streamable HTTPhttps://content-strategy.api.trendsmcp.ai/mcp需要授权

工具

详细介绍

Trends MCP 徽标

Trends MCP

为 AI Agent 提供实时趋势数据。覆盖 Google、TikTok、YouTube、Amazon、Reddit 和其他 30 多个来源。一个 MCP 连接,一个 API 密钥。

PyPI License: MIT CI MCP Free tier Glama

获取免费 API 密钥 · 文档 · 定价 · 数据源 · PyPI · Glama

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 添加到 Cursor 添加到 ChatGPT 添加到 VS Code

客户端点击后
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购物标签页流量任意短语
youtubeYouTube 搜索量任意短语
tiktok话题标签量话题标签或主题(# 可省略)
reddit子版块关注度仅名称,不带 r/
amazon商品搜索量商品或类别
wikipedia页面浏览量条目标题或主题
news volume提及量任意短语
news sentiment新闻语气任意短语
app downloadsAndroid 下载量Play bundle id,例如 com.openai.chatgpt
app rankingsAndroid 榜单排名Bundle id
npm每周下载量准确的软件包名称(react、@babel/core)
steam每月同时在线玩家数游戏显示名称(Elden Ring)

source: "Google Trends" 无效。查询历史数据时使用 google search,查询实时榜单时使用 type: "Google Trends"。


实时信息流

get_top_trends 中的 type。请原样复制名称。

type榜单
Google TrendsGoogle 当前搜索
Google Trends by Category需要 category(例如 Games)
Google News Top NewsGoogle News 新闻
TikTok Trending Hashtags话题标签
TikTok Trending Hashtags by Category需要 category
TikTok Trending Searches应用内搜索
YouTube Trending视频
X (Twitter) TrendingX 上的热门话题
Reddit Hot Posts首页
Reddit World Newsr/worldnews
Wikipedia Trending浏览量最高的条目
Amazon Best Sellers Top Rated评分最高的畅销商品
Amazon Best Sellers by Category需要 category(例如 Toys Games)
App Store Top Free / App Store Top PaidiOS 榜单
Google PlayPlay 榜单
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。


限额和错误

套餐每月请求数价格
Free100$0
Starter1,000$19
Pro5,000$49
Business25,000$199

按年计费可优惠 20%。所有套餐使用相同的来源目录。免费套餐的历史数据和“前 N 名”上限请参阅定价。失败的调用不计费。超出配额时会返回 429 / rate_limited(不会产生意外的超额费用)。

每个计费请求:

  • get_time_series:一个来源 + 一个关键词
  • get_growth:一个来源 + 一个关键词(该调用中的所有时间窗口均包含在内)
  • get_top_trends:每个 type 计费(分页按文档说明)
状态含义
400source / 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。


链接

MIT © Trends MCP

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。