weather-forecast-mcp
weather-forecast-mcp
气象厅短期预报查询服务(VilageFcstInfoService_2.0)作为 MCP(Model Context Protocol)服务器提供。可通过区域名或格点坐标(nx, ny)查询超短时实况、超短期预报、短期预报、预报版本4种操作。
Dataset Registry
显示名 | 提供部门 | 本 MCP 是否包含 | 服务名(SERVICE) |
气象厅短期预报查询服务(2.0) | 气象厅 | 包含 | VilageFcstInfoService_2.0 |
本 MCP 仅由单一 API(4种操作)组成,没有任何额外的数据集集成。
提供工具
工具名 | 操作 | 说明 |
| getUltraSrtNcst (超短时实况查询) | 以当前时刻为准的实况(观测值) |
| getUltraSrtFcst (超短期预报查询) | 6小时以内的短期预报 |
| getVilageFcst (短期预报查询) | 最长5天预报 |
| getFcstVersion (预报版本查询) | 确认预报文件最新版本 |
安装及部署
pip install -r requirements.txt
cp .env.example .env # WEATHER_FORECAST_SERVICE_KEY 값 입력
python server.pyfly.io 部署:
fly launch --no-deploy
fly secrets set WEATHER_FORECAST_SERVICE_KEY=발급받은키
flyctl deploy环境变量
变量名 | 说明 |
| 从公共数据门户获取的认证密钥(使用 Decoding 密钥) |
区域指定方式
输入 area_name(例如:“서울 중구”、“종로구 청운효자동”)或 nx/ny 格点坐标之一。
使用 area_name 时,会从内置的格点映射表(3,838个行政区域)中按 3级(읍면동)→ 2级(시군구)→ 1级(시도)的顺序自动匹配。
Rate Limit
由于是公开服务器特性,适用以下三级限制:
每分钟超过 3 次 → 429
1小时内违反 5 次 → 24小时封禁
每日超过 30 次 → 429
在 fly.io 多机(2台)环境中,rate limit 计数器可能按机器彼此独立,这一点作为已知的权衡予以接受(以可用性优先)。
实测确认事项
get_vilage_fcst的numOfRows默认设置为 1000(实测确认示例响应 totalCount 742~944 条,若默认值 10 则会被截断)dataType=JSON的错误响应实际以 JSON 格式返回(实测错误的 nx/ny 请求时也能正常收到resultCode: "10"的 JSON)。此外,为以防万一也实现了 XML<resultCode>/<resultMsg>正则表达式回退对
get_vilage_fcst指定无效的 base_time(例如:凌晨3点)时,会返回resultCode: "03"(NO_DATA)错误(是显式错误,而非空响应)实测确认了短期预报 +4天以后(延长期间)PCP/SNO/WSD 会以定性信息代码(1=少/2=一般/3=多)返回。当
fcstDate相对baseDate达到 +4天及以上时,服务器应用该代码表,并在响应中标示is_extended_period: trueget_fcst_version以与base_time相同的YYYYMMDDHHmm格式传入basedatetime,确认可正常工作(以 ftype=SHRT 为准)
许可证
MIT
参考
原始 API 规格:气象厅《短预报查询服务(2.0)Open API 活用指南》
格点-经纬度映射表:气象厅提供的 Excel 资料(2026年7月为准,3,838个行政区域)
仅提供韩国(南韩)地区(北韩及海外不提供)
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
OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org)
NOAA and ECMWF weather forecast MCP for discovery, validation, and GribStream OAuth queries.
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/hlucent/weather-forecast-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server