Trend Radar

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.

Category
Visit Server

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:

Trend Radar dashboard overview

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:

Coding section: GitHub trending, most starred, most forked

๐Ÿค— Models section โ€” Hugging Face trending and most-liked models, with likes / downloads / task badges:

Models section: Hugging Face trending and most liked

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-scheme and 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 (see requirements.txt)

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured