MCP Weather Assistant
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Weather Assistantwhat's the weather in Jerusalem?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🌤️ MCP Weather Assistant
פרויקט זה הוא דוגמה קטנה ופרקטית ליישום של MCP (Model Context Protocol) עם מודל שפה, שמאפשר למודל לעבוד עם כלים חיצוניים אמיתיים.
🎯 מה הפרויקט עושה?
הפרויקט מאפשר למשתמש לשאול שאלות על מזג האוויר, וה-LLM בוחר אילו כלים להשתמש כדי לענות על השאלה.
יש בו שני סוגי כלים:
עבור ישראל — נעשה שימוש ב-Playwright כדי לפתוח דפדפן, להזין שם עיר, לבחור את התוצאה ולחלץ את תוכן הדף.
עבור ארצות הברית — נעשה שימוש ב-API רשמי של מזג האוויר כדי לקבל תחזית ו-alerts.
הדבר מיועד להדגים איך מודל שפה יכול לא רק לענות, אלא גם לבצע פעולה בעולם האמיתי דרך כלים חיצוניים.
Related MCP server: Weather MCP Agent
🎯 המטרה של הפרויקט
המטרה היא להראות כיצד אפשר להרחיב את יכולות של 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 sync2. התקנת דפדפן עבור Playwright
uv run playwright install chromium3. הגדרת מפתח API
ודאו שיש לכם משתנה סביבה בשם:
ANTHROPIC_API_KEY=your_api_key_here4. הרצת הממשק
uv run host.py💬 דוגמאות לשאלות שניתן לשאול
מה מזג האוויר היום בירושלים?
תבדוק לי בבקשה מה התחזית בטבריה.
האם ירד גשם היום בתל אביב?
מה המצב במזג האוויר באילת?
What is the weather in New York?
⚠️ דברים חשובים לשים לב אליהם
הפרויקט מיועד ללימוד והדגמה, לאו דווקא למוצר סופי יציב.
עבור ישראל, התהליך תלוי באתר חיצוני, ולכן הוא עלול להישבר אם האתר ישנה את מבנה הדף.
כדי שה-LLM יוכל לענות, צריך להיות מוגדר מפתח API תקין.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityCmaintenanceEnables users to query real-time weather data for Israeli cities using natural language, automatically scraping a weather website via Playwright and returning AI-generated answers.Last updated
- Flicense-qualityDmaintenanceEnables querying real-time weather data for Israeli cities through natural language, using Playwright to scrape weather2day and Gemini LLM to answer.Last updated
- FlicenseBqualityCmaintenanceEnables LLMs to query real-time weather data in Israel by automating a browser to scrape weather2day.co.il.Last updated4
- Flicense-qualityBmaintenanceEnables fetching weather forecasts for the USA via NWS API and for Israel via browser automation using Playwright.Last updated
Related MCP Connectors
US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
Get US weather forecasts, active alerts, and current observations.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yehudit-alfa/MCP_with-_Playwright_Project'
If you have feedback or need assistance with the MCP directory API, please join our Discord server