MCP.so
ログイン

Google Alerts Mcp

@ycrao

Google Alerts Mcp について

Google Alerts MCP Server

基本情報

カテゴリ

その他

ライセンス

MIT

ランタイム

python

トランスポート

stdio

公開者

ycrao

投稿者

飞扬

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "google-alerts": {
      "command": "uvx",
      "args": [
        "google-alerts-mcp"
      ],
      "env": {}
    }
  }
}

ツール

1

Search Google Alerts for news articles about a specific topic by simulating the browser workflow

概要

What is Google Alerts Mcp?

Google Alerts Mcp is an MCP (Model Context Protocol) server that fetches news articles from Google Alerts for a given topic. It simulates a browser workflow to dynamically extract state parameters and tokens, avoiding detection and blocking. It is intended for developers who want to programmatically retrieve Google Alerts content.

How to use Google Alerts Mcp?

Install dependencies with uv sync, then run the server or configure it as an MCP tool in your client. The server provides a search_google_alerts tool that accepts query (required), and optional language, region, and clean_urls parameters.

Key features of Google Alerts Mcp

  • Dynamic extraction of Google Alerts page state parameters and tokens
  • Anti‑detection using fresh cookies and session headers per request
  • Multi‑language search support (e.g., Chinese, English)
  • Automatic cleaning of Google redirect URLs to direct article links
  • No hard‑coded authentication values – all parameters are extracted dynamically

Use cases of Google Alerts Mcp

  • Monitor news articles about a specific topic (e.g., "bitcoin", "白银")
  • Integrate Google Alerts results into AI assistants or automated research pipelines
  • Retrieve clean, direct article links without Google redirect parameters
  • Search for news in different languages and regions from a single MCP tool

FAQ from Google Alerts Mcp

What does the search_google_alerts tool do?

It takes a query (topic) and returns a list of articles with title, URL, snippet, and source. You can also specify language (default zh‑CN), region (default US), and whether to clean Google redirect URLs.

What dependencies does Google Alerts Mcp require?

Python 3, uv package manager, and the packages mcp, httpx, beautifulsoup4, and pydantic.

How does anti‑detection work?

The server visits Google Alerts, extracts fresh window.STATE parameters (including a token) and session cookies, then uses them to build a preview URL. This prevents blocking by using dynamically obtained credentials for each request.

Can I get direct article links instead of Google redirect URLs?

Yes. By default clean_urls is true, which removes Google’s redirect wrapper and returns the target URL directly. Set clean_urls to false to keep the original redirect URL.

What network access is required?

Google Alerts Mcp must reach Google’s servers. In regions where Google is blocked, a VPN or proxy may be necessary.

コメント

「その他」の他のコンテンツ