server google news

Local 2025-08-31 23:13:39 0

This server enables users to perform Google News searches with automatic categorization and multi-language support via SerpAPI integration.



Star This Project


A Model Context Protocol (MCP) server implementation that provides Google News search capabilities via SerpAPI integration. Automatically categorizes news results and supports multiple languages and regions.

Google News Server MCP server


?Try It Now!?


https://github.com/user-attachments/assets/1cc71c27-f840-4c94-9ab5-460d84ba4779

屏幕截图 2024-12-30 021446

屏幕截图 2024-12-30 021524

屏幕截图 2024-12-30 021914

屏幕截图 2024-12-30 021941

✨ Features

? Flexible Search Options

Comprehensive search capabilities including query-based search, topic search, publication filtering and story coverage.

? Global Coverage

Supports multiple languages and regions through configurable language and country codes.

? Smart Categorization

Automatically categorizes news results into topics like AI & Technology, Business, Science & Research, and Healthcare.

? Multiple Result Types

Handles various news result types including headlines, stories, related topics and menu links.

?️ Robust Error Handling

Comprehensive error handling for API failures and invalid inputs, with helpful error messages.

? Language Support

Automatic fallback to English for unsupported language codes with appropriate user notifications.

? SERP API Setup Guide

Before getting started, you'll need to obtain a SERP API key. Here's how:

  1. Visit SERP API website and create an account

  2. After registration, go to your Dashboard:

  3. Locate the "API Key" section
  4. Copy your API key
  5. New users get 100 free API calls

  6. API Usage Details:

  7. Free tier: 100 searches per month
  8. Paid plans start at $50/month for 5000 searches
  9. Billing based on successful API calls
  10. Multiple payment methods: Credit Card, PayPal, etc.

  11. Usage Limits:

  12. Request Rate: 2 requests/second
  13. IP Restrictions: None
  14. Concurrent Requests: 5
  15. Response Cache Time: 1 hour

?‍? Solution for MCP Servers Connection Issues with NVM/NPM

Click to view my configuration solution ? https://github.com/modelcontextprotocol/servers/issues/76

? Quick Start

  1. Install dependencies:

    npm install

  2. Configure environment: Modify your claude_desktop_config.json with the following content (adjust paths according to your system):

        "google-news": {
          "command": "D:Programnvmnode.exe",
          "args": [
            "D:github_repositorypath_todistindex.js"
          ],
          "env": {
            "SERP_API_KEY": "your-api-key"
          }
        }

  3. Build the server:

    npm run build

  4. Start the server:

    npm start

Troubleshooting

  1. Invalid API Key
  2. Verify API key configuration in claude_desktop_config.json
  3. Confirm API key is active in SERP API dashboard

  4. Request Failures

  5. Check network connectivity
  6. Verify API call quota hasn't been exceeded
  7. Validate request parameter format

? Installation

Installing via Smithery

To install Google News for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @chanmeng666/google-news-server --client claude

smithery badge

Installing via mcp-get

npx @michaellatman/mcp-get@latest install @chanmeng666/google-news-server

If you are using an old version of Windows PowerShell, you may need to run Set-ExecutionPolicy Bypass -Scope Process before this command.

Manual Installation

@chanmeng666/google-news-server

# Using npm
npm i @chanmeng666/google-news-server
# or
npm install @chanmeng666/google-news-server

# Using yarn
yarn add @chanmeng666/google-news-server

# Using pnpm
pnpm add @chanmeng666/google-news-server

? Tech Stack

TypeScript NodeJS MCP

? API Documentation

The server implements the Model Context Protocol and exposes a Google News search tool with the following parameters:

  • q: Search query string
  • gl: Country code (e.g., 'us', 'uk')
  • hl: Language code (e.g., 'en', 'es')
  • topic_token: Token for specific news topics
  • publication_token: Token for specific publishers
  • story_token: Token for full coverage of a story
  • section_token: Token for specific sections

? Development

# Run in development mode with hot reload
npm run dev

# Run linting
npm run lint

# Run tests
npm run test

? License

This project is MIT licensed.

?‍♀ Author

Created and maintained by Chan Meng. GitHub LinkedIn

[
  {
    "description": "Search Google News for articles and news content. Results will be automatically categorized by topic.",
    "inputSchema": {
      "properties": {
        "gl": {
          "default": "us",
          "description": "Country code (e.g., us, uk)",
          "type": "string"
        },
        "hl": {
          "default": "en",
          "description": "Language code (e.g., en)",
          "type": "string"
        },
        "publication_token": {
          "description": "Publication token for specific publishers",
          "type": "string"
        },
        "q": {
          "description": "Search query",
          "type": "string"
        },
        "section_token": {
          "description": "Section token for specific sections",
          "type": "string"
        },
        "story_token": {
          "description": "Story token for full coverage of a story",
          "type": "string"
        },
        "topic_token": {
          "description": "Topic token for specific news topics",
          "type": "string"
        }
      },
      "type": "object"
    },
    "name": "google_news_search"
  }
]