server-google-news logo

Server Google News

by ChanMeng666

3 forks
18 stars
Free

What is server-google-news

server-google-news is a Model Context Protocol (MCP) server developed by ChanMeng666. It integrates Google News search capabilities through the SerpAPI to provide users with access to the latest news articles. This server is designed to automatically categorize news results and supports multiple languages and regions, making it a versatile tool for accessing global news content. Built using TypeScript and Node.js, server-google-news is an open-source project licensed under the MIT License, ensuring that it is both robust and accessible to developers.

How to Use server-google-news

To use server-google-news, follow these simple steps:

  1. Set Up Environment: Ensure that Node.js is installed on your system. You'll also need a SERP API key, which can be obtained by signing up for an account on the SerpAPI platform.

  2. Install Dependencies: Run the command npm install to install all necessary packages and dependencies.

  3. Configure API Key: Update your configuration file (claude_desktop_config.json) with your SERP API key to enable communication with the Google News API.

  4. Build and Start the Server: Use npm run build to compile the server, and npm start to run it.

  5. Search for News: Once the server is running, you can perform searches using various parameters like search query strings, country codes, and language codes to retrieve and categorize news articles according to your preferences.

Key Features of server-google-news

  • Flexible Search Options: Perform comprehensive searches using query-based, topic-based, and publication filtering options. This allows users to tailor their news search to specific interests or requirements.

  • Global Coverage: The server supports multiple languages and regions, allowing users to access news content from around the world. Language and country codes can be configured to suit your needs.

  • Smart Categorization: Automatically categorizes news results into relevant topics such as AI & Technology, Business, Science & Research, and Healthcare, helping users quickly find news in their areas of interest.

  • Multiple Result Types: Handles various types of news results, including headlines, stories, related topics, and menu links, providing a comprehensive news browsing experience.

  • Robust Error Handling: Equipped with comprehensive error handling for API failures and invalid inputs, the server provides helpful error messages to guide users in troubleshooting any issues.

  • Language Support: Includes automatic fallback to English for unsupported language codes, ensuring that users always receive news results, even if their preferred language is not supported.

server-google-news makes accessing and categorizing global news easy and efficient, with features tailored to provide a seamless user experience. Whether you're interested in specific topics or need information from different regions, this server offers the tools you need to stay informed.

How to Use

To use the server-google-news, follow these steps:

  1. Visit https://github.com/ChanMe...
  2. Follow the setup instructions to create an account (if required)
  3. Connect the MCP server to your Claude Desktop application
  4. Start using server-google-news capabilities within your Claude conversations

Additional Information

Created

December 29, 2024

Start building your own MCP Server

Interested in creating your own MCP Server? Check out the official documentation and resources.

Learn More