Google News MCP Server

by ChanMeng666
MIT License
49
46

Integrations

  • Provides Google News search capabilities via SerpAPI integration, supporting flexible search options, global coverage, smart categorization of news results, and multiple result types.

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.

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

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

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

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

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

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

  1. 🔍 Flexible Search Options
    1. 🌐 Global Coverage
      1. 📊 Smart Categorization
        1. 🔀 Multiple Result Types
          1. 🛠️ Robust Error Handling
            1. 🌍 Language Support
              1. 🔑 SERP API Setup Guide
                1. 👩‍🔧 Solution for MCP Servers Connection Issues with NVM/NPM
                  1. 🚀 Quick Start
                    1. Troubleshooting
                    2. Running evals
                  2. 📦 Installation
                    1. Installing via Smithery
                    2. Installing via mcp-get
                    3. Manual Installation
                  3. 💻 Tech Stack
                    1. 📖 API Documentation
                      1. 🔧 Development
                        1. 📝 License
                          1. 🙋‍♀ Author

                            Related MCP Servers

                            • A
                              security
                              A
                              license
                              A
                              quality
                              A server facilitating web search functionality by utilizing Perplexity AI's API, designed to integrate with the Claude desktop client for enhanced search queries.
                              Last updated -
                              1
                              94
                              Python
                              MIT License
                              • Apple
                            • A
                              security
                              F
                              license
                              A
                              quality
                              This server allows users to perform web searches using Perplexity AI, providing a tool for retrieving search results through a simple API interface.
                              Last updated -
                              1
                              2
                              TypeScript
                            • A
                              security
                              F
                              license
                              A
                              quality
                              Enables integration of Google search functionality into MCP-enabled applications using the Serper API, providing rich search results, configurable parameters, and efficient response handling.
                              Last updated -
                              1
                              12
                              TypeScript
                              • Apple
                            • A
                              security
                              A
                              license
                              A
                              quality
                              A Model Context Protocol server that provides Google Jobs search capabilities through SerpAPI integration, featuring multi-language support, flexible search parameters, and rich job details.
                              Last updated -
                              1
                              7
                              7
                              JavaScript
                              MIT License

                            View all related MCP servers

                            ID: dbx6imq4ef