The MCP News Server allows you to retrieve and summarize news articles from various categories. You can access the latest articles by category using the news://{category}/{limit}
resource URI and use the summarize_news
tool to get raw articles and summarize them. The server uses a PostgreSQL database populated by a scheduled news_gatherer.py
script and leverages OpenAI API for internal summarization. Configuration settings like LOOKBACK_HOURS
, SUMMARY_WORD_TARGET
, and MAX_ARTICLES_PER_SUMMARY
can be adjusted via environment variables. Additionally, you can add new notes with a name and content.
Used internally for article summarization functionality, though this capability is not directly exposed via MCP prompts.
Stores and retrieves news articles that are exposed through the news MCP server's API. Articles are categorized by topics like tech, data science, and cybersecurity.
Collects news articles from various RSS feeds using the news_gatherer.py script, which populates the PostgreSQL database with content from different categories.
news-mcp MCP server
mcp news server
Components
Resources
The server exposes news articles stored in a database via a resource URI:
news://{category}/{limit}
: Retrieves a list of the latest articles for a given category.{category}
: Filters articles by category (e.g.,tech
,data_science
,news
). See tool description for full list.{limit}
(optional, default 10): Specifies the maximum number of articles to return.
- Each returned article includes title, link, published date, and source.
Prompts
The server currently does not expose any prompts. (The summarization logic exists internally but is not available via an MCP prompt).
Tools
The server implements one tool:
summarize_news
: Retrieves raw news articles from the database, allowing the client (LLM) to summarize them.- Takes optional
category
(string) andlimit
(integer, default 20) arguments. - Returns a list of article dictionaries, each containing
id
,title
,link
,published
,source
, andcontent
. - Available categories:
tech
,data_science
,llm_tools
,cybersecurity
,linux
,audio_dsp
,startups
,news
,science
,research
,policy
.
- Takes optional
Configuration
The server relies on a PostgreSQL database configured via the DATABASE_URL
environment variable (defaults to postgresql://localhost/mcp_news
).
The news_gatherer.py
script (intended to be run separately/scheduled) populates the database from various RSS feeds.
Summarization logic (internal, not exposed via MCP) uses the OpenAI API, configured via the OPENAI_API_KEY
environment variable.
Other configurations (via environment variables or defaults):
LOOKBACK_HOURS
: How far backnews_gatherer.py
looks for new articles (default: 6).SUMMARY_WORD_TARGET
: Target word count for internal summarization (default: 500).MAX_ARTICLES_PER_SUMMARY
: Maximum articles included in one summary batch (default: 25).KEYWORD_FILTER
: Keywords used by internal summarization logic.
Quickstart
Install
Claude Desktop
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
Development
Building and Publishing
To prepare the package for distribution:
- Sync dependencies and update lockfile:
- Build package distributions:
This will create source and wheel distributions in the dist/
directory.
- Publish to PyPI:
Note: You'll need to set PyPI credentials via environment variables or command flags:
- Token:
--token
orUV_PUBLISH_TOKEN
- Or username/password:
--username
/UV_PUBLISH_USERNAME
and--password
/UV_PUBLISH_PASSWORD
Debugging
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
You can launch the MCP Inspector via npm
with this command:
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
A server providing access to news articles from various categories including tech, data science, cybersecurity, and more, allowing retrieval and summarization of latest content.
Related MCP Servers
- AsecurityAlicenseAqualityThis server enables users to perform Google News searches with automatic categorization and multi-language support via SerpAPI integration.Last updated -150467JavaScriptMIT License
- AsecurityAlicenseAqualityProvides tools to fetch and search news from The Verge's RSS feed, allowing users to get today's news, retrieve random articles from the past week, and search for specific keywords in recent Verge content.Last updated -382TypeScriptMIT License
Juhe News MCP Serverofficial
AsecurityFlicenseAqualityA Model Context Protocol server that enables large language models to access the latest trending news headlines and detailed content across various categories including recommended, domestic, technology, and sports news.Last updated -2Python- -securityFlicense-qualityA modular, scalable news aggregation backend that provides a unified interface to TheNewsAPI for retrieving current and historical news articles with advanced filtering capabilities, designed specifically for consumption by AI agents.Last updated -4