Israel Weather MCP Server

Israel Weather MCP Server

Enables LLMs to fetch real-time, localized weather forecasts for Israeli cities by using Playwright to autonomously navigate and scrape weather2day.co.il, including handling Hebrew queries and stateful web interactions.

Category
Visit Server

README

๐ŸŒค๏ธ Israel Weather MCP Server

A custom Model Context Protocol (MCP) server that empowers LLMs to fetch real-time, highly accurate localized weather forecasts for Israeli cities.

Instead of relying on generic global APIs, this agent utilizes Playwright to autonomously navigate to the local Israeli weather portal (weather2day.co.il), interact with the DOM, and extract live data (RAG) directly into the chat context.

๐ŸŽฏ Project Purpose

This project explores the integration of autonomous browser control within an AI Agent architecture. The main learning objectives achieved are:

  1. Custom MCP Server Development: Building a dedicated server to expose specific tools to an LLM.
  2. Browser Automation via AI: Using Microsoft's Playwright to give the LLM "hands" and "eyes" on the webโ€”allowing it to navigate, search, select from autocomplete dropdowns, and scrape data dynamically.
  3. Overcoming Language & State Barriers: Handling stateful web interactions (waiting for animations, typing sequentially) and ensuring the LLM correctly translates queries to Hebrew before interacting with local UI elements.

๐Ÿ› ๏ธ Technology Stack

  • MCP SDK: The official Anthropic library for defining the protocol and exposing tools.
  • Playwright: Modern browser automation tool used to programmatically control Chromium.
  • uv: Ultra-fast Python package and environment manager.

๐Ÿš€ How to Run

1. Prerequisites

Ensure you have uv installed on your system.

  • Windows (PowerShell): powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
  • Mac/Linux: curl -LsSf https://astral.sh/uv/install.sh | sh

2. Setup the Environment

Clone the repository, navigate to the project-template folder, and sync the dependencies:

uv sync

3. Install the Browser Engine

Install the Chromium browser required by Playwright:

uv run playwright install chromium

4. Start the Host

Run the interactive terminal chat to start communicating with the Agent:

uv run host.py

๐Ÿ’ฌ Example Queries

Once the Host is running, you can ask the Agent questions like:

  • "What is the forecast in Jerusalem?"
  • "ืžื” ืžื–ื’ ื”ืื•ื•ื™ืจ ื‘ืชืœ ืื‘ื™ื‘ ื”ื™ื•ื?"
  • "Is it going to rain in Haifa tomorrow?"

Watch the magic happen: The Agent will automatically open Chromium, translate the city name to Hebrew, search for it, select the correct autocomplete option, scrape the latest forecast, and provide you with a clean, localized answer right in the terminal!


Developed by SARA DEI

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured