Skip to main content
Glama

# šŸŒ¦ļø Weather Israel MCP

×¤×Ø×•×™×§×˜ MCP (Model Context Protocol) ×©×ž××¤×©×Ø ל-LLM לשלוף ×Ŗ×—×–×™×Ŗ מזג אוויר ×œ×¢×Ø×™× ×‘×™×©×Ø××œ — ישירות מהדפדפן, ללא API, ×‘××ž×¦×¢×•×Ŗ Playwright.


šŸŽÆ ×ž×˜×Ø×Ŗ ×”×¤×Ø×•×™×§×˜

במקום ×œ×”×”×Ŗ×ž×š על API מובנה, ה-Agent פותח דפדפן ×›×Ø×•×, מנווט לאתר weather2day.co.il, מחפש עיר, בוחר אותה ×ž×”×Ø×©×™×ž×” — ואז קורא את ×Ŗ×•×›×Ÿ הדף ומהפק ×Ŗ×—×–×™×Ŗ מלאה.


Related MCP server: weather-israel-mcp

šŸ› ļø הטאק טכנולוגי

כלי

תפקיד

MCP SDK

הגדרת Tools והרצת שרת MCP

Playwright

שליטה בדפדפן — ניווט, הקלדה, לחיצה

OpenAI API

מודל השפה שמנהל את השיחה

uv

ניהול הביבה ×•×Ŗ×œ×•×™×•×Ŗ


šŸ“ מבנה ×”×¤×Ø×•×™×§×˜

project-template/
ā”œā”€ā”€ client.py          # MCP Client גנרי — ×ž×Ŗ×—×‘×Ø ×œ×©×Ø×Ŗ×™ MCP
ā”œā”€ā”€ host.py            # צ'אט ×˜×Ø×ž×™× ×œ ×©×ž×—×‘×Ø את הכל יחד
ā”œā”€ā”€ weather_USA.py     # MCP Server ×œ×Ŗ×—×–×™×Ŗ ארה"ב (×“×Ø×š NWS API)
ā”œā”€ā”€ weather_Israel.py  # MCP Server ×œ×Ŗ×—×–×™×Ŗ ×™×©×Ø××œ (×“×Ø×š Playwright)
ā”œā”€ā”€ .env               # ×ž×¤×Ŗ×— API (לא מועלה ל-Git)
└── pyproject.toml     # ×Ŗ×œ×•×™×•×Ŗ ×”×¤×Ø×•×™×§×˜

šŸš€ הרצת ×”×¤×Ø×•×™×§×˜

1. ×”×Ŗ×§× ×Ŗ ×Ŗ×œ×•×™×•×Ŗ

uv sync

2. ×”×Ŗ×§× ×Ŗ דפדפן ×›×Ø×•× עבור Playwright

uv run playwright install chromium

3. הגדרת ×ž×¤×Ŗ×— API

צור קובׄ .env בתיקייה:

OPENAI_API_KEY=your_openai_api_key_here

4. הרצה

uv run host.py

šŸ’¬ ×“×•×’×ž××•×Ŗ ×œ×©××œ×•×Ŗ

Query: what is the weather in Jerusalem?
Query: מה ×”×Ŗ×—×–×™×Ŗ לתל אביב?
Query: האם גשום היום בחיפה?
Query: what is the weather forecast for Bnei Brak?
Query: what are the weather alerts in NY?
Query: what is the forecast for latitude 40.7, longitude -74.0?

🧩 ה-Tools של weather_Israel MCP

Tool

תיאור

open_weather_forecast_israel

פותח דפדפן ומנווט לאתר מזג האוויר

enter_weather_forecast_city_israel

מקליד שם עיר בשדה החיפוש

select_weather_forecast_city_israel

בוחר את העיר ×”×ž×Ŗ××™×ž×” ×ž×”×Ø×©×™×ž×” הנפתחת

extract_weather_data_from_page

קורא את ×Ŗ×•×›×Ÿ הדף ×•×ž×—×–×™×Ø את ×”×Ŗ×—×–×™×Ŗ ל-LLM (RAG)


🧩 ה-Tools של weather_USA MCP

Tool

תיאור

get_alerts_in_USA

×ž×—×–×™×Ø התראות מזג אוויר לפי קוד מדינה (e.g. CA, NY)

get_forecast_in_USA

×ž×—×–×™×Ø ×Ŗ×—×–×™×Ŗ לפי ×§×•××•×Ø×“×™× ×˜×•×Ŗ גיאוגרפיות

Available Tools

4 tools
enter_weather_forecast_city_israelC

×”×–× ×Ŗ שם העיר בשדה החיפוש.

Inputs: city_name (required).

extract_weather_data_from_pageA

מחלׄ את ×Ŗ×•×›×Ÿ הטקהט מהדף הנוכחי כדי שה-LLM יוכל ×œ×§×Ø×•× את ×”×Ŗ×—×–×™×Ŗ. זהו שלב ה-RAG שמהפק קונטקהט למודל.

Inputs: no named parameters.

open_weather_forecast_israelA

פתיחת האתר וניווט לדף ×”×Ŗ×—×–×™×Ŗ.

Inputs: no named parameters.

select_weather_forecast_city_israelB

בחירת העיר ×ž×”×Ø×©×™×ž×” הנפתחת.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool corresponds to a distinct step in the workflow: opening the site, entering a city, selecting from a dropdown, and extracting data. No overlaps or ambiguity.

    Naming Consistency4/5

    Most tools follow a verb_weather_forecast_city_israel pattern, but 'extract_weather_data_from_page' deviates slightly. Overall consistent and readable.

    Tool Count5/5

    Four tools is well-scoped for a focused weather-forecasting server. Each tool is necessary and none are superfluous.

    Completeness4/5

    Covers the core workflow (navigate, search, select, extract) for fetching a forecast. Minor gaps like error handling or alternate actions, but sufficient for the task.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers