Israeli Weather MCP Agent
Enables LLMs to retrieve Israeli weather forecasts by controlling a browser via Playwright and scraping data from an Israeli weather website.
README
Israeli Weather MCP Agent
פרויקט זה מממש MCP Server מתקדם השולט בדפדפן (באמצעות Playwright) כדי לשלוף נתוני תחזית מאתר מזג האוויר הישראלי, ומנגיש אותם ל-LLM כ-RAG (Retrieval-Augmented Generation) לצורך מתן תשובות אנושיות ומדויקות.
🎯 מטרת הפרויקט
המטרה היא להעניק ל-LLM "ידיים" דיגיטליות: במקום להסתמך על APIs סטטיים, ה-Agent לומד לתפעל דפדפן בזמן אמת, לנווט, להקליד ולחלץ נתונים מורכבים מהאינטרנט בדיוק כפי שמשתמש אנושי היה עושה זאת.
🛠️ ארגז הכלים (Tools)
הפרויקט מחלק את הפעולה האנושית ל-4 כלים המופעלים ע"י ה-LLM לפי הצורך:
| כלי (Tool) | תיאור הפעולה |
|---|---|
open_weather_forecast_israel |
מפעיל דפדפן Chromium, מגדיר חלון מלא ומנווט לאתר. |
enter_weather_forecast_city_israel |
מזין את שם העיר בשדה החיפוש עם השהייה (delay) לדימוי הקלדה אנושית. |
select_weather_forecast_city_israel |
בוחר את העיר מהצעות ה-Autocomplete וממתין לטעינת הדף. |
get_forecast_content_israel |
מבצע Scraping לתוכן הדף, מנקה טקסט מיותר ומעביר ל-LLM. |
📐 ארכיטקטורת המערכת
המערכת מבוססת על הפרדה בין ה-Host (המוח המנהל) לבין ה-MCP Server (הידיים המבצעות):
- Host: מנהל את שיחת ה-LLM (דרך OpenRouter), מנתח בקשות, ומחליט איזה כלי להפעיל.
- MCP Server: מקבל פקודות JSON-RPC, מפעיל את Playwright ומחזיר תוצאות טקסטואליות.
- פרוטוקול תקשורת: העברת הודעות מובנית המאפשרת הרחבה עתידית של כלים נוספים ללא שינוי ליבת המערכת.
🚀 הוראות הפעלה
- התקנת סביבת עבודה:
uv sync - הגדרת API Key: צרי קובץ
.envוהוסיפי:OPENROUTER_API_KEY=sk-or-v1-... - הרצה:
uv run host.py
💡 דוגמאות לשאלות ל-Agent
- "מה מזג האוויר בטבריה?"
- "איך המזג אוויר בירושלים היום?"
- "תבדוק לי בבקשה מה התחזית בבני ברק?"
פרויקט זה נבנה כחלק מהתנסות מעמיקה בפיתוח Agents מבוססי דפדפן ופרוטוקול MCP.
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.