israel-weather-mcp
MCP server that uses Playwright to scrape real-time weather forecasts for Israeli cities and returns structured text data (temperature, humidity, wind) to LLMs.
README
Israel Weather MCP
תיאור הפרויקט
פרויקט זה מממש MCP Server ייעודי לשליפת תחזית מזג אוויר עבור ערים בישראל.
בניגוד למימוש המבוסס על API חיצוני, בפרויקט זה השליפה מתבצעת באמצעות Playwright, המדמה פעולה של משתמש אנושי בדפדפן: פתיחת אתר התחזית, הזנת שם עיר, בחירת העיר מתוך הרשימה הנפתחת, ושליפת נתוני התחזית מתוך דף התוצאות.
מטרת הפרויקט היא להדגים כיצד ניתן להרחיב את היכולות של LLM באמצעות MCP וכלי אוטומציה לדפדפן, כך שהמודל מסוגל לא רק לענות על שאלות אלא גם לבצע פעולות בפועל לצורך איסוף מידע.
מטרות לימודיות
במסגרת הפרויקט יושמו היכולות הבאות:
-
מימוש MCP Server עצמאי
-
חשיפת Tools לשימוש על ידי LLM
-
שימוש ב־Playwright לאוטומציית דפדפן
-
שליפת מידע מאתר אינטרנט והחזרתו בפורמט טקסטואלי נקי
טכנולוגיות
-
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 מותקן בנתיב אחר, יש לעדכן בהתאם.
ה־Tools שמומשו
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 קמ"ש
סיכום
הפרויקט מדגים כיצד ניתן להשתמש ב־MCP וב־Playwright כדי לאפשר ל־LLM לבצע אינטראקציה עם אתר אינטרנט אמיתי, לאסוף מידע בזמן אמת ולהחזיר תשובה ממוקדת ורלוונטית למשתמש.
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.