weather-Israel
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@weather-Israel מה מזג האוויר מחר בתל אביב?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
⛅ Weather MCP with Playwright
שרת MCP עצמאי ששולף תחזית מזג אוויר ישראלית על ידי הפעלת דפדפן אמיתי עם Playwright — במקום קריאה ל‑API. ה‑Host מחבר את הכלים למודל Google Gemini, כך שה‑LLM עונה על שאלת המשתמש ישירות בצ׳אט (מעין RAG מעל תוכן הדף).

איך זה עובד
המשתמש שואל שאלה בצ׳אט (Gradio).
Gemini מחליט להפעיל את הכלי
get_israel_forecast.הכלי מריץ דפדפן Chrome אמיתי: נכנס לאתר התחזית → מקליד את שם העיר → בוחר עיר מהרשימה → מחלץ ומנקה את טקסט הדף.
הטקסט הנקי חוזר ל‑Gemini, שמנסח תשובה קצרה בשפת המשתמש.
Related MCP server: Weather Israel MCP Server
מבנה הפרויקט
קובץ | תפקיד |
| שרת MCP — כלי Playwright לאתר התחזית הישראלי |
| שרת MCP — תחזית ארה״ב דרך ה‑API של NWS |
|
|
|
|
| ממשק צ׳אט ב‑Gradio |
הכלים
שרת weather-Israel — כל הכלים מוגדרים עם @mcp.tool() ומחוברים ל‑Host:
שלב א׳
open_weather_forecast_israel— פתיחת אתר התחזיתenter_weather_forecast_city_israel(city)— הזנת שם עירselect_weather_forecast_city_israel— בחירת העיר מרשימת ההשלמה
שלב ב׳
get_weather_page_content_israel— חילוץ וניקוי טקסט הדף כדי שה‑LLM יענה מהנתונים
נוחות
get_israel_forecast(city)— מריץ את כל הרצף בקריאה אחת (כדי לחסוך בבקשות ל‑Gemini)
הרצה
דרישות: Python 3.13+, uv, ו‑Google Chrome מותקן.
uv syncצרו קובץ .env:
GEMINI_API_KEY=... # מפתח חינם: https://aistudio.google.com/apikey
# WEATHER_HEADLESS=1 # אופציונלי — הרצת הדפדפן ללא חלון גלויממשק גרפי:
uv run python app.py # פותח http://127.0.0.1:7860טרמינל:
uv run python host.pyהערות
מכסת Gemini החינמית מוגבלת במספר בקשות ליום לכל מודל. אם היא נגמרת — היא מתאפסת אוטומטית תוך 24 שעות, או שאפשר לשנות את
MODELב‑host.py.הקוד מגדיר
verify=Falseבבקשות ה‑HTTPS כדי לעבור דרך פרוקסי TLS מקומי (כגון NetFree)..envו‑.venv/לא נכללים ב‑git — כל מי שמריץ צריך.envמשלו.
Available Tools
5 toolsenter_weather_forecast_city_israelA
Types the specific city name into the search bar. Requires 'city' argument. Must be called right after opening the browser.
Inputs: city (required). Returns: result
get_israel_forecastA
One call that does the whole flow: open the forecast site, search for 'city', pick the first match, and return the cleaned forecast text. Use this for a normal weather question - it keeps the conversation short. The separate open/enter/select tools are for stepping through the browser manually.
Inputs: city (required). Returns: result
get_weather_page_content_israelA
Extracts and returns the visible text content of the currently open weather page. Call this after navigating to a city forecast to give the LLM the actual weather data.
Inputs: no named parameters. Returns: result
open_weather_forecast_israelB
Open Chrome and navigate to the Israel weather forecast page.
Inputs: no named parameters. Returns: result
select_weather_forecast_city_israelA
Clicks the first suggestion in the search dropdown menu. Call this ONLY after enter_weather_forecast_city_israel has finished executing. Takes no arguments.
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 5 tools
The high-level get_israel_forecast tool is clearly distinct from the manual browser steps, and its description explicitly directs agents to use it for normal queries. The four step-by-step tools are sequential and have clear dependencies, so an agent can distinguish them. However, both paths ultimately return weather data, creating slight overlap in purpose.
All tools end with '_israel' and use clear verbs (get, open, enter, select, get). The pattern is mostly verb + object + israel, though get_israel_forecast breaks the order (get + israel + forecast) and some names are verbose. Overall, the naming is readable and predictable, with only minor deviations.
With 5 tools, the server is well-scoped. The high-level tool provides a quick path, while the four low-level tools enable manual browser control. This is a reasonable size that avoids redundancy and keeps the surface manageable.
The tool set covers the full weather retrieval workflow: the high-level tool handles everything in one call, and the manual tools cover open, search, select, and read steps. There are no missing operations for the stated purpose of fetching Israel weather forecasts, and the domain is read-only, so no CRUD gaps exist.
Related MCP Connectors
Web search, browser automation, scraping, crawling and CAPTCHA solving for AI agents.
Get current weather for any city and create images from your prompts. Streamline planning, reports…
Hosted browser for agents: open pages, search the web, extract data, read PDFs and take screenshots.
Paid web research, news, company briefs, fact-checks and US weather data for AI agents
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables LLMs to query real-time weather data in Israel by automating a browser to scrape weather2day.co.il.4-
- FlicenseBqualityDmaintenanceEnables users to query weather forecasts for Israeli cities through natural language using browser automation and Gemini.4-
- FlicenseAqualityDmaintenanceEnables an LLM to retrieve Israeli weather forecasts by controlling a real Chromium browser to search and scrape a weather site.5-
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to retrieve Israeli weather forecasts by controlling a browser via Playwright and scraping data from an Israeli weather website.-