- Language
- TypeScript
- Last commit
- 5h ago
- Forks
- 0
- Open issues
- 0
- Registry update
- Oct 14, 2026
Connect
remote$claude mcp add --transport http cn-hotrank https://cn-hotrank.7388603.workers.dev/httpHeaders
Nothing to configure — it works as is.
Security review
Review passedReviewed 1h ago.
- tools
- 2 tools scanned
- metadata
- scanned
No findings.
Tools
2get_hot_rank
获取中文平台实时热榜(今日头条/抖音/微博/百度热搜),返回结构化热点:排名、标题、热度值、标签、链接。数据为各平台公开热榜,10 分钟缓存;仅用于 AI 输入(ai-input),禁止用于模型训练或转售原始数据。
list_platforms
列出 cn-hotrank 支持的热榜平台、数据口径与合规状态(含 robots 全禁而暂缓的平台及解禁路径)
cn-hotrank · 中文社媒实时热榜 MCP Server
超紧急划时代AI赚钱计划 · A 线旗舰产品 1 号 定位:给全球 AI agent 喂中文世界的热点数据(「数据海关」第一个口岸)
是什么
一个 MCP(Model Context Protocol)server,把 4 个中文平台的公开实时热榜聚合成结构化数据,任何支持 MCP 的 AI agent(Claude、Cursor 等)装上一键调用。
| 平台 | 端点 | 数据 | 合规定性 |
|---|---|---|---|
| 今日头条 | toutiao.com/hot-event/hot-board/ | 50 条(标题+热度值) | robots 明确允许 |
| 抖音 | douyin.com/aweme/v1/web/hot/search/list/ | 50 条(词+热度值) | robots 无 * UA 约束 |
| 微博 | weibo.com/ajax/side/hotSearch | 51 条(词+热度+标签) | Content-Signal: ai-input=yes(不训练不转售) |
| 百度热搜 | top.baidu.com/board?tab=realtime | 20+ 条(标题+热度分) | 无 robots 文件 |
| api.zhihu.com/topstory/hot-list | — | robots 全禁,暂缓 | |
| api.bilibili.com/x/web-interface/ranking | — | robots 全禁,暂缓 |
完整验证报告:../../热榜数据源可抓取性验证报告_20261014.md
工具(Tools)
get_hot_rank
获取中文平台实时热榜。
参数:
platform:toutiao|douyin|weibo|baidu|all(默认 all)count: 每平台条数 1-50(默认 20)force: 跳过缓存强制刷新(默认 false,慎用——守频率纪律)
返回:每平台 { platform, label, ok, stale, fetchedAt, items[{rank, title, heat, tag, url}] }
list_platforms
列出支持的平台、数据口径与合规状态(含暂缓平台原因)。
抓取纪律(写死在代码里)
- 单平台 TTL 缓存 ≥10 分钟;平台间顺序抓取、间隔 ≥3 秒(满足微博 Crawl-delay: 1)
- 只用公开数据,不碰登录墙后数据,不批量恶意抓取
- 微博数据用途边界:ai-input(给 agent 供数)✅ / ai-train(训练)❌ / 转售原始数据 ❌
- 降级链:主源失败 → 备用端点(抖音有 iesdouyin 备用)→ 返回缓存旧数据并标
stale=true - stdio 模式下日志一律走 stderr,绝不污染 stdout 协议通道
开发
npm install
npm run build # tsc → dist/
npm start # stdio 模式本地跑
npm run inspect # MCP Inspector 调试
路线图
- v0.1(2026-10-14 已完成):stdio 本地版,4 平台聚合 + 缓存 + 降级,冒烟通过
- v0.2(2026-10-14 已部署):Cloudflare Workers 上线(SSE MCP)——本地全链路验证通过(四平台真实数据从 Workers 出口拉到);公网地址 https://cn-hotrank.7388603.workers.dev
- v0.3:MCP Marketplace 付费版 + x402 按次计费
- v1.0:5-8 平台(知乎/B站走官方渠道解禁后)+ 趋势对比工具 + 自定义域名(墙内可达,B 线国内客户需要)
部署与验证(v0.2)
- 部署:
npm run deploy(wrangler,Cloudflare 账号已授权) - 端点(v0.2.1 起双协议):
GET/SSE https://cn-hotrank.7388603.workers.dev/mcp(SSE 模式,标准 MCP 客户端)POST https://cn-hotrank.7388603.workers.dev/http(Streamable HTTP,单次 POST,Accept: application/json, text/event-stream)——隧道/curl/x402 按次计费友好
- 验证脚本:
scripts/verify_sse.py <base_url>—— SSE 模式 MCP 全协议(initialize→tools/call→tools/list)scripts/verify_remote.py—— GitHub 远端双通道验证(API + ls-remote,带重试)scripts/dns_probe.py—— workers.dev DNS 污染诊断(TCP DNS + DoH + --resolve)
- 验证结论【实,2026-10-14】:
- 本地 dev 全链路通过(SSE + Streamable HTTP 双协议)
- 墙内公网验证通过:trycloudflare 隧道域名下 initialize + tools/call 全通(微博 top1 实时返回)——SSE 长连接会被 Quick Tunnel 缓冲,Streamable HTTP 单 POST 无此问题
- 生产 workers.dev 地址墙内不可达(DNS 污染+SNI 阻断双层,见下),海外 agent 用户无感
- 网络真相【实,2026-10-14 实测】:workers.dev 被 GFW 全面封锁——DNS 全路径(UDP/TCP/DoH)注入 Facebook/Twitter 假 IP,且真实 CF IP(104.x/2606:4700::)下 TLS SNI=workers.dev 被即时 RST(同 IP 下 dash.cloudflare.com 正常);github.com 为间歇性通行;api.github.com/codeload/Cloudflare API 域稳定。国内场景需自定义域名(见 v1.0);墙内临时验证可用
wrangler dev --tunnel
依赖说明(v0.2 踩坑记录)
- [email protected] + @modelcontextprotocol/[email protected] + @modelcontextprotocol/[email protected](后两者是 agents 的 devDeps,需显式安装,否则 wrangler 打包报 "Could not resolve")
- 安装需
--legacy-peer-deps(agents 要 zod4 peer,MCP SDK 用 zod3,运行时兼容) - agents 0.0.x 的 McpAgent 有重复 connect bug,0.28.1 已修;挂载必须用
McpAgent.mount()而非routeAgentRequest
目录
src/
index.ts # MCP server 入口(stdio)
types.ts # HotItem / PlatformResult
cache.ts # TTL 缓存
sources/
index.ts # 聚合调度(缓存+顺序+降级)
toutiao.ts # 头条(JSON 主源)
douyin.ts # 抖音(主源+iesdouyin 备用)
weibo.ts # 微博(JSON 主源)
baidu.ts # 百度热搜(HTML 解析)
suspended.ts # 知乎/B站 stub(合规暂缓,记录解禁路径)
From the server's repository — third-party content, read it before running anything it suggests.
More in Other
starreel
ai.starreel
Turn a script into a finished, downloadable short-drama episode — via MCP or REST.
subtask
io.github.tedin7
Background sub-agents for Claude Code, Codex, Kimi and OpenCode, over MCP, with a spend cap.
RegEvidenceHub CableCert
io.github.ChanghuLiu
Independent owner-side QA for structured-cabling certification closeout evidence.
Echoproof
io.github.est57
Replay real HTTP traffic against base and changed builds; flag behavior changes the intent omits.
OZmoz
io.ozmoz
Ready-to-use backend for AI-built apps, with Alex AI to analyze your data in plain language.
Macula mesh
io.macula
Model Context Protocol server that exposes the Macula mesh to any agent harness
Listing from the official MCP Registry · repository facts from GitHub, 1h ago.