概要
What is MCP News Server?
MCP News Server is a Model Context Protocol implementation that enables Large Language Models to access real-time news data through NewsAPI integration, providing up-to-date news content for enhanced LLM responses.
How to use MCP News Server?
Clone the repository, install dependencies with npm install, create a .env file with your NewsAPI key and GitHub Personal Access Token, then configure the server in mcp.json under mcpServers.news with the command node dist/index.js and the required environment variable NEWS_API_KEY.
Key features of MCP News Server
- Integrates real-time news data via NewsAPI
- Enhances LLM responses with current news context
- Requires Node.js v16 or higher
- Uses environment variables for API key configuration
- Configured through standard MCP server JSON settings
- Licensed under the MIT License
Use cases of MCP News Server
- Provide LLMs with live news headlines and articles for context-aware answers
- Automate news monitoring and summarization tasks in AI workflows
- Enable news-based decision support in chatbot or assistant applications
FAQ from MCP News Server
What are the prerequisites for MCP News Server?
You need Node.js v16 or higher, a NewsAPI key (obtainable at newsapi.org), and a GitHub Personal Access Token for GitHub integration.
How do I get a NewsAPI key?
Visit https://newsapi.org to register and obtain a free API key.
What is the license for MCP News Server?
The project is licensed under the MIT License.
How do I configure the server?
Edit the mcp.json file to add the news server entry with the command node dist/index.js and set the NEWS_API_KEY environment variable to your API key.
Where can I get support?
For support and questions, open an issue in the GitHub repository or contact the maintainers as indicated in the README.