天气数据服务

一个基于Open-Meteo的天气数据服务,通过Model Context Protocol(MCP)为AI助手提供全球天气情报,包括天气预报、历史数据、空气质量、海洋数据、地理编码、海拔和气候预测等功能。

  • by bhayanak
  • TypeScript
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 bhayanak/weather-mcp-server

使用说明

🌦️ Weather MCP Server

Global weather intelligence for AI assistants via the Model Context Protocol

An Open-Meteo powered MCP server providing 10 weather tools — forecasts, historical data, air quality, marine, geocoding, elevation, and climate projections at 1km resolution with 80+ years of archive. No API key required.


📦 包裹

软件包 描述 自述文件
@fazorboy/weather-mcp-server MCP服务器——独立CLI,npm包 📖 服务器README
weather-mcp-vscode-extension VS代码扩展--自动注册MCP服务器 📖 扩展README

⚡ 快速开始

选项1:VS代码扩展(推荐)

安装 气象MCP服务器 来自VS Code Marketplace的扩展——服务器会自动为Copilot和其他AI助手启动。

→ See 扩展README 了解详情。

选项2:独立MCP服务器

npx @fazorboy/weather-mcp-server

→ See 服务器README 用于Claude Desktop配置、环境变量等。


🔧 10天气工具

# 工具 说明
1 weather_get_forecast 每小时/每天预测长达16天
2 weather_get_current 实时条件
3 weather_get_historical 80多年的天气档案
4 weather_get_air_quality PM2.5、PM10、臭氧、NO₂,AQI
5 weather_get_marine 波高、周期、方向
6 weather_geocode_search 按名称搜索位置
7 weather_geocode_reverse 反向地理编码坐标
8 weather_get_elevation 海拔(90m DEM)
9 weather_get_climate_projection 气候预测(CMIP6)
10 weather_compare_locations 比较2-5个地点

📄 许可证

麻省理工学院 ©bhayanak