Skip to main content
Glama
israel-weather-mcp-agent

israel-weather-mcp-agent

by beF99

Israel Weather MCP Agent

מטרת הפרויקט

הפרויקט מממש MCP Server ייעודי לתחזית מזג אוויר בישראל באמצעות Playwright, ללא שימוש ב-API מובנה.

המערכת כוללת:

  1. host.py - צ'אט טרמינל שמפעיל LLM + Tools.

  2. weather_Israel.py - MCP Server עם כלים לניווט באתר תחזית ישראלי, חיפוש עיר, בחירה ברשימה וחילוץ תוכן.

  3. weather_USA.py - שרת דוגמה קיים לתחזית בארה"ב.

Related MCP server: Weather Israel MCP

סטאק טכנולוגי

  1. Python

  2. MCP SDK

  3. Playwright

  4. OpenAI API (Tool Calling)

איך להריץ

להריץ מתוך תיקיית project-template:

cd project-template
uv sync
uv run playwright install chromium
uv run host.py

הגדרת משתני סביבה

יש ליצור/לעדכן קובץ .env:

OPENAI_API_KEY=your_openai_key_here
OPENAI_MODEL=gpt-4.1-mini

סימולטור ויזואלי

ניתן לפתוח את תרשים הזרימה של המשימה באופן ויזואלי דרך קובץ ה-HTML הבא:

PROJECT_SPEC_FLOW_SIMULATOR.html בתצוגה ויזואלית

דוגמאות שאלות שה-Agent יודע לענות

  1. מה התחזית בחיפה להיום?

  2. מה מזג האוויר בבית שמש היום?

  3. Are there active weather alerts in CA?

  4. What is the forecast for New York City?

זרימת עבודה תמציתית

  1. המשתמש שואל שאלה בטרמינל.

  2. ה-Host שולח למודל את השאלה + רשימת tools.

  3. המודל מפעיל tools לפי הצורך (open -> enter -> select -> extract).

  4. תוצאות הכלים חוזרות למודל.

  5. המודל מחזיר תשובה סופית למשתמש.

הערות חשובות

  1. אין להעלות את קובץ .env ל-Git.

  2. הקובץ .env.example כולל רק תבנית ללא מפתחות.

  3. תיתכנה תלות ברשת ובטעינת האתר בזמן אמת.

Available Tools

4 tools
enter_weather_forecast_city_israelA

מזין עיר לשדה החיפוש באתר התחזית הישראלי. מומלץ להפעיל אחרי open_weather_forecast_israel.

Inputs: city (required). Returns: result

extract_weather_forecast_content_israelB

מחלץ תוכן תחזית מהעמוד ומחזיר טקסט נקי ל-LLM. להפעיל אחרי בחירת עיר.

Inputs: no named parameters. Returns: result

open_weather_forecast_israelA

פותח דפדפן ומנווט לעמוד התחזית בישראל. זה כלי פתיחה מומלץ לפני שאר הכלים.

Inputs: no named parameters. Returns: result

select_weather_forecast_city_israelA

בוחר את העיר הראשונה מרשימת ההצעות. אם צריך משתמש גם במקלדת (חץ למטה + Enter).

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

    A3.9/5.0

    Scored across 4 tools

    Disambiguation4/5

    Each tool has a distinct action (open, enter, select, extract) and target, reducing ambiguity. However, the repetitive naming with 'weather_forecast_israel' might cause minor confusion in a larger set.

    Naming Consistency3/5

    The naming follows a consistent pattern of verb_weather_forecast_target_israel, but the verbs vary (open, enter, select, extract) without a uniform action prefix. The pattern is recognizable but not fully standardized.

    Tool Count5/5

    Four tools is well-scoped for a sequential web scraping workflow, providing just enough steps without redundancy. This is an ideal size for the intended purpose.

    Completeness4/5

    The tools cover the essential steps for retrieving weather data (open site, search city, select result, extract content). Minor gaps like error handling or direct URL navigation are not included, but the core workflow is complete.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers