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.
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:
- Custom MCP Server Development: Building a dedicated server to expose specific tools to an LLM.
- Browser Automation via AI: Using Microsoft's
Playwrightto give the LLM "hands" and "eyes" on the webโallowing it to navigate, search, select from autocomplete dropdowns, and scrape data dynamically. - 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
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.