
TrendsAGI
io.github.TrendsAGI由 GitHub 账号 TrendsAGI 发布v1.2.0更新于 Nov 7, 2026
Trend data, insights and recommendations for AI agents. Read-only, with an Agent Skill.
概览
托管的只读 MCP 服务器,让助手获取实时社交趋势数据、AI 洞察、建议,并对 TrendsAGI 数据集执行只读 SQL。
- 可以做什么
- 按类别或关键词列出和搜索热门话题,可按速度、增长或体量排序,并获取有效类别名称。
- 获取单个趋势及其体量时间序列,以及包含摘要、关键主题、情绪、受众和营销角度的 AI 洞察。
- 列出带决策简报的有据可依建议、受监控话题的危机事件以及关注列表条目。
- 读取数据模式,并执行一条经过校验的只读 SQL SELECT,用于筛选、连接和聚合。
- 判断 TrendsAGI 能否完成某项任务以及由哪个工具或应用页面处理,并查看每日剩余 API 配额。
- 适用场景
- 适合助手需要当前社交趋势信号、实测体量与速度,或有据可依的营销角度而非普通网页搜索的场景。适用于付费媒体、增长和内容策划类问题,例如某类别中什么正在加速、应该面向谁。
- 运行要求
- 通过 streamable HTTP 连接 api.trendsagi.com 远程端点,需 OAuth 登录并批准连接;不支持 OAuth 的客户端可用 Authorization Bearer 头传 API 密钥。需要 TrendsAGI 账号和 API 密钥,每次调用计为一次 API 请求,占用套餐每日额度。
安装
在 SourceWeft 中
- 打开 控制台中的 TrendsAGI,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.TrendsAGI%2Ftrendsagi/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。
{
"mcpServers": {
"trendsagi": {
"type": "http",
"url": "https://api.trendsagi.com/mcp"
}
}
}README
TrendsAGI
[PyPI Version] [npm Version] [Python Versions] [License: MIT]
Real-time trend intelligence for your code and your AI agents: what is trending on social platforms right now, with measured volume, velocity and growth, AI insights on why each topic is moving, evidence-backed recommendations, crisis alerts and watchlists. Paid media and growth teams use it to target what is rising, time spend to the trend curve and brief creative on measured demand.
Install
Create an API key under Profile > API Keys at app.trendsagi.com and export it:
Quickstart
Command line
Every command has --help. In a terminal, lists print as tables; piped or with --json they print JSON, so trendsagi trends list | jq works. The key comes from --api-key, then TRENDSAGI_API_KEY, then the saved login. Commands that delete something or change live ads ask first; pass --yes in scripts. Exit codes: 0 success, 1 API error, 2 invalid usage, 4 missing or rejected key.
The commands are declared once in src/trendsagi/cli_spec.json; a dependency-free Node.js build of the same CLI lives in npm/ and is published as trendsagi on npm. Guide: trendsagi.com/api-docs/integrations/cli.
The client calls any endpoint too: client.request("GET", "/api/integrations/delivery/health", params={"lookback_hours": 24}).
Use TrendsAGI in your AI assistant (no install)
Add the hosted MCP server, sign in to TrendsAGI and approve the connection:
Then ask "What is accelerating fastest in Technology this week, and who should I target with it?" The hosted tools are read-only, and each call counts as one API request. Each connection gets its own key, listed as "AI connector: " under Profile > API Keys; delete it to disconnect. Clients without OAuth can send an API key as Authorization: Bearer <key>. Guide: trendsagi.com/mcp.
The hosted server also publishes the TrendsAGI paid-media skill over MCP (SEP-2640) at skill://trendsagi/SKILL.md. Clients that support the io.modelcontextprotocol/skills extension discover it with skills/list and load it with resources/read; the manifest carries a SHA-256 digest and byte size for every file. Clients without the extension still receive the server instructions and tool descriptions, and the plugin distributions keep a bundled copy of the skill.
Build an agent with Cursor Agent SDK
Agent SDK defines agents as a folder of Markdown and TypeScript. Add TrendsAGI with one file and the agent gets the hosted MCP server's read-only tools by name:
agent-sdk/ is a complete project to copy: instructions, a trend-brief skill, hosting settings (egress to api.trendsagi.com, a TRENDSAGI_API_KEY secret) and smoke evals. Guide: trendsagi.com/api-docs/integrations/agent-sdk.
Use TrendsAGI from your browser's agent (WebMCP)
WebMCP lets a web page hand tools to the AI agent built into the browser (Chrome and Edge in origin trials, ChatGPT desktop, Brave Leo). While you are signed in to app.trendsagi.com, the app registers TrendsAGI's read-only tools with document.modelContext, so the agent uses them with your session: no connector or API key, and calls count as app use rather than API usage. trendsagi.com offers public tools (docs search, trend reports, plans and the free calculators) to every visitor.
To put TrendsAGI tools on your own site, register them in your page and run them on your server, which keeps the API key:
webmcp/ has the browser module and a FastAPI server. Guide: trendsagi.com/webmcp.
Agent tools
One registry, every format. The tools are read-only by default; add_to_watchlist and update_recommendation appear only with allow_writes=True (or trendsagi mcp --allow-writes).
OpenAI
Claude, LangChain and others
With Claude, pass tools=tools.anthropic() and answer each tool_use block with {"type": "tool_result", "tool_use_id": block.id, "content": json.dumps(tools.call(block.name, block.input))}. tools.call never raises: errors come back as {"error": ...} so the model can read a rate limit or a bad argument and recover.
Local MCP server
Or in any MCP client's JSON config (Claude Desktop, Cursor, VS Code):
The local server publishes the same skill as the hosted endpoint, at
skill://trendsagi/SKILL.md, and declares the io.modelcontextprotocol/skills
extension. It is read from the installed package, so it stays in step with the
version of trendsagi you installed. Supporting references cover the tool
surface, paid-media workflow, read-only SQL and error handling.
Query with SQL
For answers no single endpoint returns, such as growth by category or the trends that match a watchlist:
Tables: trends, trend_snapshots (90 days of readings), trend_categories, trend_insights, watchlist, recommendations and crisis_events; the last three only contain your own account's rows. Queries are one validated SELECT, run read-only for at most 5 seconds, and count as one API request. A refused query raises exceptions.QueryError with a code (such as unknown_table or timeout), plus hint and position when known.
Recommendations with decision briefs
Each brief explains why an action is timely, the measured signals behind it and concrete next steps. Its confidence score measures evidence completeness, not the chance of success; use actionable and data_quality to hold back when signals are stale or incomplete.
Ad execution in your own infrastructure
GoogleAdsExecutor, MetaAdsExecutor, TikTokAdsExecutor and LinkedInAdsExecutor take credentials at runtime, use deterministic idempotency keys, and support dry-run previews and strict validation:
See INTEGRATIONS_BYOC.md for every executor.
Errors
Other commands
Plans and limits
The free Developer plan includes one API key and 100 API calls a day; Advantage, Scale and Enterprise raise the daily limit and add keys and team features. Calls above the daily allowance are billed as overage. See pricing.
Links
- API documentation and endpoint reference
- CLI guide
- MCP server guide and WebMCP guide
- Changelog
- Support: trendsagi.com/contact or [email protected]
License
MIT. See LICENSE.
来源:README.md,提交 278bc72
工具
0版本历史
3- v1.2.0最新Nov 7, 2026
- v1.1.1Nov 3, 2026
- v1.1.0Oct 13, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分