israel-weather-mcp
Israel Weather MCP
项目描述
本项目实现了一个专用的 MCP Server,用于获取以色列各城市的天气预报。
与基于外部 API 的实现不同,本项目通过 Playwright 进行数据抓取,模拟用户在浏览器中的操作:打开天气预报网站、输入城市名称、从下拉列表中选择城市,并从结果页面中提取天气预报数据。
项目旨在演示如何通过 MCP 和浏览器自动化工具扩展 LLM 的能力,使模型不仅能够回答问题,还能实际执行操作以收集信息。
Related MCP server: mcp-playwright-weather-israel
学习目标
本项目实现了以下能力:
实现独立的 MCP Server
向 LLM 暴露 Tools 供其使用
使用 Playwright 进行浏览器自动化
从网站提取信息并以干净的文本格式返回
技术栈
Python
MCP SDK
Playwright
本地 Google Chrome
项目结构
project-template/
├── client.py
├── host.py
├── weather_USA.py
├── weather_Israel.py
└── README.md
运行方式
安装依赖:
uv sync
运行项目:
uv run host.py
配置本地 Chrome
本项目使用本地 Chrome 浏览器。
需要在 weather_Israel.py 文件中配置可执行文件的路径:
LOCAL_CHROME = r"C:\Program Files\Google\Chrome\Application\chrome.exe"
如果 Chrome 安装在其他路径,请相应更新。
已实现的 Tools
open_weather_forecast_israel
打开天气预报网站。
enter_weather_forecast_city_israel
在搜索框中输入城市名称。
select_weather_forecast_city_israel
从自动补全列表中选择城市。
get_weather_forecast_israel
执行完整的操作序列,从页面提取数据,并返回干净的预报供 LLM 使用。
查询示例
耶路撒冷的天气怎么样?
海法的天气预报是什么?
特拉维夫的天气怎么样?
输出示例
城市:耶路撒冷
温度:11.8°
最后更新:19:10
湿度:71%
风速:15.8 公里/小时
总结
本项目演示了如何使用 MCP 和 Playwright 让 LLM 与真实网站进行交互,实时收集信息,并向用户返回精准且相关的回答。
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
- FlicenseAqualityCmaintenanceAn MCP server that enables LLMs to automate browser interactions using Playwright to fetch real-time Israeli weather data.4
- FlicenseAqualityCmaintenanceMCP server enabling LLMs to fetch Israeli weather forecasts by automating a browser with Playwright to scrape weather2day.co.il.4
- FlicenseAqualityCmaintenanceAn MCP server that uses Playwright to scrape Israeli weather forecasts from weather2day.co.il by automating a real browser, enabling an LLM to answer questions about current conditions and hourly forecasts for Israeli cities.5
- FlicenseNot gradedqualityCmaintenanceMCP server that lets users obtain current Israeli city weather forecasts. It uses Playwright to browse Weather2day, extract the forecast page, and feed the cleaned data back to the LLM for natural language responses.
Related MCP Connectors
Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs
Zenrows MCP server — Fetch, Extract, Batch, and Browser Sessions for AI coding assistants
WeatherAPI.com MCP — wraps WeatherAPI.com (api.weatherapi.com)
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/YL4279/israel-weather-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server