Weather Israel MCP
🌦️ Weather Israel MCP
一个 MCP(Model Context Protocol)项目,允许 LLM 直接从浏览器中获取以色列各城市的天气预报——无需 API,通过 Playwright 实现。
🎯 项目目标
Agent 不依赖内置 API,而是打开 Chrome 浏览器,导航到 weather2day.co.il 网站,搜索城市,从列表中选择它——然后读取页面内容并提供完整预报。
🛠️ 技术栈
工具 | 角色 |
定义 Tools 并运行 MCP 服务器 | |
控制浏览器——导航、输入、点击 | |
管理对话的语言模型 | |
管理环境和依赖 |
📁 项目结构
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 # תלויות הפרויקט🚀 运行项目
1. 安装依赖
uv sync2. 为 Playwright 安装 Chrome 浏览器
uv run playwright install chromium3. 配置 API 密钥
在目录中创建 .env 文件:
OPENAI_API_KEY=your_openai_api_key_here4. 运行
uv run host.py💬 问题示例
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?🧩 weather_Israel MCP 的 Tools
Tool | 描述 |
| 打开浏览器并导航到天气网站 |
| 在搜索字段中输入城市名称 |
| 从下拉列表中选择匹配的城市 |
| 读取页面内容并将预报返回给 LLM(RAG) |
🧩 weather_USA MCP 的 Tools
Tool | 描述 |
| 根据州代码返回天气警报(例如 |
| 根据地理坐标返回预报 |
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 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.
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/miri0612/weather-mcp-with-playwright'
If you have feedback or need assistance with the MCP directory API, please join our Discord server