Google News MCP Server
Una implementación de servidor del Protocolo de Contexto de Modelo (MCP) que proporciona funciones de búsqueda en Google Noticias mediante la integración con SerpAPI. Categoriza automáticamente los resultados de noticias y es compatible con varios idiomas y regiones.
https://github.com/user-attachments/assets/1cc71c27-f840-4c94-9ab5-460d84ba4779
✨ Características
🔍 Opciones de búsqueda flexibles
Capacidades de búsqueda integrales que incluyen búsqueda basada en consultas, búsqueda de temas, filtrado de publicaciones y cobertura de historias.
🌐 Cobertura global
Admite múltiples idiomas y regiones a través de códigos de idioma y país configurables.
📊 Categorización inteligente
Categoriza automáticamente los resultados de noticias en temas como IA y tecnología, negocios, ciencia e investigación y atención médica.
🔀 Múltiples tipos de resultados
Maneja varios tipos de resultados de noticias, incluidos titulares, historias, temas relacionados y enlaces de menú.
🛠️ Manejo robusto de errores
Manejo integral de errores para fallas de API y entradas no válidas, con mensajes de error útiles.
🌍 Soporte de idiomas
Retorno automático al inglés para códigos de idioma no admitidos con notificaciones de usuario apropiadas.
Guía de configuración de la API SERP
Antes de empezar, necesitarás obtener una clave API de SERP. Aquí te explicamos cómo:
Visita el sitio web de SERP API y crea una cuenta
Después de registrarse, vaya a su Panel de Control:
Localice la sección "Clave API"
Copia tu clave API
Los nuevos usuarios obtienen 100 llamadas API gratuitas
Detalles de uso de la API:
Nivel gratuito: 100 búsquedas por mes
Los planes pagos comienzan en $50/mes por 5000 búsquedas
Facturación basada en llamadas API exitosas
Múltiples métodos de pago: Tarjeta de crédito, PayPal, etc.
Límites de uso:
Tasa de solicitud: 2 solicitudes/segundo
Restricciones de IP: Ninguna
Solicitudes concurrentes: 5
Tiempo de caché de respuesta: 1 hora
👩🔧 Solución para problemas de conexión de servidores MCP con NVM/NPM
Haga clic para ver mi solución de configuración 👉 https://github.com/modelcontextprotocol/servers/issues/76
🚀 Inicio rápido
Instalar dependencias:
npm installConstruir el servidor:
npm run buildConfigurar el entorno: Modifique su
claude_desktop_config.jsoncon el siguiente contenido (ajuste las rutas según su sistema):
"google-news": {
"command": "D:\\Program\\nvm\\node.exe",
"args": [
"D:\\github_repository\\path_to\\dist\\index.js"
],
"env": {
"SERP_API_KEY": "your-api-key"
}
}Iniciar el servidor:
npm startSolución de problemas
Clave API no válida
Verificar la configuración de la clave API en
claude_desktop_config.jsonConfirmar que la clave API esté activa en el panel de API de SERP
Fallas de solicitud
Comprobar la conectividad de la red
Verificar que no se haya excedido la cuota de llamadas API
Validar el formato de los parámetros de solicitud
Related MCP server: Google News13 MCP Server
Ejecución de evaluaciones
El paquete evals carga un cliente mcp que ejecuta el archivo index.ts, por lo que no es necesario reconstruir entre pruebas. Puede cargar variables de entorno prefijando el comando npx. Puede encontrar la documentación completa aquí .
OPENAI_API_KEY=your-key npx mcp-eval src/evals/evals.ts src/index.ts📦 Instalación
Instalación mediante herrería
Para instalar Google News para Claude Desktop automáticamente a través de Smithery :
npx -y @smithery/cli install @chanmeng666/google-news-server --client claudeInstalación mediante mcp-get
npx @michaellatman/mcp-get@latest install @chanmeng666/google-news-serverSi está utilizando una versión antigua de Windows PowerShell, es posible que deba ejecutar
Set-ExecutionPolicy Bypass -Scope Processantes de este comando.
Instalación manual
@chanmeng666/servidor de noticias de Google
# 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-serverPila tecnológica
📖 Documentación de la API
El servidor implementa el Protocolo de Contexto de Modelo y expone una herramienta de búsqueda de Google News con los siguientes parámetros:
q: Cadena de consulta de búsquedagl: Código de país (por ejemplo, 'nosotros', 'reino unido')hl: Código de idioma (p. ej., 'en', 'es')topic_token: Token para temas de noticias específicospublication_token: Token para editores específicosstory_token: Token para la cobertura completa de una historiasection_token: Token para secciones específicas
🔧 Desarrollo
# Run in development mode with hot reload
npm run dev
# Run linting
npm run lint
# Run tests
npm run test📝 Licencia
Este proyecto tiene licencia MIT .
🙋♀ Autor
Creado y mantenido por Chan Meng .
Available Tools
1 toolgoogle_news_searchA
Search Google News for articles and news content. Results will be automatically categorized by topic.
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search query | |
| gl | No | Country code (e.g., us, uk) | us |
| hl | No | Language code (e.g., en) | en |
| story_token | No | Story token for full coverage of a story | |
| topic_token | No | Topic token for specific news topics | |
| section_token | No | Section token for specific sections | |
| publication_token | No | Publication token for specific publishers |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It discloses that results are automatically categorized by topic, adding some behavioral context, but lacks details on rate limits, authentication, or mutation implications.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short, front-loaded sentences with no wasted words. Every sentence adds value: the first states the action, the second adds a behavioral trait.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With 7 parameters and no output schema or annotations, the description is too brief. It does not explain return format, pagination, or how to use the various tokens (story, topic, section, publication). A user would need external knowledge.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the schema already documents all 7 parameters. The description does not add meaning beyond the schema, meeting the baseline for high coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb (Search) and resource (Google News for articles and news content), and adds that results are categorized by topic, which distinguishes it from generic web searches.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for searching news but provides no explicit guidance on when to use this tool versus alternatives or when not to use it. It relies on self-evident purpose.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v1.0.1- First observed
google_news_search
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion between tools. The tool's purpose is clearly stated.
Single tool follows a clear and conventional naming pattern; no inconsistencies exist.
A single tool for a news search server is too minimal. Users expect additional functionality such as filtering by category or retrieving article details.
The tool only provides search capability, missing essential news operations like reading full articles, date filtering, or topic-specific queries.
Maintenance
Related MCP Connectors
Official GNews API server: search news articles and top headlines from 80,000+ sources.
212Read Google News across 80 editions and any public Telegram channel, without an API key
Google News headlines, sources, and links via the Apify Google News API, hosted MCP.
Search global news in natural language. Filter by language, country, date, sentiment, and domain.
Related MCP Servers
- AlicenseBqualityDmaintenanceThis server allows users to perform web searches using Perplexity AI, providing a tool for retrieving search results through a simple API interface.159 npm3Apache 2.0
- AlicenseBqualityDmaintenanceProvides tools to search and retrieve news across various categories including business, technology, science, and sports via the Google News API. It supports keyword searches, autocomplete suggestions, and region-specific news across multiple languages.11MIT
- FlicenseNot gradedqualityFmaintenanceMCP server providing access to the GNews API for fetching news articles and headlines. Supports search and top headlines with advanced filtering by language, country, category, and date.1-
- FlicenseNot gradedqualityDmaintenanceA server that provides tools to search news articles and fetch top headlines using the GNews API.-