Google News MCP Server

Google News MCP Server

A Model Context Protocol server providing Google News search with smart categorization and multi-language support.

93
Stars
20
Forks
93
Watchers
3
Issues
Implements a Model Context Protocol (MCP) server that integrates with SerpAPI to deliver advanced Google News search capabilities. Automatically categorizes news results, supports various languages and regions, and provides multiple search options such as query-based and topic search. Features robust error handling and flexible response types to suit diverse application needs.

Key Features

Flexible query, topic, publication, and coverage search options
Automatic categorization of news results by topic
Support for multiple languages and regions
Retrieves headlines, stories, related topics, and menu links
Comprehensive error handling with user-friendly messages
Fallback to English for unsupported language codes
Integration with SerpAPI for news data access
MCP-compliant server API endpoints
Robust handling of API failures and invalid inputs
Configurable for use with NVM/NPM environments

Use Cases

Integrating up-to-date news content into conversational AI or chatbots
Building news aggregation dashboards with global and topical coverage
Providing real-time news trend analysis and categorization
Personalized news delivery based on region or language
Research platforms requiring categorized news data feeds
Alert systems for business, science, or healthcare news updates
Multi-lingual news summary generation for end users
Story coverage analysis and media monitoring
Content enrichment for AI applications with contextual news input
Developing news recommendation systems based on topics or publications

README

MseeP.ai Security Assessment 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.

👉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.

🔑 SerpApi Setup Guide

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

  1. Visit SerpApi website and create an account

  2. After registration, go to your Dashboard:

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

    • Free tier: 250 searches per month
    • Paid plans start at $75/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:
bash
npm install
  1. Build the server:
bash
npm run build
  1. Configure environment: Modify your claude_desktop_config.json with the following content (adjust paths according to your system):
json
    "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:
bash
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.

bash
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:

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

Trust Score smithery badge

Installing via mcp-get

bash
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

bash
# 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

bash
# 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


For AI Agents and LLM Crawlers

This MCP server is optimized for AI agent usage with comprehensive instructions and structured data.

Quick AI Usage Guide

json
{
  "tool": "google_news_search",
  "parameters": {
    "q": "artificial intelligence latest developments",
    "gl": "us",
    "hl": "en"
  }
}

AI-Friendly Features

  • Automatic Categorization: News results are automatically sorted into relevant categories
  • Structured Output: Returns formatted data optimized for AI processing
  • Multi-language Support: Supports various languages with automatic fallbacks
  • Error Handling: Comprehensive error messages and graceful degradation

Response Format

The server returns categorized news with the following structure:

  • Categories: AI & Technology, Business, Science & Research, Healthcare, General
  • Article Fields: title, source, link, date, snippet, authors
  • Metadata: timestamp, menu_links for related topics

Best Practices for AI Agents

  1. Use specific, descriptive keywords for better results
  2. Leverage automatic categorization for topic-based workflows
  3. Implement proper error handling and retry logic
  4. Respect API rate limits (2 requests/second)
  5. Parse structured responses for better context understanding

Advanced Usage Patterns

  • News Monitoring: Use company names or stock symbols for business news
  • Research Exploration: Leverage topic tokens for field-specific searches
  • Breaking News: Use "breaking news" or "latest news" queries
  • Multi-language: Combine appropriate gl and hl parameters

Error Handling

  • Invalid API key: Check SERP_API_KEY environment variable
  • Unsupported language: Server auto-falls back to English
  • Rate limiting: Respect 2 requests/second limit
  • Invalid parameters: Validate parameter types before calling

Generative Engine Optimization (GEO) Features

This server includes comprehensive monitoring and optimization for AI agent usage.

Key Metrics Tracked

  • Citation Success Rate: Percentage of successful tool calls
  • AI Traffic Conversion Rate: Percentage of AI agents successfully using the tool
  • Query Coverage Rate: Percentage of queries returning relevant results
  • Response Time: Average response time for tool calls
  • Categorization Accuracy: Accuracy of automatic news categorization
  • Link Carry Rate: Percentage of responses including source links

Monitoring Configuration

typescript
interface GEOMonitoringConfig {
  trackingEnabled: boolean;
  metricsEndpoint: string;
  reportingInterval: number; // minutes
  alertThresholds: {
    errorRate: number;
    responseTime: number;
    successRate: number;
    satisfactionScore: number;
  };
}

Performance Optimization

  • Real-time metrics collection
  • Automated alerting for performance issues
  • Query pattern analysis for optimization
  • Agent usage tracking and analytics

Data-Driven Improvements

  • Continuous monitoring of AI agent satisfaction
  • Query success rate analysis
  • Response time optimization
  • Categorization accuracy improvements

For technical implementation details, see src/geo-metrics.ts.

