Skip to main content
Glama

šŸŒ¦ļø Weather Israel MCP

An MCP (Model Context Protocol) project that lets an LLM pull weather forecasts for cities in Israel — directly from the browser, no API, using Playwright.


šŸŽÆ Project Goal

Instead of relying on a built-in API, the Agent opens a Chrome browser, navigates to the weather2day.co.il site, searches for a city, selects it from the list — and then reads the page content and provides a full forecast.


šŸ› ļø Tech Stack

Tool

Role

MCP SDK

Defining Tools and running the MCP server

Playwright

Browser control — navigation, typing, clicking

OpenAI API

The language model that manages the conversation

uv

Environment and dependency management


šŸ“ Project Structure

project-template/
ā”œā”€ā”€ client.py          # MCP Client גנרי — ×ž×Ŗ×—×‘×Ø ×œ×©×Ø×Ŗ×™ MCP
ā”œā”€ā”€ host.py            # צ'אט ×˜×Ø×ž×™× ×œ ×©×ž×—×‘×Ø את הכל יחד
ā”œā”€ā”€ weather_USA.py     # MCP Server ×œ×Ŗ×—×–×™×Ŗ ארה"ב (×“×Ø×š NWS API)
ā”œā”€ā”€ weather_Israel.py  # MCP Server ×œ×Ŗ×—×–×™×Ŗ ×™×©×Ø××œ (×“×Ø×š Playwright)
ā”œā”€ā”€ .env               # ×ž×¤×Ŗ×— API (לא מועלה ל-Git)
└── pyproject.toml     # ×Ŗ×œ×•×™×•×Ŗ ×”×¤×Ø×•×™×§×˜

šŸš€ Running the Project

1. Installing Dependencies

uv sync

2. Installing Chrome Browser for Playwright

uv run playwright install chromium

3. Setting Up the API Key

Create a .env file in the directory:

OPENAI_API_KEY=your_openai_api_key_here

4. Running

uv run host.py

šŸ’¬ Example Questions

Query: what is the weather in Jerusalem?
Query: מה ×”×Ŗ×—×–×™×Ŗ לתל אביב?
Query: האם גשום היום בחיפה?
Query: what is the weather forecast for Bnei Brak?
Query: what are the weather alerts in NY?
Query: what is the forecast for latitude 40.7, longitude -74.0?

🧩 The weather_Israel MCP Tools

Tool

Description

open_weather_forecast_israel

Opens a browser and navigates to the weather site

enter_weather_forecast_city_israel

Types a city name in the search field

select_weather_forecast_city_israel

Selects the matching city from the dropdown list

extract_weather_data_from_page

Reads the page content and returns the forecast to the LLM (RAG)


🧩 The weather_USA MCP Tools

Tool

Description

get_alerts_in_USA

Returns weather alerts by state code (e.g. CA, NY)

get_forecast_in_USA

Returns a forecast by geographic coordinates

-
license - not tested
Not graded
quality - not tested
C
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

  • Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs

  • US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.

  • US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.

View all MCP Connectors

Latest Blog Posts

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/miri0612/weather-mcp-with-playwright'

If you have feedback or need assistance with the MCP directory API, please join our Discord server