Skip to main content
Glama
Shoshi-F

Israel Weather MCP Agent

by Shoshi-F
README.md
# Israel Weather MCP Agent

## Project Overview

This project is an MCP-based weather agent built with Python,
Playwright, and Anthropic Claude.

The user can ask about the weather in a city in Israel. The agent
automatically opens the Weather2Day website, searches for the requested
city, extracts the forecast information from the page, and uses the LLM
to answer directly in the chat.

## How It Works

1. The user enters a weather question.
2. The agent opens the Weather2Day forecast page.
3. The requested city is entered into the search field.
4. The first matching city is selected.
5. The forecast page is loaded.
6. The visible page content is extracted.
7. The extracted information is provided to Claude.
8. Claude answers based only on the website content.

## Technologies

- Python
- Model Context Protocol (MCP)
- Playwright
- Anthropic Claude
- uv
- Weather2Day

## MCP Tools

The MCP server exposes the following tools:

- `open_weather_forecast_israel`
- `enter_weather_forecast_city_israel`
- `select_weather_forecast_city_israel`
- `get_forecast_text`

## Installation

Install the project dependencies:

```bash
py -m uv sync