# NewHUB

Real-time news aggregation, search, NLP sentiment analysis, and personalized preferences. Fetch, summarize, and compare news from any topic using AI.

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add NewsHUb-MCP/NewHUB

# Browse available tools
npx -y @smithery/cli@latest tool list NewsHUb-MCP/NewHUB

# Get full schema for a tool
npx -y @smithery/cli@latest tool get NewsHUb-MCP/NewHUB get_news_digest

# Call a tool
npx -y @smithery/cli@latest tool call NewsHUb-MCP/NewHUB get_news_digest '{}'
```

## Direct MCP Connection

Endpoint: `https://newhub--newshub-mcp.run.tools`

**Required config:**
- `rapidApiKey` (query) — Get a free key at rapidapi.com → search 'Real-Time News Data'
- `country` (query) — Country code examples: US, GB, IN, AU, CA, DE, FR
- `language` (query) — Language code examples: en, fr, de, es, hi, ar

**Optional config:**
- `preferredTopics` (query) — Comma-separated list of topics you care about like 
technology, science, sports, business, health

## Tools (8)

- `get_news_digest` — PRIMARY tool for any news request. Fetches articles AND returns a human-readable digest/summary in one call. Use this f…
- `get_latest_news` — Fetch raw news article metadata (titles, URLs, sources) without summarization. Use this ONLY when the user explicitly w…
- `search_news` — Search and return raw article metadata for a specific query. Use this ONLY when the user wants to browse or filter arti…
- `compare_news_sources` — Compare how different news sources report on the same topic. Returns a side-by-side summary from each outlet. Use for: …
- `analyze_sentiment` — Analyze the sentiment (positive, negative, or neutral) of a news article or any text. Returns a label and numeric score…
- `extract_entities` — Extract named entities (people, organizations, topics) from text. Use after get_latest_news or search_news to identify …
- `get_my_preferences` — Get your saved news preferences (topics, country, language). These are applied automatically when fetching news without…
- `set_my_preferences` — Update your news preferences. Only the fields you provide will change — others stay as-is. Preferences are applied auto…

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get NewsHUb-MCP/NewHUB <tool-name>
```
