Skip to main content
Glama
israel-weather-mcp

israel-weather-mcp

by YL4279

Israel Weather MCP

Projektbeschreibung

Dieses Projekt implementiert einen dedizierten MCP-Server zum Abrufen von Wettervorhersagen für Städte in Israel.

Im Gegensatz zu einer Implementierung, die auf einer externen API basiert, erfolgt der Abruf in diesem Projekt über Playwright, das eine Aktion eines menschlichen Benutzers im Browser simuliert: Öffnen der Wetter-Website, Eingabe des Stadtnamens, Auswahl der Stadt aus der Dropdown-Liste und Abrufen der Vorhersagedaten aus der Ergebnisseite.

Das Ziel des Projekts ist es zu demonstrieren, wie die Fähigkeiten eines LLM mithilfe von MCP und Browser-Automatisierungstools erweitert werden können, sodass das Modell nicht nur Fragen beantworten, sondern auch tatsächliche Aktionen zur Informationsbeschaffung ausführen kann.


Related MCP server: mcp-playwright-weather-israel

Lernziele

Im Rahmen des Projekts wurden die folgenden Fähigkeiten umgesetzt:

  • Implementierung eines eigenständigen MCP-Servers

  • Bereitstellung von Tools zur Nutzung durch das LLM

  • Verwendung von Playwright zur Browser-Automatisierung

  • Abrufen von Informationen von einer Website und deren Rückgabe in einem sauberen Textformat


Technologien

  • Python

  • MCP SDK

  • Playwright

  • Lokales Google Chrome


Projektstruktur

project-template/

├── client.py

├── host.py

├── weather_USA.py

├── weather_Israel.py

└── README.md


Ausführung

Installation der Abhängigkeiten:

uv sync

Ausführen des Projekts:

uv run host.py


Einrichtung von lokalem Chrome

Das Projekt verwendet einen lokalen Chrome-Browser.

In der Datei weather_Israel.py muss der Pfad zur ausführbaren Datei festgelegt werden:

LOCAL_CHROME = r"C:\Program Files\Google\Chrome\Application\chrome.exe"

Wenn Chrome an einem anderen Pfad installiert ist, muss dieser entsprechend aktualisiert werden.


Die implementierten Tools

open_weather_forecast_israel

Öffnet die W#### ########### Assignment 1 ##########.

(weather.py) - (turtle drawing a house with turtle library Python tkinter canvas error:; NameError: name 'ImageTk is not defined

Available Tools

4 tools
enter_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

    C2.8/5.0

    Scored across 4 tools

    Disambiguation3/5

    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.

    Naming Consistency5/5

    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.

    Tool Count3/5

    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.

    Completeness4/5

    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.

    Related MCP Connectors

    Related MCP Servers