Trend Radar
An MCP server that fetches live trends from X, Google News, GitHub, and Hugging Face, and generates a self-contained HTML dashboard displaying top 20 lists for AI news, coding repositories, and models.
README
📡 Trend Radar — an MCP Server for AI, Coding & Model Trends
Trend Radar is a Model Context Protocol (MCP) server written in Python. It gives any MCP client — Claude Desktop, Claude Code, the MCP Inspector, or your own agent — eight tools that fetch Top 20 trend lists from across the AI ecosystem and render them into a polished, self-contained HTML dashboard:

What is this MCP server?
MCP is an open protocol that lets AI assistants call external tools. This server plugs into your assistant and answers questions like "what's trending in AI right now?" with live, structured data instead of stale training knowledge. It covers three categories:
| Category | Tool | Data source |
|---|---|---|
| 📰 News | get_x_ai_trends |
X (Twitter) API v2 — live with a bearer token, curated mock fallback without |
| 📰 News | get_google_news_ai_trends |
Official Google News RSS feed, parsed with feedparser |
| 💻 Coding | get_github_trends |
GitHub Search API — most-starred repos created in the last 7 days |
| 💻 Coding | get_github_most_starred |
GitHub Search API — all-time star leaders |
| 💻 Coding | get_github_most_forked |
GitHub Search API — all-time fork leaders |
| 🤗 Models | get_hf_trending_models |
Hugging Face Hub API (sort=trendingScore) |
| 🤗 Models | get_hf_most_liked_models |
Hugging Face Hub API (sort=likes) |
| 🎨 Web | generate_trends_dashboard |
Aggregates all 7 feeds → one index.html |
Every data tool returns clean JSON:
{
"source": "github_trending",
"count": 20,
"items": [
{
"rank": 1,
"title": "owner/repo",
"url": "https://github.com/owner/repo",
"description": "What the project does",
"metrics": { "stars": "12.4k", "forks": "980", "language": "Python" }
}
]
}
If a feed fails, the tool returns {"source": ..., "error": ..., "items": []} instead of
crashing — and the dashboard shows an inline note for that card while the rest of the page
still renders.
Project structure
mcp_Trend_Radar/
├── server.py # FastMCP server — registers all 8 tools
├── services/
│ ├── models.py # TrendItem dataclass + badge formatting
│ ├── http_client.py # shared requests wrapper + ServiceError
│ ├── x.py # X trends (live API / mock fallback)
│ ├── google_news.py # Google News RSS via feedparser
│ ├── github.py # GitHub Search API (3 views)
│ ├── huggingface.py # HF Hub API (trending / most liked)
│ └── dashboard.py # aggregation + HTML generation + local server
├── docs/images/ # screenshots used in this README
├── requirements.txt
└── .env.example
How to use it — step by step
Step 1 · Install
git clone https://github.com/girlmoony/mcp_Trend_Radar.git
cd mcp_Trend_Radar
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt
copy .env.example .env # optional — every tool works without tokens
Step 2 · Try it standalone (no MCP client needed)
The dashboard module doubles as a CLI. This fetches all seven feeds and serves the result:
python -m services.dashboard # builds output/index.html + serves on :8000
python -m services.dashboard --build # build only
Open http://127.0.0.1:8000 and you'll see the page from the screenshot above: three color-coded categories, numbered Top-20 lists, and engagement badges.
💻 Coding section — three GitHub views side by side, with stars / forks / language badges:

🤗 Models section — Hugging Face trending and most-liked models, with likes / downloads / task badges:

Step 3 · Register with Claude Desktop
Add the server to claude_desktop_config.json
(Windows: %APPDATA%\Claude\claude_desktop_config.json, macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"trend-radar": {
"command": "C:\\path\\to\\python.exe",
"args": ["C:\\path\\to\\mcp_Trend_Radar\\server.py"]
}
}
}
Restart Claude Desktop. The 8 tools appear under the 🔨 tools menu, and you can simply ask:
"What are the trending GitHub repos this week?" "Show me the most liked Hugging Face models." "Generate the trends dashboard and tell me where the file is."
Step 4 · Register with Claude Code (CLI)
claude mcp add trend-radar -- python "C:\path\to\mcp_Trend_Radar\server.py"
Step 5 · Debug with the MCP Inspector
mcp dev server.py
This opens the Inspector web UI where you can list the tools, call each one, and inspect the raw JSON responses interactively.
The dashboard tool
Calling generate_trends_dashboard (from any MCP client, or via the CLI in Step 2) writes a
single self-contained index.html:
- Semantic HTML5 + custom CSS variables — zero JavaScript, zero external assets
- Distinct colored sections per platform: 🔵 News, 🟣 Coding, 🟡 Models
- Numbered lists with linked titles, snippets, and engagement badges (stars, forks, likes, downloads, reposts)
- Automatic dark mode via
prefers-color-schemeand a print-friendly layout - Per-feed error isolation — one failing API never blanks the page
The tool returns a JSON build summary with the absolute output path and per-section item counts.
Configuration (all optional)
| Variable | Effect |
|---|---|
GITHUB_TOKEN |
Raises the GitHub Search rate limit from 10 to 30 requests/min |
X_BEARER_TOKEN |
Switches X trends from curated mock data to the live X API v2 |
HF_TOKEN |
Authenticated Hugging Face Hub requests |
Copy .env.example to .env and fill in what you have — the server loads it automatically.
Requirements
- Python 3.10+
mcp·requests·feedparser·python-dotenv(seerequirements.txt)
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。