Skip to main content
Glama

Whats Trending on Social Media

readme.mdโ€ข2.42 kB
# ๐Ÿš€ Whats Trending On Social Media This MCP fetches trending data from platforms like **YouTube**, **TikTok**, and **Instagram Reels** using various scraping and API techniques. It's designed to run under FastMCP and exposes tools that can be consumed via a local CLI or server. ![Animation](ezgif-19a49fe4da0940.gif) --- ## ๐Ÿ› ๏ธ Dependencies Make sure the following Python packages are installed: - `beautifulsoup4` - `youtube-comment-downloader` - `yt_dlp` - `requests` - `fastmcp` --- ## ๐Ÿš€ Available Tools ### ๐Ÿ”น `get_comments_yt()` Fetches YouTube comments for a given video ID. --- ### ๐Ÿ”น `get_yt_trending_global()` Fetches globally trending YouTube videos (default region: US). --- ### ๐Ÿ”น `get_yt_trending_by_region()` Fetches region-specific YouTube trending videos. --- ### ๐Ÿ”น `get_yt_video_info()` Returns detailed metadata about a YouTube video. --- ### ๐Ÿ”น `tiktok_trending_global()` Fetches trending TikTok videos via the RapidAPI and summarizes them. --- ### ๐Ÿ”น `get_this_weeks_reels_trends()` Scrapes weekly Instagram Reels trends from Later.com. --- ## ๐Ÿ“ File Structure This module can be executed via CLI or server mode using `FastMCP`: ```bash fastmcp run server.py ``` ## ๐ŸŒ External Resources YouTube Trending Feed: https://www.youtube.com/feed/trending Instagram Reels Trends Source: https://later.com/blog/instagram-reels-trends/ TikTok RapidAPI: https://rapidapi.com/ponds4552/api/tiktok-best-experience ## ๐Ÿ“Œ MCP Config File ```bash { "mcpServers": { "Whats Trending On Social Media": { "command": "uv", "args": [ "run", "--with", "mcp[cli]", "--with", "fastmcp", "--with", "youtube-comment-downloader", "--with", "yt_dlp", "--with", "beautifulsoup4", "--with", "requests", "mcp", "run", "server.py" ], "env":{ "tiktok": "<tiktok token goes here>" } } } } ``` ๐Ÿงช Run Locally To run the server locally: ```bash fastmcp run server.py ``` ## ๐Ÿ“Ž Notes YouTube comment extraction uses unofficial scraping and may break with YouTube changes. TikTok API requires a valid RapidAPI key. Instagram scraping is done by parsing Later.com's blog โ€“ may vary if structure changes. ## ๐Ÿง‘โ€๐Ÿ’ป Author Trends-MCP by [Rugved Patil](https://github.com/rugvedp).

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rugvedp/Trends-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server