Weather Israel MCP
🌦️ Weather Israel MCP
MCP(Model Context Protocol)プロジェクトで、LLMがイスラエルの都市の天気予報を取得できるようにします。APIなしで、Playwrightを使ってブラウザから直接取得します。
🎯 プロジェクトの目的
組み込みAPIに依存する代わりに、エージェントがChromeブラウザを開き、weather2day.co.il に移動して都市を検索し、リストから選択してから、ページの内容を読み取って完全な予報を提供します。
🛠️ 技術スタック
ツール | 役割 |
Toolsの定義とMCPサーバーの実行 | |
ブラウザ操作 — ナビゲーション、入力、クリック | |
会話を管理する言語モデル | |
環境と依存関係の管理 |
📁 プロジェクト構成
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 sync2. Playwright用のChromeブラウザのインストール
uv run playwright install chromium3. APIキーの設定
ディレクトリに .env ファイルを作成します:
OPENAI_API_KEY=your_openai_api_key_here4. 実行
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?🧩 weather_Israel MCP のツール
Tool | 説明 |
| ブラウザを開いて天気サイトに移動する |
| 検索フィールドに都市名を入力する |
| ドロップダウンリストから該当する都市を選択する |
| ページの内容を読み取り、予報をLLMに返す(RAG) |
🧩 weather_USA MCP のツール
Tool | 説明 |
| 国コードに基づいて気象警報を返す(例: |
| 地理座標に基づいて予報を返す |
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/miri0612/weather-mcp-with-playwright'
If you have feedback or need assistance with the MCP directory API, please join our Discord server