Weather MCP Server
⛅ Weather MCP Server
协议: MCP | Python 3.11+ | 许可证: MIT | 状态: 活跃 ✅
一个健壮的项目,实现了**Model Context Protocol (MCP)**架构——一个由LLM驱动的自主代理,能够获取以色列和美国城市的最新天气预报,在终端聊天界面中提供流畅的自然语言响应。
项目概述
本项目通过授予对外部数据源的访问权限来扩展LLM能力,这些数据源并非原生可用:从缺乏官方公共API的网站检索实时预报。
系统使用两个互补的检索引擎来弥合这一差距:
# | 信息来源 | 机制与技术说明 |
1 | 以色列服务器( | 浏览器自动化(Playwright): 启动无头浏览器实例,导航至 |
2 | 美国服务器( | 官方API REST调用: 一个轻量级服务器,向National Weather Service (NWS)官方API执行直接REST请求。 |
Host层编排整个流程:将服务器连接到语言模型,动态暴露可用工具,并管理对话循环,直到模型产生准确的响应。
Related MCP server: Weather Israel MCP Server
工作流架构
User: "What's the weather in Tel Aviv?"
│
▼
Host ◄──► LLM autonomously selects and executes tools
│
▼
Israel Server (Sequential pipeline):
open ──► enter("Tel Aviv") ──► select ──► get_content
│
▼
Content analysis (RAG) by LLM
│
▼
✨ Final response generated in natural languageThis server cannot be deployed
Maintenance
Related MCP Connectors
Get current weather for any city and create images from your prompts. Streamline planning, reports…
Provide real-time and forecast weather information for locations in the United States using natura…
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables users to query weather information for Israel via Playwright browser automation and for the USA via a weather API, allowing an LLM to access real-time weather data and alerts.4-
- FlicenseBqualityDmaintenanceEnables users to query weather forecasts for Israeli cities through natural language using browser automation and Gemini.4-
- FlicenseAqualityDmaintenanceEnables LLMs to retrieve weather forecasts for Israeli cities via browser automation and USA weather via API, maintaining state across tool calls for sequential operations.4-
- FlicenseBqualityCmaintenanceEnables natural language weather queries for Israel and the USA, fetching real-time forecasts and alerts via web scraping and official APIs.4-