ChanMeng666

Google News MCP Server

Community ChanMeng666
Updated

MCP server for Google News search via SerpAPI

1 tools
Name Description
google_news_search Search Google News for articles and news content. Results will be automatically categorized by topic.

Google News MCP Server

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.

๐Ÿ‘‰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:

    • Locate the "API Key" section
    • Copy your API key
    • New users get 100 free API calls
  3. API Usage Details:

    • Free tier: 100 searches per month
    • Paid plans start at $50/month for 5000 searches
    • Billing based on successful API calls
    • Multiple payment methods: Credit Card, PayPal, etc.
  4. Usage Limits:

    • Request Rate: 2 requests/second
    • IP Restrictions: None
    • Concurrent Requests: 5
    • 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
  1. Configure environment:Modify your claude_desktop_config.json with the following content (adjust paths according to your system):
    "google-news": {
      "command": "D:\\Program\\nvm\\node.exe",
      "args": [
        "D:\\github_repository\\path_to\\dist\\index.js"
      ],
      "env": {
        "SERP_API_KEY": "your-api-key"
      }
    }
  1. Build the server:
npm run build
  1. Start the server:
npm start

Troubleshooting

  1. Invalid API Key
  • Verify API key configuration in claude_desktop_config.json
  • Confirm API key is active in SERP API dashboard
  1. Request Failures
  • Check network connectivity
  • Verify API call quota hasn't been exceeded
  • 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

TypeScriptNodeJSMCP

๐Ÿ“– 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.GitHubLinkedIn

MCP Server ยท Populars

MCP Server ยท New

    docmancer

    Docmancer

    Find out what your coding agents already know. Docmancer indexes the memory, rules, and instructions Claude Code, Codex, Cursor, and Gemini wrote on your machine, then carries the durable parts to every agent. Local-first, MIT.

    Community docmancer
    lineai-intelligence

    codelogic-mcp-server

    An MCP Server to utilize Codelogic's rich software dependency data in your AI programming assistant.

    HUANGCHIHHUNGLeo

    claude-real-video

    Let Claude (or any LLM) actually watch a video โ€” scene-aware, deduplicated frames + transcript, from a URL or local file. Runs locally, MIT.

    Community HUANGCHIHHUNGLeo
    jgraph

    Draw.io MCP Server

    MCP Server

    Community jgraph
    ninetails-io

    gnucash-mcp

    MCP server enabling AI assistants to read and write GnuCash accounting data

    Community ninetails-io