Skip to main content
Glama
YL4279

israel-weather-mcp

by YL4279

Israel Weather MCP

プロジェクト概要

このプロジェクトは、イスラエルの都市の天気予報を取得するための専用 MCP サーバーを実装しています。

外部 API に基づく実装とは異なり、このプロジェクトでは Playwright を使用して取得を行います。Playwright はブラウザー上での人間のユーザーの操作をシミュレートします。具体的には、天気予報サイトを開き、都市名を入力し、ドロップダウンリストから都市を選択し、結果ページから予報データを取得します。

このプロジェクトの目的は、MCP とブラウザー自動化ツールを用いることで LLM の能力を拡張する方法を示すことです。モデルは質問に答えられるだけでなく、情報収集のために実際のアクションを実行することもできます。


Related MCP server: mcp-playwright-weather-israel

学習目的

  • 独立した MCP サーバーの実装

  • LLM が使用するためのツールの公開

  • Playwright を使用したブラウザーの自動化

  • Web サイトから情報を取得し、クリーンなテキスト形式で返す


使用技術

  • Python

  • MCP SDK

  • Playwright

  • ローカル Google Chrome


プロジェクト構成

project-template/

├── client.py

├── host.py

├── weather_USA.py

├── weather_Israel.py

└── README.md


実行方法

依存関係のインストール:

uv sync

プロジェクトの実行:

uv run host.py


ローカル Chrome の設定

このプロジェクトはローカルの Chrome ブラウザーを使用します。

weather_Israel.py ファイルには、実行ファイルへのパスを設定します:

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

Chrome が別のパスにインストールされている場合は、それに応じて更新してください。


実装したツール

open_weather_forecast_israel

天気予報サイトを開きます。

enter_weather_forecast_city_israel

検索フィールドに都市名を入力します。

select_weather_forecast_city_israel

オートコンプリートのリストから都市を選択します。

get_weather_forecast_israel

一連の操作全体を実行し、ページからデータを抽出して、LLM が使用できるクリーンな予報を返します。


クエリの例

エルサレムの天気はどうですか?

ハイファの予報どうですか?

テルアビブの天気はどうですか?


出力例

項目

都市

エルサレム

気温

11.8°

最終更新

19:10

湿度

71%

風速

15.8 km/h


まとめ

このプロジェクトでは、MCP と Playwright を利用して、LLM が実際の Web サイトとやり取りし、リアルタイムで情報を収集し、ユーザーに対して的を絞った関連性の高い解答を返すことを実現する方法を実証しています。

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs

  • Zenrows MCP server — Fetch, Extract, Batch, and Browser Sessions for AI coding assistants

  • WeatherAPI.com MCP — wraps WeatherAPI.com (api.weatherapi.com)

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/YL4279/israel-weather-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server