server-google-news

【Star-crossed coders unite!⭐️】Model Context Protocol (MCP) server implementation providing Google News search capabilities via SerpAPI, with automatic news categorization and multi-language support.

126
Stars
20
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/ChanMeng666/server-google-news

快速入门

使用 server-google-news 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

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!👈


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

Trust Score 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


🤖 AI Agent Instructions & GEO Optimization

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

{
  "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
📊 GEO Metrics & Monitoring

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

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.

🔍 Structured Data & Metadata

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.

Hosted deployment

A hosted deployment is available on Fronteir AI.


Chan Meng

Chan Meng
Need a custom app like this one? I build them — let's talk.

Email Chan Meng Chan Meng on GitHub

常见问题

What is server-google-news?

server-google-news is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ChanMeng666. 【Star-crossed coders unite!⭐️】Model Context Protocol (MCP) server implementation providing Google News search capabilities via SerpAPI, with automatic news categorization and multi-language support. It has 126 GitHub stars.

Is server-google-news safe to use?

server-google-news returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.

How do I install server-google-news?

Clone the repository with "git clone https://github.com/ChanMeng666/server-google-news" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is server-google-news written in?

server-google-news is primarily written in TypeScript. It is open-source under ChanMeng666 on GitHub, so you can review or fork the full source.

Are there alternatives to server-google-news?

Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh server-google-news against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

Scrapling

by D4Vinci

🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!

75,9137,581Python
MCP 服务器
查看详情

TrendRadar

by sansan0

⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。

61,65224,883Python
MCP 服务器
查看详情

context7

by upstash

Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

61,0602,938TypeScript
MCP 服务器
查看详情

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

39,9393,219C
MCP 服务器
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情