Weather-MCP
An MCP server that provides weather forecast tools for Israel (via Playwright web scraping) and the USA (via NWS API), enabling LLM agents to answer weather queries in natural language.
README
š¤ļø ā ×Ŗ××××Ŗ ××× ××××ר ××שר××
פר×××§× ××××× ×פ××Ŗ×× MCP (Model Context Protocol): ×”××× (Agent) ××××”×” LLM ש××××¢ ×ש×××£ ×Ŗ××××Ŗ ××× ××××ר ×ער×× ××שר×× ×××ר×"×, ×××¢× ××Ŗ ×¢××× ××©×¤× ××פש××Ŗ ×צ'×× ×©××ר××× ×.
šÆ ××רת ×פר×××§×
××× ××Ŗ שרת MCP ×××¢××× ×©"××××" ××Ŗ ×-LLM ××צע ×ש××× ×©××× ×× ××××¢ ××× ā ×ש×××£ ×Ŗ××××Ŗ ××× ××××ר ××תר ×שר××× ×©××× ×× API.
××”××× ×¢××©× ×××Ŗ ××©×Ŗ× ×ר×××:
- שרת ×שר×× (
weather-Israel) ā ××××× ×פ××¤× ××××Ŗ× ×¢× Playwright: פ××Ŗ× ××Ŗ weather2day.co.il/forecast, ××פש ×¢×ר, ×××ר ×××Ŗ×, ××× ×××ׄ ××Ŗ ×Ŗ××× ××£ ××Ŗ××××Ŗ ××××× ×××Ŗ× ×-LLM ××× ×©××¢× × ×עצ×× (××שת RAG). - שרת ×ר×"× (
weather-USA) ā ש×××£ ×Ŗ××××Ŗ ××תרע××Ŗ ××Ø× ×-API ×רש×× ×©× ×-NWS (National Weather Service).
×-Host ×××ר ××Ŗ ×× ×שרת×× ×-LLM (Gemini, ××Ø× ×-API ××Ŗ×××-OpenAI), ×××”×£ ××× ××××××××Ŗ ××Ŗ ×× ×-Tools, ××ר×ׄ ×××××Ŗ צ'×× ×©×× ×-LLM ×××ר ××××× ××× ××שת×ש ××פע×× ×××Ŗ× ××× ××ר ×× ×¢× ×©××Ŗ×§×××Ŗ תש×××.
šļø ××× × ×פר×××§×
project-template/
āāā host.py # צ'×× ××ר××× × ×©×××ר ××Ŗ ×-LLM ××× ×©×Ø×Ŗ× ×-MCP
āāā client.py # MCP Client ×× ×Ø× (××Ŗ××ר ×שרת, ×ר×ׄ Tools)
āāā weather_USA.py # שרת MCP ××ר×"× ā ××Ø× NWS API
āāā weather_Israel.py # שרת MCP ××שר×× ā ××Ø× ××××× ×פ××¤× (Playwright)
āāā pyproject.toml # ×Ŗ×××××Ŗ ×פר×××§×
āāā README.md
×-Tools ×©× ×©×Ø×Ŗ ×שר××
| # | Tool | תפק×× |
|---|---|---|
| 1 | open_weather_forecast_israel |
פ××Ŗ× ×פ××¤× Chromium ××× ××× ××תר ××Ŗ××××Ŗ |
| 2 | enter_weather_forecast_city_israel |
××§××× ×©× ×¢×ר ×ש×× ×××פ×ש |
| 3 | select_weather_forecast_city_israel |
×××ר ××Ŗ ××¢×ר ×ר×ש×× × ×רש×××Ŗ ××צע××Ŗ |
| 4 | get_weather_forecast_content_israel |
×××ׄ ××Ŗ ×Ŗ××× ××£ ××Ŗ××××Ŗ (×××× iframes) ×××××ר ×××Ŗ× ×-LLM |
š” ש××שת ×ר×ש×× ×× ××××§×× ×××Ŗ× ×פ××¤× ××Ø× ××¦× ×××××× (
_page), ×× ×××× ×Ø×¦×× ××××Ŗ× ×Ŗ××××-שרת. ×ר×××¢× ×¢××ר ×¢× ×× ×-frames ×××£, ×× ××Ŗ××××Ŗ עצ×× × ××¢× ×Ŗ ××Ŗ××<iframe>ש×-body×ר××©× ×× ×Ø×××.
āļø ××Ŗ×§× × ××רצ×
×ר×ש××Ŗ ××§×××××Ŗ
- Python ā„ 3.13
- uv (×× ×× ××”×××× ×××Ŗ×××××Ŗ)
- ××¤×Ŗ× API ×-Gemini (×§×××Ŗ ××¤×Ŗ× ××× ××)
ש××××
# 1. ××Ŗ×§× ×Ŗ ××Ŗ×××××Ŗ ×××§××Ŗ ×”××××Ŗ ××¢××××
uv sync
# 2. ××Ŗ×§× ×Ŗ ×פ××¤× Chromium ×¢××ר Playwright
uv run playwright install chromium
×××רת ××©×Ŗ× × ×”××××
×¦×Ø× ×§××ׄ .env ××Ŗ××§×××Ŗ ×פר×××§×:
GEMINI_API_KEY=your_api_key_here
GEMINI_MODEL=gemini-2.0-flash
×רצ×
uv run host.py
×××ר ××פע×× ×Ŗ×פ××¢ ש×רת Query: ā ××§×××× ×©××× (×× quit ××צ×××).
š¬ ×××××××Ŗ ×ש××××Ŗ ש××”××× ××××¢ ××¢× ××Ŗ ×¢××××
×Ŗ××××Ŗ ××שר×× (Playwright)
× ×¤×Ŗ× ×××× ×פ××¤× ×©×× ×Ø×××× ××Ŗ ××£ ××Ŗ××××Ŗ, ××-LLM ×× ×¢×× × ×צ'××.
- "×× ××Ŗ××××Ŗ ××Ŗ× ××××?"
- "××× ××¢×××Ŗ צפ××××Ŗ ××ר ××ר×ש×××?"
- "××× ××× ×××××ר ××××¤× ××××?"
- "תפת×× ×× ××Ŗ ××Ŗ××××Ŗ ×××ר ש××¢"
×Ŗ××××Ŗ ××תרע××Ŗ ××ר×"× (NWS API)
- "What's the weather forecast for San Francisco?" (latitude/longitude)
- "Are there any weather alerts in California?"
- "Show me active weather alerts for NY"
š§© ××× ×× ×¢××× (תרש×× ×ר×××)
×שת×ש ā "×× ××Ŗ××××Ŗ ××Ŗ× ××××?"
ā
ā¼
Host āāāŗ LLM (Gemini) ×××ר Tools ××פע××
ā
ā¼ (שרת ×שר××, ××× ××ר ××)
open ā enter("×Ŗ× ××××") ā select ā get_content
ā
ā¼
×Ŗ××× ××Ŗ××××Ŗ ×××ר ×-LLM (RAG)
ā
ā¼
LLM ×××Ŗ× ×Ŗ×©××× ××©×¤× ××פש××Ŗ ×צ'×× āØ
š ×ער××Ŗ
- ×-LLM ××× ×× ×©××××× ×××× Tools ××פע×× ×××××× ×”×ר ā ×× ××Ŗ×× × ×××××§× ×§×©×××.
- ×©× × ×§××¦× ×©×Ø×Ŗ = ×©× × ×Ŗ×××××× × ×¤×Ø×××, ×××× ×× ××¦× ×ש××Ŗ×£ (××× ××פ××¤× ×פת××) ×× ××Ŗ×× ×©×Ø×Ŗ ××× ××××.
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.