news-ai-mcp-server
0
The News AI MCP Server is a Python-based server integrating with NewsAPI.org to provide summarized news headlines. It offers customizable searches by country and category and facilitates easy integration with MCP clients.
๐ฐ News AI MCP Server
A minimal Python-based MCP server that connects to NewsAPI.org to fetch and summarize the latest top headlines by country, category, and search query. Built with python mcp SDK and initialized using uv
for environment management.
๐ Features
- ๐ Fetch top headlines from NewsAPI.org by country, category, and search query
- ๐ง Summarizes the news headlines with title, description, and attribution
- ๐ง Includes a test resource for server communication
- โ๏ธ Easily integratable into MCP clients
๐ ๏ธ Tech Stack
- Python
- MCP SDK for Python (FastMCP)
- NewsAPI.org
- uv
- dotenv
๐ฆ Setup
- Clone the repo
- Install dependencies
- Create a
.env
file and add your API key - Run the MCP server
๐งช Testing
Tested using a cloud desktop client connected via the MCP protocol.