Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Weather Assistant

FreeNot checked

Enables users to query weather information for Israel via Playwright browser automation and for the USA via a weather API, allowing an LLM to access real-time w

GitHubEmbed

About

Enables users to query weather information for Israel via Playwright browser automation and for the USA via a weather API, allowing an LLM to access real-time weather data and alerts.

README

פרויקט זה הוא דוגמה קטנה ופרקטית ליישום של MCP (Model Context Protocol) עם מודל שפה, שמאפשר למודל לעבוד עם כלים חיצוניים אמיתיים.

🎯 מה הפרויקט עושה?

הפרויקט מאפשר למשתמש לשאול שאלות על מזג האוויר, וה-LLM בוחר אילו כלים להשתמש כדי לענות על השאלה.

יש בו שני סוגי כלים:

  • עבור ישראל — נעשה שימוש ב-Playwright כדי לפתוח דפדפן, להזין שם עיר, לבחור את התוצאה ולחלץ את תוכן הדף.
  • עבור ארצות הברית — נעשה שימוש ב-API רשמי של מזג האוויר כדי לקבל תחזית ו-alerts.

הדבר מיועד להדגים איך מודל שפה יכול לא רק לענות, אלא גם לבצע פעולה בעולם האמיתי דרך כלים חיצוניים.


🎯 המטרה של הפרויקט

המטרה היא להראות כיצד אפשר להרחיב את יכולות של LLM באמצעות MCP Tools:

  • לאסוף מידע בזמן אמת
  • לבצע פעולות בדפדפן באופן אוטומטי
  • להעניק למודל קונטקסט נוסף מהאתר עצמו (RAG)
  • לשלב בין כלים שונים לממשק צ'אט אחד

זהו פרויקט לימודי שמדגים עקרונות של Agents, MCP Servers ו-Tool Calling.


🧩 מבנה הפרויקט

  • client.py — לקוח MCP גנרי שמתחבר לשרתים.
  • host.py — צ'אט Host שמקבל שאלות, שולח אותן למודל ומחבר בין ה-LLM לכלים.
  • weather_USA.py — שרת MCP עבור מזג אוויר בארצות הברית דרך API.
  • weather_Israel.py — שרת MCP עבור מזג אוויר בישראל דרך Playwright.

🛠️ טכנולוגיות בשימוש

  • Python
  • MCP SDK
  • Playwright
  • Anthropic API
  • UV

🚀 איך מריצים את הפרויקט

1. התקנת התלויות

uv sync

2. התקנת דפדפן עבור Playwright

uv run playwright install chromium

3. הגדרת מפתח API

ודאו שיש לכם משתנה סביבה בשם:

ANTHROPIC_API_KEY=your_api_key_here

4. הרצת הממשק

uv run host.py

💬 דוגמאות לשאלות שניתן לשאול

  • מה מזג האוויר היום בירושלים?
  • תבדוק לי בבקשה מה התחזית בטבריה.
  • האם ירד גשם היום בתל אביב?
  • מה המצב במזג האוויר באילת?
  • What is the weather in New York?

⚠️ דברים חשובים לשים לב אליהם

  • הפרויקט מיועד ללימוד והדגמה, לאו דווקא למוצר סופי יציב.
  • עבור ישראל, התהליך תלוי באתר חיצוני, ולכן הוא עלול להישבר אם האתר ישנה את מבנה הדף.
  • כדי שה-LLM יוכל לענות, צריך להיות מוגדר מפתח API תקין.

from github.com/yehudit-alfa/MCP_with-_Playwright_Project

Install Weather Assistant in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install mcp-weather-assistant

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add mcp-weather-assistant -- uvx mcp-client

FAQ

Is Weather Assistant MCP free?

Yes, Weather Assistant MCP is free — one-click install via Unyly at no cost.

Does Weather Assistant need an API key?

No, Weather Assistant runs without API keys or environment variables.

Is Weather Assistant hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Weather Assistant in Claude Desktop, Claude Code or Cursor?

Open Weather Assistant on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Weather Assistant with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All browse MCPs