Google News MCP server

Integrates with Google News via SerpAPI to enable querying and retrieving current news articles, headlines, and related information for applications like news aggregation and trend analysis.
Back to servers
Setup instructions
Provider
Chan Meng
Release date
Dec 30, 2024
Language
TypeScript
Stats
64 stars

The Google News MCP Server provides a seamless integration with Google News search capabilities through SerpAPI. This server implementation automatically categorizes news results and supports multiple languages and regions, making it a powerful tool for accessing up-to-date news content.

Installation Options

Using SERP API Key

Before installation, you'll need to obtain a SERP API key:

  1. Visit the SERP API website and create an account
  2. Access your Dashboard and copy your API key
  3. New users receive 100 free API calls
  4. Paid plans start at $50/month for 5000 searches

Installing 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

Note: If using an old version of Windows PowerShell, you may need to run Set-ExecutionPolicy Bypass -Scope Process first.

Manual Installation via NPM

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

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

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

Manual Setup

If you prefer to set up the server manually:

  1. Install dependencies:
npm install
  1. Build the server:
npm run build
  1. Configure your environment:

    Modify your claude_desktop_config.json with the following content (adjust paths for 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"
      }
    }
    
  2. Start the server:

npm start

Usage

The Google News MCP Server implements the Model Context Protocol and provides the following search 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

Core Features

  • Flexible Search Options: Comprehensive search capabilities including query-based search, topic search, and publication filtering
  • Global Coverage: Support for multiple languages and regions through configurable language and country codes
  • Smart Categorization: Automatic categorization of news results into topics like AI & Technology, Business, and Healthcare
  • Multiple Result Types: Handles various news result types including headlines, stories, and related topics

Troubleshooting

Invalid API Key

  • Verify your API key configuration in claude_desktop_config.json
  • Confirm your API key is active in the SERP API dashboard

Request Failures

  • Check your network connectivity
  • Verify your API call quota hasn't been exceeded
  • Validate request parameter format

MCP Servers Connection Issues

For connection issues with NVM/NPM, check the configuration solution at: https://github.com/modelcontextprotocol/servers/issues/76

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "google-news" '{"command":"node","args":["./node_modules/@chanmeng666/google-news-server/dist/index.js"],"env":{"SERP_API_KEY":"your-api-key"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "google-news": {
            "command": "node",
            "args": [
                "./node_modules/@chanmeng666/google-news-server/dist/index.js"
            ],
            "env": {
                "SERP_API_KEY": "your-api-key"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "google-news": {
            "command": "node",
            "args": [
                "./node_modules/@chanmeng666/google-news-server/dist/index.js"
            ],
            "env": {
                "SERP_API_KEY": "your-api-key"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later