AI-Optimized Metadata

This server provides comprehensive structured data for AI agents and search engines.

JSON-LD Structured Data

The server includes structured data following Schema.org standards:

  • Software application metadata
  • Feature descriptions and capabilities
  • Technical requirements and dependencies
  • Usage patterns and integration guidelines

MCP Protocol Compliance

  • Protocol Version: 1.0.0
  • Tool Name: google_news_search
  • Response Format: Structured text with categorized results
  • Rate Limits: 2 requests/second, 5 concurrent requests

AI Discovery Features

  • llms.txt: Comprehensive AI usage guide at root level
  • Structured Metadata: Enhanced manifest.json with AI-specific information
  • Error Handling: AI-friendly error messages and fallbacks
  • Documentation: Detailed usage examples and best practices

Integration Guidelines

  • Designed for seamless integration with other MCP servers
  • Optimized for AI agent workflows
  • Supports various AI platforms and frameworks
  • Provides clear error handling and debugging information

For complete structured data, see structured-data.json.

Star History

Star History Chart

Repository Owner

Repository Details

Language TypeScript
Default Branch main
Size 163 KB
Contributors 9
License MIT License
MCP Verified Nov 12, 2025

Programming Languages

TypeScript
59.12%
JavaScript
37.01%
Dockerfile
3.88%

Tags

Topics

ai claude claude-desktop google-news-api mcp mcp-server modelcontextprotocol news-aggregation news-search nodejs serpapi typescript

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • SearXNG MCP Server

    SearXNG MCP Server

    MCP-compliant server integrating the SearXNG API for advanced web search capabilities

    SearXNG MCP Server implements the Model Context Protocol and integrates the SearXNG API to provide extensive web search functionalities. It features intelligent caching, advanced content extraction, and multiple configurable search parameters such as language, time range, and safe search levels. The server exposes tools for both web searching and URL content reading, supporting detailed output customization through input parameters. Designed for seamless MCP deployments, it supports Docker and NPX-based installation with rich configuration options.

    • 321
    • MCP
    • ihor-sokoliuk/mcp-searxng
  • MCP Claude Hacker News

    MCP Claude Hacker News

    Seamless Hacker News integration for Claude Desktop via Model Context Protocol.

    MCP Claude Hacker News is an MCP server that enables Claude Desktop to access, browse, and interact with Hacker News content. It allows users to view the latest, top, and best-rated stories, retrieve detailed information, and read story comments in a clean, structured format. Designed for easy integration, it supports both manual launch and automated startup with Claude Desktop.

    • 9
    • MCP
    • imprvhub/mcp-claude-hackernews
  • Hacker News MCP Server

    Hacker News MCP Server

    Fetch and structure Hacker News stories via the Model Context Protocol.

    Provides an MCP server that enables fetching and parsing stories from Hacker News with structured output. Supports retrieval of different types of stories, configurable limits, and clean error handling. Designed for integration with Claude and other MCP-compatible interfaces, offering a standardized tool for AI-driven access to Hacker News data.

    • 35
    • MCP
    • pskill9/hn-server
  • Google Workspace MCP Server

    Google Workspace MCP Server

    Full natural language control of Google Workspace through the Model Context Protocol.

    Google Workspace MCP Server enables comprehensive natural language interaction with Google services such as Calendar, Drive, Gmail, Docs, Sheets, Slides, Forms, Tasks, and Chat via any MCP-compatible client or AI assistant. It supports both single-user and secure multi-user OAuth 2.1 authentication, providing a production-ready backend for custom apps. Built on FastMCP, it delivers high performance and advanced context handling, offering deep integration with the entire Google Workspace suite.

    • 890
    • MCP
    • taylorwilsdon/google_workspace_mcp
  • G-Search MCP

    G-Search MCP

    Parallel Google search server with MCP support for structured AI context.

    G-Search MCP is a server for executing parallel Google searches optimized for use with AI tools through the Model Context Protocol. It efficiently handles multiple queries at once, simulates realistic user behavior to evade detection, and returns well-structured JSON responses. The server is configurable, supports parameter tuning like search limits and timeouts, and is designed for seamless integration in AI-driven environments such as Claude Desktop.

    • 224
    • MCP
    • jae-jae/g-search-mcp
  • Brave Search MCP Server

    Brave Search MCP Server

    MCP integration for web, image, news, video, and local search via Brave Search API.

    Implements a Model Context Protocol server that connects with the Brave Search API, enabling AI systems to perform comprehensive web, image, news, video, and local points of interest searches. Provides standardized MCP tools for various search types, each supporting advanced filtering parameters. Designed for easy integration in context-aware model interfaces such as Claude Code.

    • 86
    • MCP
    • mikechao/brave-search-mcp
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results