Israel Weather MCP
Enables LLMs to fetch Israeli weather forecasts by automating a browser to navigate Weather2Day, providing tools for city search and content extraction.
README
Israel Weather MCP — Playwright browser automation over weather2day.co.il
MCP Server שמאפשר ל‑LLM לשלוף תחזית מזג אוויר בישראל על ידי שליטה בדפדפן (Playwright), במקום API מובנה. המידע נשלף מ־Weather2Day.
מה בפרויקט
| קובץ | תפקיד |
|---|---|
weather_Israel.py |
MCP Server ישראלי — Tools של Playwright |
weather_USA.py |
MCP Server אמריקאי — NWS API (מהתבנית) |
client.py |
MCP Client גנרי (stdio) |
host.py |
צ'אט טרמינל שמחבר Claude לכל ה‑MCPs |
Tools ב‑weather_Israel
open_weather_forecast_israel— פותח את דף התחזיתenter_weather_forecast_city_israel(city_name)— מזין שם עיר בשדה החיפושselect_weather_forecast_city_israel— בוחר את ההצעה הראשונה ברשימהget_weather_page_content— מחלץ ומנקה את תוכן הדף ל‑LLM (RAG)
התקנה
דרישות: Python 3.13+, uv, מפתח Anthropic.
cd weather-israel-mcp
uv sync
uv run playwright install chromium
copy .env.example .env
# ערכי ANTHROPIC_API_KEY ב-.env — מפתח אמיתי שמתחיל ב-sk-ant-
# (לא להשאיר your_anthropic_api_key)
הרצה
uv run host.py
בצ'אט הטרמינל שאלי למשל:
- מה מזג האוויר בירושלים?
- תן לי תחזית לחיפה להיום
- האם צפוי גשם בבני ברק?
- מה הטמפרטורה בתל אביב?
ה‑Host אמור לבחור את weather_Israel, להפעיל את ה‑Tools בזה אחר זה, לפתוח דפדפן,
ואז (שלב ב׳) לקרוא ל‑get_weather_page_content ולענות בשיחה לפי התוכן.
לעזיבה: quit.
זרימת העבודה
שאלה → Claude בוחר Tools
→ open_weather_forecast_israel
→ enter_weather_forecast_city_israel("...")
→ select_weather_forecast_city_israel
→ get_weather_page_content ← RAG לדף
→ תשובה בצ'אט
הערות
- הדפדפן רץ עם
headless=Falseכדי שתראי את האוטומציה. - למשתמשי NetFree: ב‑
host.py/weather_USA.pyכבר מוגדרverify=Falseל‑httpx. - אל תחפשי תחזית בגוגל דרך Playwright — Captcha. כאן הולכים ישירות ל‑Weather2Day.
סטאק
MCP SDK (FastMCP) · Playwright · Anthropic · uv
בונוס מהמטלה — ספרייה נוספת שקיבלה בוסט מ‑AI Agents
כמו Playwright, גם Selenium ו‑Puppeteer נולדו לפני עידן ה‑GenAI, אבל עם עליית ה‑Agents הן חזרו לקדמת הבמה כשכבת "ידיים לדפדפן". במקביל, ספריות כמו LangChain / LlamaIndex לקחו רכיבים ישנים יותר (retrievers, vector stores, parsers) והפכו אותם לקוביות Lego של Agents.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.