HotLens MCP
# HotLens MCP
[](https://www.npmjs.com/package/hotlens-mcp)
[](https://registry.modelcontextprotocol.io/v0/servers?search=hotlens)
[](LICENSE)
[](https://glama.ai/mcp/servers/liuyewang/hotlens-mcp)
**What China is talking about right now — and why it matters.**
An MCP server that turns Chinese trending topics into English context an agent can actually use. Raw headlines like `孙颖莎11比0后笑了` mean nothing to a model without Chinese internet knowledge. HotLens returns the English headline, the background, the reason it matters, and a confidence score.
Website: **https://hotlens.ai**
---
## Try it before installing
[](https://glama.ai/mcp/servers/liuyewang/hotlens-mcp)
The [Glama listing](https://glama.ai/mcp/servers/liuyewang/hotlens-mcp) shows the server's quality score and its five
tools, and lets you test it online through MCP Inspector without installing anything.
---
## The problem
There are already MCP servers that list Chinese hot searches. They all return the same thing: raw Chinese titles.
That is a data feed, not context. An agent that receives `捡14万戒指女生拿到剩余5000酬金` still cannot tell a reader whether this is a crime story, a feel-good story, or a controversy.
HotLens adds the layer that is actually missing: **interpretation**.
---
## Quick start
Add this to your MCP client config:
```json
{
"mcpServers": {
"hotlens": {
"command": "npx",
"args": ["-y", "hotlens-mcp"]
}
}
}
```
Restart the client. Five tools appear.
No account. No API key required to start.
---
## Tools
### `list_hot_topics`
What is trending, right now, on Weibo, Douyin, Baidu, Bilibili, Juejin and Hacker News.
```
list_hot_topics({ platform: "weibo", limit: 10 })
list_hot_topics({ lang: "en", limit: 20 }) // attach English where the brief covers it
```
Returns `rank`, `title`, `url`, `heat`, `platform`, `fetched_at` per item, plus a `warnings` array for any source that failed.
With `lang: "en"`, every item whose headline the morning brief already saw gains `title_en` and `gloss`, matched by exact title — free, and never a model call. An item without them was not in the brief; that means untranslated, not failed. Items from the aggregator-served platforms also carry `summary`, the platform's own description — feed it into `explain_topic` for a much better answer.
### `list_boards`
The catalogue of what else exists: 3,992 boards across 2,304 domains, measured 2026-12-02. Hupu, Douban, Xueqiu, 36Kr, SSPAI, The Paper, local newspapers, government bulletins.
```
list_boards({ category: "finance", limit: 20 })
list_boards({ query: "hupu" })
```
**No credits are spent by listing**, and the catalogue is cached for seven days — but the endpoint still requires `HOTLENS_TOPHUB_KEY`. Without a key this tool returns an error naming the variable, which is the honest answer; the six keyless platforms keep working either way. It returns `hashid` and `domain` for each board. Pass either one to `list_hot_topics` as `board`.
Why this exists: nine platforms answer "what is China talking about", but they cannot answer "what are Chinese *sports fans* talking about" or "what are Chinese *retail investors* arguing about". Those are different boards.
```
list_hot_topics({ board: "bbs.hupu.com", limit: 10 })
```
One paid call per distinct board. Sweeping a hundred boards is an expensive way to learn nothing.
### `explain_topic` — the core tool
Give it one raw title. Get back:
| Field | Meaning |
|---|---|
| `title_en` | Faithful English rendering, names in pinyin |
| `background` | Who and what is involved, immediate context |
| `why_it_matters` | Why a reader outside China should care |
| `entities` | Named people, organizations, places |
| `sentiment` | `positive` / `negative` / `neutral` / `contested` |
| `confidence` | `low` / `medium` / `high` |
| `caveats` | Present when the model is unsure — read it |
`confidence` and `caveats` are deliberate. They tell the agent when **not** to repeat something as fact.
### `cross_platform_view`
Is one event big everywhere, or only on one platform?
```
cross_platform_view({ query: "孙颖莎", limit: 30 })
```
Returns each platform's rank for that topic, plus `platforms_silent`. A `null` rank means "not found in the scanned depth" — **not** proof of censorship. The response says so explicitly.
---
## Enabling explanations (BYOK)
`explain_topic` needs an LLM. Bring your own key; it never leaves your machine except to the provider you configure.
| Variable | Default | Notes |
|---|---|---|
| `HOTLENS_LLM_API_KEY` | — | If unset, `explain_topic` returns a degraded response instead of failing |
| `HOTLENS_LLM_BASE_URL` | `https://api.openai.com/v1` | Any OpenAI-compatible endpoint |
| `HOTLENS_LLM_MODEL` | `gpt-4o-mini` | e.g. `deepseek-chat`, `qwen-plus` |
| `HOTLENS_CACHE_TTL_SECONDS` | `300` | Per-platform cache |
| `HOTLENS_REQUEST_TIMEOUT_MS` | `8000` | Per-source timeout |
| `HOTLENS_TOPHUB_KEY` | — | Enables Zhihu, Toutiao and WeChat via a paid aggregator |
Example with a cheaper provider:
```json
{
"mcpServers": {
"hotlens": {
"command": "npx",
"args": ["-y", "hotlens-mcp"],
"env": {
"HOTLENS_LLM_API_KEY": "sk-...",
"HOTLENS_LLM_BASE_URL": "https://api.deepseek.com/v1",
"HOTLENS_LLM_MODEL": "deepseek-chat"
}
}
}
}
```
Without a key, `list_hot_topics` and `cross_platform_view` still work fully. Only `explain_topic` degrades.
---
## Sources
| Platform | Status | Needs a key |
|---|---|---|
| Weibo Hot Search | working | no |
| Douyin Hot Search | working | no |
| Baidu Hot Search | working | no |
| Bilibili Ranking | working, occasional `-352` | no |
| Juejin | working | no |
| Hacker News | working | no |
| Zhihu Hot List | opt-in | yes |
| Toutiao Hot Board | opt-in | yes |
| WeChat 24h Articles | opt-in | yes |
Weibo and Douyin both return 403 to a client that looks like a bare script. With a browser User-Agent and the matching Referer they answer with full JSON and need no login cookie — as of 2026-12-02 that is enough.
Each source fails independently: one 403 does not take down the others.
### The optional three: Zhihu, Toutiao, WeChat
These three have no public unauthenticated endpoint — Zhihu answers 401 even with a full browser UA and Referer. They are served instead by a commercial Chinese aggregator, which you bring your own key for:
```bash
export HOTLENS_TOPHUB_KEY=your_key
```
- **One call per request**, about ¥0.01 (100 units per ¥1). No data, no charge.
- **Not registered without a key.** A default install lists six platforms, not nine — the extra three never appear as failures you cannot fix.
- **Zhihu is the quality win.** Its entries carry the platform's own summary, so `explain_topic` gets real context instead of guessing from a headline. Pass that `summary` field back into `explain_topic`.
- **The other six stay direct on purpose.** Measured on 2026-12-02: the aggregator's Weibo board was already one refresh behind the platform, with only 9 of the top 20 matching. If an aggregator is stale for a platform you can reach directly, use the direct endpoint.
### `get_history`
What a board looked like on a past date, read from the local archive.
```
get_history({ date: "2026-12-01", platform: "weibo", limit: 30 })
get_history({ date: "2026-12-01", lang: "en", limit: 20 })
get_history({}) // which dates exist?
```
A cron job (`hotlens-archive`, installed daily at 09:10 by `npm run archive:install`) captures every enabled platform once a day into `~/.hotlens/archive/YYYY-MM-DD.json`, about 120 KB per day.
Two limits worth stating plainly:
- **It starts the day you install it.** Live sources serve only the present, so there is nothing to backfill. The aggregator sells history at 15 credits per board per day; this archive costs nothing and only moves forward.
- **It is a fallback too.** If every live source fails, `list_hot_topics` returns the previous day's snapshot with `stale: true` and says which date it came from, rather than returning nothing.
### `lang: "en"` — the daily English brief
The same run that captures the archive also writes an English reading of the five core boards (Weibo, Douyin, Baidu, Zhihu, Bilibili), 20 items each, into `~/.hotlens/briefs/YYYY-MM-DD.json`. Every item gets two fields the platforms never had:
- `title_en` — a natural English headline, not a word-for-word translation
- `gloss` — one sentence saying what the item is and why it trended, built only from what the headline itself states
```
get_history({ date: "2026-12-02", lang: "en", limit: 40 })
get_history({ date: "2026-12-02", platform: "zhihu", lang: "en" })
```
Three constraints keep it honest:
- **The brief is a separate file from the snapshot.** It is a reading of the record, not part of it; keeping them apart means the English can be regenerated without rewriting the evidence.
- **Translation happens at capture time, not on read.** There is no key held by any server, and no bill that runs per request.
- **No brief, no guessing.** Ask for a date the archive ran without a model key and `get_history` says so plainly instead of returning untranslated text dressed up as English.
The same brief is published over HTTP at `https://api.hotlens.ai/brief` — English only, no key, because that is our reading of the day rather than a redistribution of the platforms' content.
---
## Design notes
- **Five tools, each with one job.** A tool is added only when an existing one cannot do the work: `list_boards` enumerates for free what `list_hot_topics` would charge to discover, and `get_history` reads the past, which no live fetch can. Nothing else gets added.
- **Free before paid.** The catalogue is free; reading a board is not. Structure the product so discovery never costs the user money, or they stop exploring.
- **Failures speak English.** You will see `Baidu returned a page we could not parse. The layout may have changed.` — never a stack trace.
- **No key is not an error.** First calls must succeed, even degraded.
- **`heat` stays a string.** `17.7 万热度` and `340` points are not comparable; converting them to numbers invents precision.
---
## Roadmap
- [x] Zhihu, Toutiao and WeChat via optional aggregator key
- [ ] Cross-platform entity linking (same event, different wording)
- [x] Historical snapshot store (local, one file per day, cron-installed)
- [x] Hosted endpoint for agents that cannot run npx (`api.hotlens.ai`, keyless `/brief`)
- [ ] Glama / Smithery / mcp.so listings
---
## 中文说明
一个把「中国热榜」翻成「英文语境」的 MCP server。
现有同类工具只给原始中文标题,海外 Agent 拿到之后无法理解。HotLens 补的是判断层:英文标题、背景、为什么重要、关键实体、可信度。
三个工具:`list_hot_topics`(拉取)、`explain_topic`(解读,核心)、`cross_platform_view`(跨平台对比)。
六个数据源开箱即用:微博、抖音、百度、B 站、掘金、Hacker News。
另外三个(知乎、头条、微信 24 小时)没有公开的匿名接口,走第三方聚合服务,需要自己配
`HOTLENS_TOPHUB_KEY` 才会注册。不配也没有失败提示——它们根本不出现。知乎条目的
`summary` 是平台自己的描述,传给 `explain_topic` 能明显提高准确度。
用自己的 LLM key(BYOK),不配置也能用,只是 `explain_topic` 会降级返回原始数据。
## License
MIT. See [LICENSE](LICENSE).
TDQS
Scored across 5 tools
Each tool has a clear, distinct function: live trending, board metadata, historical archive, single-topic explanation, and cross-platform comparison. The only mild overlap is list_hot_topics vs list_boards, both returning lists, but the descriptions make the boundary clear (topics vs board hashids).
Four of five tools follow a verb_noun pattern (list_hot_topics, list_boards, get_history, explain_topic). cross_platform_view breaks the pattern as a noun-only name, a minor deviation that keeps the set mostly predictable.
Five tools is well-scoped for a focused trending-topics server, and each covers a distinct stage of the workflow (discover, browse communities, explain, compare, look back). Nothing feels redundant or missing from the count.
The surface covers the core lifecycle: find trending topics, drill into niche boards, explain a headline, compare across platforms, and review the archive. Minor gaps remain, such as keyword search for a specific topic or fetching deeper per-topic data, but agents can work around these via the existing tools.