surface_tools
Surface observation tools for MCP server.
This module contains tool functions for surface weather observations including: - AWS (Automated Weather Station) - ASOS (Automated Synoptic Observing System) - UV radiation - Snow depth - North Korea observations - AWS Open API - Season observations
get_asos_station_list(station_id=0)
¶
Get ASOS (synoptic) station information.
Provides metadata about ASOS observation stations including location, altitude, and operational status.
Parameters:
-
station_id(int, default:0) –Weather station ID (0 for all stations, default: 0)
Returns:
-
str–ASOS station information in JSON format
Source code in python/src/kma_mcp/tools/surface_tools.py
get_aws_current_weather(station_id=0)
¶
Get current AWS real-time weather observation data.
AWS provides real-time weather data from automated weather stations for disaster prevention monitoring.
Parameters:
-
station_id(int, default:0) –AWS station ID (0 for all stations, default: 0)
Returns:
-
str–Current AWS weather observation data in JSON format
Source code in python/src/kma_mcp/tools/surface_tools.py
get_aws_minutely_weather(start_time, end_time, station_id=0)
¶
Get AWS minutely weather observation data for a time period.
Parameters:
-
start_time(str) –Start time in 'YYYYMMDDHHmm' format (e.g., '202501011200')
-
end_time(str) –End time in 'YYYYMMDDHHmm' format
-
station_id(int, default:0) –AWS station ID (0 for all stations)
Returns:
-
str–Minutely AWS weather observation data for the period in JSON format
Example
get_aws_minutely_weather('202501011200', '202501011300', 108)
Source code in python/src/kma_mcp/tools/surface_tools.py
get_aws_oa_current(longitude, latitude)
¶
Get current AWS objective analysis data for a location.
AWS Objective Analysis provides gridded meteorological data derived from AWS observations through objective analysis techniques.
Parameters:
-
longitude(float) –Longitude coordinate (e.g., 127.0 for Seoul)
-
latitude(float) –Latitude coordinate (e.g., 37.5 for Seoul)
Returns:
-
str–Current AWS objective analysis data in JSON format
Source code in python/src/kma_mcp/tools/surface_tools.py
get_aws_oa_period(start_time, end_time, longitude, latitude)
¶
Get AWS objective analysis data for a location over a time period.
Parameters:
-
start_time(str) –Start time in 'YYYYMMDDHHmm' format (e.g., '202501011200')
-
end_time(str) –End time in 'YYYYMMDDHHmm' format
-
longitude(float) –Longitude coordinate
-
latitude(float) –Latitude coordinate
Returns:
-
str–AWS objective analysis data for the period in JSON format
Example
get_aws_oa_period('202501011200', '202501011800', 127.0, 37.5)
Source code in python/src/kma_mcp/tools/surface_tools.py
get_aws_station_list(station_id=0)
¶
Get AWS station information.
Provides metadata about AWS observation stations including location, altitude, and operational status.
Parameters:
-
station_id(int, default:0) –Weather station ID (0 for all stations, default: 0)
Returns:
-
str–AWS station information in JSON format
Source code in python/src/kma_mcp/tools/surface_tools.py
get_nk_current_weather(station_id=0)
¶
Get current North Korea meteorological observation data.
North Korea observations provide meteorological data from weather stations in North Korea for regional weather analysis and monitoring.
Parameters:
-
station_id(int, default:0) –Weather station ID (0 for all stations, default: 0)
Returns:
-
str–Current North Korea meteorological observation data in JSON format
Source code in python/src/kma_mcp/tools/surface_tools.py
get_nk_daily_weather(start_date, end_date, station_id=0)
¶
Get daily North Korea meteorological observation data for a date range.
Parameters:
-
start_date(str) –Start date in 'YYYYMMDD' format (e.g., '20250101')
-
end_date(str) –End date in 'YYYYMMDD' format
-
station_id(int, default:0) –Weather station ID (0 for all stations)
Returns:
-
str–Daily North Korea weather data for the period in JSON format
Example
get_nk_daily_weather('20250101', '20250131', 108)
Source code in python/src/kma_mcp/tools/surface_tools.py
get_nk_hourly_weather(start_time, end_time, station_id=0)
¶
Get hourly North Korea meteorological observation data for a time period.
Parameters:
-
start_time(str) –Start time in 'YYYYMMDDHHmm' format (e.g., '202501011200')
-
end_time(str) –End time in 'YYYYMMDDHHmm' format
-
station_id(int, default:0) –Weather station ID (0 for all stations)
Returns:
-
str–Hourly North Korea weather data for the period in JSON format
Example
get_nk_hourly_weather('202501011200', '202501011800', 108)
Source code in python/src/kma_mcp/tools/surface_tools.py
get_season_by_year(year, station_id=0)
¶
Get seasonal observation data for a specific year.
Parameters:
-
year(int) –Year (e.g., 2025)
-
station_id(int, default:0) –Weather station ID (0 for all stations)
Returns:
-
str–Seasonal observation data for the year in JSON format
Example
get_season_by_year(2025, 108)
Source code in python/src/kma_mcp/tools/surface_tools.py
get_season_current_year(station_id=0)
¶
Get seasonal observation data for the current year.
Seasonal observations monitor phenological events such as cherry blossom flowering, autumn foliage, and other seasonal indicators.
Parameters:
-
station_id(int, default:0) –Weather station ID (0 for all stations, default: 0)
Returns:
-
str–Seasonal observation data for the current year in JSON format
Source code in python/src/kma_mcp/tools/surface_tools.py
get_season_period(start_year, end_year, station_id=0)
¶
Get seasonal observation data for a year range.
Parameters:
-
start_year(int) –Start year (e.g., 2020)
-
end_year(int) –End year (e.g., 2025)
-
station_id(int, default:0) –Weather station ID (0 for all stations)
Returns:
-
str–Seasonal observation data for the period in JSON format
Example
get_season_period(2020, 2025, 108)
Source code in python/src/kma_mcp/tools/surface_tools.py
get_snow_current_depth()
¶
Get current snow depth observation data.
Snow depth observations monitor snow accumulation for winter weather analysis, transportation safety, and disaster prevention.
Returns:
-
str–Current snow depth observation data in JSON format
Source code in python/src/kma_mcp/tools/surface_tools.py
get_snow_period_depth(start_time, end_time)
¶
Get snow depth observation data for a time period.
Parameters:
-
start_time(str) –Start time in 'YYYYMMDDHHmm' format (e.g., '202501011200')
-
end_time(str) –End time in 'YYYYMMDDHHmm' format
Returns:
-
str–Snow depth data for the period in JSON format
Example
get_snow_period_depth('202501011200', '202501011800')
Source code in python/src/kma_mcp/tools/surface_tools.py
get_uv_current_index(station_id=0)
¶
Get current UV radiation index observation data.
UV radiation observations monitor ultraviolet radiation levels for public health protection and sun safety guidance.
Parameters:
-
station_id(int, default:0) –Weather station ID (0 for all stations, default: 0)
Returns:
-
str–Current UV index observation data in JSON format