You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# MediaAggregatorMCP
MediaAggregatorMCP is a Python MCP server that aggregates media trends from YouTube, Google Trends, Reddit, and NewsAPI. It exposes tools to fetch unified trends, per-source trends, generate recommendations, and explain rankings.
## Features
- Adapters for YouTube, Google Trends (pytrends), Reddit (praw), and NewsAPI
- Unified aggregation and ranking with typed Pydantic models
- Simple, transparent recommendation scoring with explainability
- FastMCP-based MCP server exposing tools
- Config via environment variables; production-ready logging and error handling
## Requirements
- Python 3.10+
- API keys for sources you want to enable
## Setup
1. Install dependencies:
```bash
pip install -r requirements.txt
```
2. Configure environment:
- Copy `env.example` to `.env` and fill values:
```bash
copy env.example .env # Windows PowerShell
```
Required variables for specific adapters:
- YouTube: `YOUTUBE_API_KEY`
- NewsAPI: `NEWSAPI_KEY`
- Reddit: `REDDIT_CLIENT_ID`, `REDDIT_CLIENT_SECRET`, `REDDIT_USER_AGENT`
## Run
```bash
python server.py
```# media-aggregator-mcp