Israeli 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., "@Israeli Weather MCPWhat's the weather 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.
š®š± Israeli Weather MCP with Playwright
š Overview
This project implements an MCP (Model Context Protocol) Server that allows an LLM to retrieve Israeli weather forecasts using Playwright browser automation.
Instead of using a weather API, the MCP opens the Weather2day website in a real browser, searches for the requested city, selects it, extracts the weather information from the page, and provides the extracted content back to the LLM.
The project demonstrates how MCP + Playwright + LLM can work together to give an AI agent browser-based capabilities.
Related MCP server: MCP-with-Playwright
šÆ Project Goals
The project was developed to practice:
Building an MCP Server independently.
Creating custom MCP Tools.
Using Playwright for browser automation.
Allowing an LLM to control a browser through MCP Tools.
Extracting and cleaning web page content.
Providing extracted page content back to the LLM so it can answer the user's question.
š ļø Technologies
Python
MCP SDK / FastMCP
Playwright
uv
Weather2day
LLM
š§© How It Works
The user asks the LLM for the weather in an Israeli city.
The LLM then uses the MCP Tools in the following order:
User
ā
LLM
ā
open_weather_forecast_israel
ā
enter_weather_forecast_city_israel
ā
select_weather_forecast_city_israel
ā
get_weather_forecast_content_israel
ā
Playwright extracts the page content
ā
Content is cleaned and returned to the LLM
ā
LLM answers the userš§ MCP Tools
1. open_weather_forecast_israel
Opens the Weather2day Israeli forecast page using Playwright.
https://www.weather2day.co.il/forecast2. enter_weather_forecast_city_israel
Receives a city name and enters it into the Weather2day search field.
Example:
city = "×× × ×רק"The Tool also waits for the city's autocomplete suggestions.
3. select_weather_forecast_city_israel
Selects the requested city from the visible autocomplete suggestions.
This completes the browser interaction required to reach the city's forecast page.
4. get_weather_forecast_content_israel
Extracts the visible content from the currently selected city's page.
The Tool:
Reads the page content using Playwright.
Removes empty lines.
Removes duplicate lines.
Limits the returned content size.
Returns the cleaned information to the LLM.
This Tool implements the second stage of the project, where the LLM receives information extracted from the web page and uses it to formulate the final answer.
š Project Structure
mcp/
āāā host.py
āāā client.py
āāā weather_Israel.py
āāā pyproject.toml
āāā README.mdweather_Israel.py
Contains the Israeli Weather MCP Server and its Playwright-based Tools.
host.py
Runs the terminal chat and connects the LLM to the MCP Tools.
client.py
Provides the MCP client functionality.
š Installation
1. Install dependencies
From the project directory:
uv sync2. Install the Playwright Chromium browser
uv run playwright install chromiumā¶ļø Running the Project
Start the Host:
uv run host.pyYou should see:
Israeli Weather MCP is ready.
Type 'exit' to quit.You can then ask questions about Israeli cities.
š¬ Example
User
give me the weather in Bne BrakMCP Tool calls
[CITY] Using city: ×× × ×רק
[MCP] Calling open_weather_forecast_israel({})
[MCP] Calling enter_weather_forecast_city_israel({'city': '×× × ×רק'})
[MCP] Calling select_weather_forecast_city_israel({})
[MCP] Calling get_weather_forecast_content_israel({})Assistant
Current temperature in Bne Brak: 25°C.
Wind speed: 5 km/h from the southwest.
Humidity: 87%.
Last updated: 07:00.The final answer is generated by the LLM using the weather information extracted from the browser page.
š” Example Questions
The Agent can answer questions such as:
What is the weather in Jerusalem?Give me the weather in Bne Brak.What's the current temperature in Tel Aviv?What is the humidity in Haifa?š Data Source
Weather information is retrieved from:
Weather2day ā Israeli Weather Forecast
https://www.weather2day.co.il/forecast
The project intentionally uses browser automation with Playwright instead of a dedicated weather API.
š¤ Why Playwright?
Playwright allows the MCP Server to interact with a real browser programmatically.
In this project, Playwright is responsible for:
Opening the website.
Entering the city.
Finding the city suggestion.
Clicking the city.
Reading the resulting forecast page.
This allows the LLM to interact with a website through MCP Tools without requiring manual browser interaction.
š§ MCP + Browser Automation
This project demonstrates how MCP can extend an LLM with capabilities beyond generating text.
The LLM decides which Tool to call, while the MCP Server handles the actual browser interaction.
This creates a simple architecture where:
LLM = decides what needs to be done
ā
MCP = provides the available Tools
ā
Playwright = performs the browser actions
ā
Weather2day = provides the weather data
ā
LLM = interprets the data and answersš Learning Outcomes
Through this project I practiced:
Creating an MCP Server with FastMCP.
Defining MCP Tools using decorators.
Connecting an LLM to custom MCP Tools.
Automating browser interactions with Playwright.
Handling dynamic web pages and autocomplete suggestions.
Extracting and cleaning web page content.
Returning web content to an LLM for further reasoning.
š©āš» Project
Built as part of an MCP + Playwright learning project focused on giving LLMs browser automation capabilities.
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
- Flicense-qualityCmaintenanceProvides MCP tools to fetch weather forecasts for Israeli cities using browser automation with Playwright, without relying on external APIs.Last updated
- FlicenseAqualityCmaintenanceAn MCP server that enables LLMs to automate browser interactions using Playwright to fetch real-time Israeli weather data.Last updated4
- Flicense-qualityCmaintenanceMCP server enabling LLMs to fetch Israeli weather forecasts by automating a browser with Playwright to scrape weather2day.co.il.Last updated
- FlicenseAqualityCmaintenanceAn MCP server that uses Playwright to browse Israeli weather forecasts from weather2day.co.il, allowing LLMs to control a browser to fetch real-time weather data.Last updated5
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
A Model Context Protocol server for Wix AI tools
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
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/ahuva-git/mcp-project'
If you have feedback or need assistance with the MCP directory API, please join our Discord server