israel-weather-mcp
Israel Weather MCP
Descripción del proyecto
Este proyecto implementa un MCP Server dedicado para obtener el pronóstico del tiempo para ciudades en Israel.
A diferencia de una implementación basada en una API externa, en este proyecto la obtención se realiza mediante Playwright, que simula la acción de un usuario humano en el navegador: abrir el sitio del pronóstico, ingresar el nombre de la ciudad, seleccionar la ciudad de la lista desplegable y extraer los datos del pronóstico de la página de resultados.
El objetivo del proyecto es demostrar cómo se pueden ampliar las capacidades de un LLM mediante MCP y herramientas de automatización del navegador, de modo que el modelo no solo pueda responder preguntas, sino también realizar acciones reales para recopilar información.
Related MCP server: mcp-playwright-weather-israel
Objetivos de aprendizaje
En el marco del proyecto se implementaron las siguientes capacidades:
Implementación de un MCP Server independiente
Exposición de Tools para uso por parte del LLM
Uso de Playwright para automatización del navegador
Extracción de información de un sitio web y devolución en formato de texto limpio
Tecnologías
Python
MCP SDK
Playwright
Google Chrome local
Estructura del proyecto
project-template/
├── client.py
├── host.py
├── weather_USA.py
├── weather_Israel.py
└── README.md
Cómo ejecutar
Instalación de dependencias:
uv sync
Ejecución del proyecto:
uv run host.py
Configuración de Chrome local
El proyecto utiliza el navegador Chrome local.
En el archivo weather_Israel.py se debe configurar la ruta al archivo ejecutable:
LOCAL_CHROME = r"C:\Program Files\Google\Chrome\Application\chrome.exe"
Si Chrome está instalado en otra ruta, se debe actualizar en consecuencia.
Los Tools implementados
open_weather_forecast_israel
Abre el sitio del pronóstico.
enter_weather_forecast_city_israel
Ingresa el nombre de la ciudad en el campo de búsqueda.
select_weather_forecast_city_israel
Selecciona la ciudad de la lista de autocompletado.
get_weather_forecast_israel
Ejecuta la secuencia completa de acciones, extrae los datos de la página y devuelve un pronóstico limpio para uso del LLM.
Ejemplos de consultas
¿Qué tiempo hace en Jerusalén?
¿Cuál es el pronóstico en Haifa?
¿Qué tiempo hace en Tel Aviv?
Ejemplo de salida
Ciudad: Jerusalén
Temperatura: 11.8°
Última actualización: 19:10
Humedad: 71%
Viento: 15.8 km/h
Resumen
El proyecto demuestra cómo se puede utilizar MCP y Playwright para permitir que un LLM interactúe con un sitio web real, recopile información en tiempo real y devuelva una respuesta enfocada y relevante al usuario.
Available Tools
4 toolsenter_weather_forecast_city_israelC
מזין עיר בתיבת החיפוש.
Inputs: city (required). Returns: result
get_weather_forecast_israelC
מבצע את כל הזרימה ומחזיר תחזית נקייה.
Inputs: city. Returns: result
open_weather_forecast_israelC
פותח את אתר התחזית.
Inputs: no named parameters. Returns: result
select_weather_forecast_city_israelC
בוחר את העיר מהרשימה הנפתחת.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The composite get_weather_forecast_israel performs the entire flow, making the three granular browser-step tools (open, enter, select) redundant and raising 'when to use which' confusion. Descriptions clarify each step's action, but the boundaries between the composite and its sub-steps overlap significantly.
All four tools follow a consistent snake_case verb_noun pattern with the same weather_forecast..._israel stem. The naming is fully predictable and easy to parse.
Four tools is a reasonable raw count, but three are subsumed by the single composite tool, so effectively only one tool earns its place. The set is borderline redundant rather than well-scoped.
The core task—retrieving a clean weather forecast for an Israeli city—is covered by get_weather_forecast_israel. For this narrow domain there are no obvious missing lifecycle operations, though multi-city or forecast-detail coverage is not evident.
Maintenance
Related MCP Connectors
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
MCP server for weather with reasoning — umbrella advice, outdoor checks, city comparisons.
Weather MCP — wraps Open-Meteo API (free, no auth)
An MCP server for weather information by @kulybaba
Related MCP Servers
- FlicenseAqualityDmaintenanceMCP server enabling LLMs to fetch Israeli weather forecasts by automating a browser with Playwright to scrape weather2day.co.il.4-
- FlicenseAqualityDmaintenanceAn MCP server that uses Playwright to scrape Israeli weather forecasts from weather2day.co.il by automating a real browser, enabling an LLM to answer questions about current conditions and hourly forecasts for Israeli cities.5-
- FlicenseNot gradedqualityCmaintenanceMCP server that lets users obtain current Israeli city weather forecasts. It uses Playwright to browse Weather2day, extract the forecast page, and feed the cleaned data back to the LLM for natural language responses.-
- FlicenseAqualityDmaintenanceAn MCP server that provides real-time weather data for Israel by automating browser searches via Playwright. It allows LLMs to get current forecasts for Israeli cities through natural language queries.4-