Israel Weather MCP

Israel Weather MCP

Enables LLMs to query real-time weather data in Israel by automating a browser to scrape weather2day.co.il.

Category
Visit Server

README

Israel Weather MCP Server šŸŒ¦ļøšŸ‡®šŸ‡±

×¤×Ø×•×™×§×˜ זה מממש שרת MCP (Model Context Protocol) ×”×ž××¤×©×Ø למודלי שפה (LLMs) ×œ×’×©×Ŗ ישירות ×œ× ×Ŗ×•× ×™ מזג אוויר עדכניים ×‘×™×©×Ø××œ ×‘××ž×¦×¢×•×Ŗ אוטומציה של דפדפן (Playwright).

בניגוד לשימוש ב-API ×”×˜× ×“×Ø×˜×™, השרת פותח דפדפן, מנווט לאתר Weather2Day, ומחלׄ את המידע ×”×Ø×œ×•×•× ×˜×™ בצורה ×“×™× ×ž×™×Ŗ.

šŸš€ תכונות עיקריות

  • אוטומציה מלאה: ניווט באתר, ×”×Ŗ×ž×•×“×“×•×Ŗ עם ×—×œ×•× ×™×•×Ŗ Cookies וחיפוש ×¢×Ø×™×.
  • ×™×›×•×œ×•×Ŗ RAG: חילוׄ ×Ŗ×•×›×Ÿ טקהטואלי מהדף כדי לאפשר למודל להפק תשובות ×ž×¤×•×Ø×˜×•×Ŗ ×•×ž×“×•×™×§×•×Ŗ.
  • ממשק FastMCP: פיתוח ×ž×”×™×Ø ונוח על בהיה ה-SDK ×”×Ø×©×ž×™.

šŸ› ļø ×˜×›× ×•×œ×•×’×™×•×Ŗ

  • Python 3.10+
  • MCP SDK
  • Playwright (אוטומציה של דפדפן)
  • FastMCP

šŸ“¦ ×”×Ŗ×§× ×” והרצה

  1. ×”× ×›×Ø×•×Ÿ הביבת העבודה: ודאו ×©×ž×•×Ŗ×§×Ÿ אצלכם uv והריצו:

    uv sync
    
    
  2. ×”×Ŗ×§× ×Ŗ דפדפן Playwright הריצו את הפקודה הבאה כדי ×œ×”×Ŗ×§×™×Ÿ את המנוע של Chromium הדרוש ×œ×¤×¢×•×œ×Ŗ ההוכן:

uv run playwright install chromium

3. הרצת ה-Host
כדי ×œ×”×Ŗ×—×™×œ ×œ×“×‘×Ø עם ה-Agent, הריצו את קובׄ ×”×ž××Ø×— (Host):

Bash
uv run host.py
šŸ” ×“×•×’×ž××•×Ŗ ×œ×©××œ×•×Ŗ שה-Agent יודע ×œ×¢× ×•×Ŗ
×œ××—×Ø הרצת ה-Host, ×Ŗ×•×›×œ×• לשאול ×‘×˜×Ø×ž×™× ×œ ×©××œ×•×Ŗ כגון:

"מה מזג האוויר עכשיו ×‘×™×Ø×•×©×œ×™×?"

"האם צפוי גשם בבני ברק ביומיים ×”×§×Ø×•×‘×™×?"

"תן לי ×Ŗ×—×–×™×Ŗ ×ž×¤×•×Ø×˜×Ŗ לתל אביב להיום."

"מה ×”×˜×ž×¤×Ø×˜×•×Ø×” ×”×ž×§×”×™×ž×œ×™×Ŗ ×”×ž×Ŗ×•×›× × ×Ŗ בחיפה?"

šŸ—ļø מבנה ×”×¤×Ø×•×™×§×˜
weather_Israel.py: שרת ה-MCP המכיל את הכלים (Tools) לשליטה בדפדפן וחילוׄ ×”×Ŗ×•×›×Ÿ ×ž×”××Ŗ×Ø×™× ×”×Ø×œ×•×•× ×˜×™×™×.

host.py: הממשק ×”×ž×Ø×›×–×™ ×©×ž×—×‘×Ø בין ה-LLM (Claude) לבין שרתי ה-MCP.

client.py: ×ž×—×œ×§×Ŗ לקוח גנרית ×”×ž× ×”×œ×Ŗ את התקשורת מול ×”×©×Ø×Ŗ×™×.

āš ļø הערה ×œ×ž×©×Ŗ×ž×©×™ × ×˜×¤×Ø×™
הקוד כולל הגדרות ×Ŗ×•××ž×•×Ŗ עבור ×ž×©×Ŗ×ž×©×™ NetFree (ביטול ××™×ž×•×Ŗ SSL ב-httpx) כדי לאפשר עבודה חלקה עם ה-API של Anthropic וגלישה ×‘××Ŗ×Ø×™× בהביבה ×ž×”×•× × ×Ŗ.

šŸ’” דגשים טכניים
שימוש ב-RAG: ההוכן ×ž×©×Ŗ×ž×© בכלי get_weather_page_content כדי לחלׄ טקהט גולמי ×ž×”××Ŗ×Ø ×•×œ×”×¢×©×™×Ø את הקונטקהט של המודל במידע עדכני.

אוטומציה: ×”×¤×Ø×•×™×§×˜ מדמה ×¤×¢×•×œ×•×Ŗ אנושיות כמו הקלדה ×•×”×ž×Ŗ× ×” לאלמנטים (Selectors) כדי להבטיח ××ž×™× ×•×Ŗ גבוהה ×‘×©×œ×™×¤×Ŗ ×”× ×Ŗ×•× ×™×.

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
Qdrant Server

Qdrant Server

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

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