Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

server-google-news

MCP.Pizza Chef: ChanMeng666

The server-google-news MCP server is a TypeScript and Node.js-based implementation that integrates Google News search capabilities via SerpAPI. It provides real-time access to news articles with automatic categorization and supports multiple languages, enabling models to retrieve and understand current news context efficiently. This server is designed to enhance AI workflows by feeding structured, categorized news data into LLMs, facilitating informed decision-making and up-to-date content generation. Licensed under MIT, it is a robust tool for developers building AI agents requiring dynamic news context.

Use This MCP server To

Fetch real-time news articles by keyword or topic Automatically categorize news into predefined categories Support multi-language news search and retrieval Integrate news context into AI-driven workflows Enhance LLM responses with current news data Monitor news trends for sentiment or topic analysis Provide news summaries for quick insights Enable news-based alerting or notification systems

README

MseeP.ai Security Assessment Badge


Google News MCP Server


PulseMCP Badge

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!πŸ‘ˆ


2024-12-30.02-17-26.mp4

屏幕ζˆͺε›Ύ 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 πŸ‘‰ modelcontextprotocol/servers#76

πŸš€ Quick Start

  1. Install dependencies:
npm install
  1. Build the server:
npm run build
  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. 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

Running evals

The evals package loads an mcp client that then runs the index.ts file, so there is no need to rebuild between tests. You can load environment variables by prefixing the npx command. Full documentation can be found here.

OPENAI_API_KEY=your-key  npx mcp-eval src/evals/evals.ts src/index.ts

πŸ“¦ 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

server-google-news FAQ

How does server-google-news retrieve news data?
It uses SerpAPI to access Google News search results, providing structured news data.
Does server-google-news support multiple languages?
Yes, it supports multi-language news search to cater to diverse user needs.
Can server-google-news categorize news automatically?
Yes, it includes automatic news categorization to organize articles by topic.
What programming languages is server-google-news built with?
It is implemented using TypeScript and Node.js for scalability and performance.
Is server-google-news open source and under what license?
Yes, it is open source under the MIT license.
How can server-google-news enhance AI models?
By feeding real-time, categorized news context into LLMs, improving relevance and timeliness.
Is server-google-news compatible with multiple LLM providers?
Yes, it works with models from OpenAI, Anthropic Claude, and Google Gemini via MCP.
Where can I find the source code for server-google-news?
The source code is available on GitHub at the ChanMeng666/server-google-news repository.