Weather-MCP
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., "@Weather-MCPWhat's the weather forecast in Tel Aviv?"
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.
š¤ļø ā Israel Weather Forecast
A learning project in MCP (Model Context Protocol) development: an LLM-based agent that can fetch weather forecasts for cities in Israel and the US, and answer in free language in the terminal chat.
šÆ Project Goal
Build a dedicated MCP server that "teaches" the LLM to perform a task it can't do on its own ā fetch a weather forecast from an Israeli site that has no API.
The agent does this in two ways:
Israel server (
weather-Israel) ā automates a real browser with Playwright: opens weather2day.co.il/forecast, searches for a city, selects it, and then extracts the forecast page content and feeds it to the LLM to answer on its own (RAG approach).US server (
weather-USA) ā fetches forecast and alerts via the official NWS (National Weather Service) API.
The Host connects all servers to the LLM (Gemini, via the OpenAI-compatible API), automatically collects all the Tools from them, and runs a chat loop where the LLM chooses which tool to use and activates them one by one until an answer is received.
Related MCP server: mcp-playwright-weather-israel
šļø Project Structure
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.mdIsrael Server Tools
# | Tool | Role |
1 |
| Opens a Chromium browser and navigates to the forecast site |
2 |
| Types a city name in the search field |
3 |
| Selects the first city from the suggestions list |
4 |
| Extracts the forecast page content (including iframes) and returns it to the LLM |
š” The first three share the same browser via a global state (
_page), because they all run in the same server process. The fourth iterates over all frames in the page, because the forecast itself loads inside an<iframe>that the mainbodydoesn't see.
āļø Installation and Running
Prerequisites
Python ā„ 3.13
uv (environment and dependency manager)
Gemini API key (get a free key)
Steps
# 1. ××Ŗ×§× ×Ŗ ××Ŗ×××××Ŗ ×××§××Ŗ ×”××××Ŗ ××¢××××
uv sync
# 2. ××Ŗ×§× ×Ŗ ×פ××¤× Chromium ×¢××ר Playwright
uv run playwright install chromiumSetting Environment Variables
Create a .env file in the project directory:
GEMINI_API_KEY=your_api_key_here
GEMINI_MODEL=gemini-2.0-flashRunning
uv run host.pyAfter launching, a Query: prompt will appear ā type a question (or quit to exit).
š¬ Example Questions the Agent Can Answer
Israel Forecast (Playwright)
A browser window opens showing the forecast page, and the LLM also answers in the chat.
"What's the forecast in Tel Aviv?"
"How many degrees are expected tomorrow in Jerusalem?"
"How's the weather in Haifa today?"
"Open the forecast for Be'er Sheva for me"
US Forecast and Alerts (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"
š§© How It Works (Flowchart)
×שת×ש ā "×× ××Ŗ××××Ŗ ××Ŗ× ××××?"
ā
ā¼
Host āāāŗ LLM (Gemini) ×××ר Tools ××פע××
ā
ā¼ (שרת ×שר××, ××× ××ר ××)
open ā enter("×Ŗ× ××××") ā select ā get_content
ā
ā¼
×Ŗ××× ××Ŗ××××Ŗ ×××ר ×-LLM (RAG)
ā
ā¼
LLM ×××Ŗ× ×Ŗ×©××× ××©×¤× ××פש××Ŗ ×צ'×× āØš Notes
The LLM is the one that decides which Tools to run and in what order ā we didn't write hard-coded logic.
Two server files = two separate processes, so any shared state (like the open browser) must live inside only one server.
This server cannot be installed
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
- FlicenseAqualityCmaintenanceMCP server enabling LLMs to fetch Israeli weather forecasts by automating a browser with Playwright to scrape weather2day.co.il.4
- FlicenseAqualityCmaintenanceAn MCP server that uses Playwright to scrape Israeli weather forecasts from weather2day.co.il by automating a real browser, enabling an LLM to answer questions about current conditions and hourly forecasts for Israeli cities.5
- FlicenseNot gradedqualityCmaintenanceMCP server that lets users obtain current Israeli city weather forecasts. It uses Playwright to browse Weather2day, extract the forecast page, and feed the cleaned data back to the LLM for natural language responses.
- FlicenseAqualityCmaintenanceAn MCP server that provides real-time weather data for Israel by automating browser searches via Playwright. It allows LLMs to get current forecasts for Israeli cities through natural language queries.4
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server exposing the Backtest360 engine API as tools for AI agents.
Hosted MCP server to manage a restaurant menu from AI agents - 39 tools over the DuckHub API.
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/Efrat-Fr/Weather-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server