logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

news-mcp

Aggregates and searches news articles, formatting them into Markdown digests using real-time news data. Supports fetching top headlines by various filters and performing full-text searches with optional criteria.

Author

news-mcp logo

SomeiLam

No License

Quick Info

GitHub GitHub Stars 0
NPM Weekly Downloads 4630
Tools 1
Last Updated 2026-02-19

Tags

searchesheadlinesnewssearches newsnews datafetching headlines

NewsDigest MCP

A Model Context Protocol (MCP) server written in TypeScript that aggregates, searches, and formats news articles using the NewsAPI.org REST endpoints.

Features

  • Fetch Top Headlines by country (ISO‑2 code), language (ISO‑639‑1 code), and category (e.g., business, sports).
  • Search Everything via full‑text queries (keywords) with optional filters: language, date range, sorting, page size.
  • Format to Markdown: Convert raw JSON responses into a clean, reader‑friendly Markdown digest using an LLM (Gemini and Claude).

Requirements

  • Node.js 18+ (for built‑in fetch support)
  • npm or yarn
  • NewsAPI.org API key (free tier available)
  • LLM API key (Gemini and Claude)

Installation

# Clone the repo
git clone https://github.com/yourusername/newsdigest-mcp.git
cd newsdigest-mcp

# Install dependencies
npm install
# or
# yarn install

Configuration

Create a .env file in the project root:

# .env
NEWSAPI_KEY=<your_newsapi_key>
GEMINI_API_KEY=<your_gemini_key>   # for Google Gemini
ANTHROPIC_API_KEY=<your_claude_key>  # for Anthropic Claude

Usage

Start the MCP server:

claude

Here are some example user queries and response:

Q: News about Bitcoin

A: Latest Bitcoin News (May 1, 2025)

  1. El Salvador Committed to Buy Bitcoin Despite IMF Requirements
  2. El Salvador's economy minister reaffirmed the country's commitment to accumulate more Bitcoin despite IMF requirements to reduce exposure
  3. The minister called it an "important project" started by President Nayib Bukele
  4. North Carolina Passes Bill to Integrate Bitcoin Into $127 Billion Pension Fund
  5. North Carolina House approved legislation allowing state pension fund to invest in cryptocurrencies
  6. The bill modernizes investment strategy for the state's $127 billion pension fund
  7. US Could Buy $100 Billion in Bitcoin This Year, According to Coinbase Executive
  8. Sebastian Bea, president of Coinbase Asset Management, suggests a technical change in how Washington accounts for gold could enable a strategic Bitcoin purchase
  9. The proposed purchase could approach $100 billion, years ahead of market expectations
  10. North Carolina House Passes State Crypto Investment Bill
  11. The Digital Assets Investment Act (House Bill 92) passed on its third reading
  12. Bill allows the state treasurer to invest public funds in approved cryptocurrencies
  13. Now moving to the Senate for consideration
  14. Crypto Industry Event in Dubai as "Trump Euphoria" Shows Signs of Receding
  15. Crypto enthusiasts gathered in Dubai for TOKEN2049 conference
  16. Industry showing mixed sentiments about Donald Trump's impact on cryptocurrencies
  17. Despite strong start to the year with significant venture capital investments
  18. Malaysian Police Dismantle Bitcoin Mining Operation Stealing Electricity
  19. Police in Terengganu, Malaysia dismantled a syndicate stealing electricity for illegal bitcoin mining
  20. Operations were discovered in Hulu Terengganu and Marang regions

See Also

`