Israeli Weather MCP Agent

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.

Category
Visit Server

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 (הידיים המבצעות):

  1. Host: מנהל את שיחת ה-LLM (דרך OpenRouter), מנתח בקשות, ומחליט איזה כלי להפעיל.
  2. MCP Server: מקבל פקודות JSON-RPC, מפעיל את Playwright ומחזיר תוצאות טקסטואליות.
  3. פרוטוקול תקשורת: העברת הודעות מובנית המאפשרת הרחבה עתידית של כלים נוספים ללא שינוי ליבת המערכת.

🚀 הוראות הפעלה

  1. התקנת סביבת עבודה: uv sync
  2. הגדרת API Key: צרי קובץ .env והוסיפי: OPENROUTER_API_KEY=sk-or-v1-...
  3. הרצה: uv run host.py

💡 דוגמאות לשאלות ל-Agent

  • "מה מזג האוויר בטבריה?"
  • "איך המזג אוויר בירושלים היום?"
  • "תבדוק לי בבקשה מה התחזית בבני ברק?"

פרויקט זה נבנה כחלק מהתנסות מעמיקה בפיתוח Agents מבוססי דפדפן ופרוטוקול MCP.

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured