mcp-newsapi
0
The MCP News API Server is a Model Context Protocol server that allows users to search and retrieve news articles using the News API. It integrates with MCP to provide tools for querying news data programmatically, offering features such as search filtering and headline retrieval.
MCP News API Server
A Model Context Protocol (MCP) server providing endpoints via the News API for news articles retrieval and search. It offers programmatic access to news data with functionality to search articles and get top headlines. Users require a News API key and Node.js to set up.
Prerequisites
- Node.js 18+
- npm
- News API key from https://newsapi.org
- MCP-compatible client (optional)
Available Tools
- search_articles: Retrieve articles based on keywords, sources, domains, dates, language, and more.
- get_top_headlines: Fetch top news headlines filtered by category, language, or country.
Error Handling
Provides error messages based on News API responses.
Extending
New endpoints can be added by defining input schemas and handler functions in TypeScript.