Weather MCP MY
天気MCPサーバー
マレーシアの公式オープンデータポータルのOpen APIから取得した気象情報を提供する、基本的なモデルコンテキストプロトコル(MCP)サーバーです。このサーバーにより、LLMは天気予報、警報、洪水に関連する水位、地震情報などを取得できます。
APIドキュメント: data.gov.my
コンポーネント
ツール
水位条件を取得する
指定された地区または州における洪水警報に関連する水位状況を取得します。地区と州の両方が指定されている場合は、地区が優先されます。地区または州が指定されていない場合は、そのフィールドに空の文字列を使用してください。
引数:
地区: 洪水警報状況を取得する指定された州内の地区の名前。
州: 洪水警報状況を取得するマレーシアの州の名前。
警告を取得する
指定された日付範囲内で発行された一般的な気象警報を取得します。
引数:
datetime_start: 気象警報を取得する開始時刻を
YYYY-MM-DD HH:MM:SS(両端を含む)形式で指定します。省略した場合は、現在の日付がデフォルトとなります。datetime_end: 気象警報の取得を終了する最終タイムスタンプ(
YYYY-MM-DD HH:MM:SS形式、両端を含む)を指定します。省略した場合は、現在の日付がデフォルトとなります。
天気予報を取得する
指定された日付範囲内の特定の場所の天気予報を取得します。
引数:
location_name: 予測を取得する場所の名前または識別子。
date_start: 天気予報の取得を開始する最初の日付(その日付を含む)。省略された場合は、現在の日付がデフォルトとなります。
date_end: 天気予報の取得を終了する最終日(その日付を含む)。省略された場合は、現在の日付がデフォルトとなります。
地震ニュースを入手
指定した日付範囲内で、指定した場所の地震ニュースを取得します。
引数:
場所: 地震が発生した場所の名前または識別子。
date_start: 地震ニュースの検索を開始する開始日(その日付を含む)。省略された場合は、現在の日付がデフォルトとなります。
date_end: 地震ニュースの検索を終了する最終日(その日付を含む)。省略された場合は、現在の日付がデフォルトとなります。
Related MCP server: Weather MCP Server
クロードデスクトップ構成
claude_desktop_config.jsonファイルに以下の行を追加してください。詳細については、 「Claude Desktop ユーザー向け」を参照してください。
uvの使用
{
"mcpServers": {
"weather": {
"command": "uv",
"args": [
"--directory",
"weather-my-mcp",
"run",
"weather.py"
]
}
}
}Dockerの使用
Dockerイメージを作成する
docker build . --tag weather-my-mcpclaude_desktop_config.jsonファイルを次のように編集します。{ "mcpServers": { "weather": { "command": "docker", "args": [ "run", "-i", "--rm", "weather-my-mcp" ] } } }
ライセンス
このMCPサーバーはMITライセンスに基づいてライセンスされています。つまり、MITライセンスの条件に従って、ソフトウェアを自由に使用、改変、配布することができます。詳細については、プロジェクトリポジトリのLICENSEファイルをご覧ください。
Available Tools
4 toolsget_earthquake_newsB
Fetch earthquake news for a given location within a specified date range.
Args:
location: Name or identifier of the place where the earthquake(s) occurred.
date_start: The earliest timestamp in the form of <YYYY-MM-DD HH:mm:ss> (inclusive) to start searching for earthquake news. If omitted, defaults to the current date.
date_end: The latest timestamp in the form of <YYYY-MM-DD HH:mm:ss> (inclusive) to stop searching for earthquake news. If omitted, defaults to the current date.
Inputs: location (required), datetime_start, datetime_end.
get_warningB
Retrieve general weather warnings issued within a specified date range.
Args:
datetime_start: The earliest timestamp in the form of <YYYY-MM-DD HH:mm:ss> (inclusive) from which to retrieve weather warnings. If omitted, defaults to the current date.
datetime_end: The latest timestamp in the form of <YYYY-MM-DD HH:mm:ss> (inclusive) to stop retrieving the weather warnings. If omitted, defaults to the current date.
Inputs: datetime_start, datetime_end.
get_water_level_conditionA
Retrieve the water level conditions associated with flood warnings for a specified district or state. If both district and state are provided, the district takes precedence. If district or state is not specified, use an empty string for that field.
Args:
district: The name of the district within the specified state for which to retrieve flood warning conditions.
state: The name of the state in Malaysia for which to retrieve flood warning conditions.
Inputs: district, state.
get_weather_forecastB
Retrieve a weather forecast for a specific location within a given date range.
Args:
location_name: The name or identifier of the location for which the forecast is retrieved.
date_start: The earliest date (inclusive) to begin retrieving the weather forecast. If omitted, defaults to the current date.
date_end: The latest date (inclusive) to stop retrieving the weather forecast. If omitted, defaults to the current date.
Inputs: location_name (required), date_start, date_end.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: get_earthquake_news for earthquake-related news, get_warning for general weather warnings, get_water_level_condition for flood-specific water level data, and get_weather_forecast for general weather predictions. There is no overlap in functionality, and the descriptions clearly differentiate their domains (earthquakes, warnings, floods, forecasts).
All tool names follow a consistent verb_noun pattern with 'get_' as the prefix, followed by a descriptive noun phrase (e.g., get_earthquake_news, get_warning, get_water_level_condition, get_weather_forecast). This uniformity makes the tool set predictable and easy to understand.
With 4 tools, the count is reasonable for a weather-focused server, covering key areas like earthquakes, warnings, floods, and forecasts. It is slightly lean but well-scoped, as each tool addresses a distinct aspect of weather and related hazards without redundancy.
The tool set covers specific weather-related data (earthquakes, warnings, floods, forecasts) but has notable gaps for a general 'Weather MCP' server. Missing operations include current weather conditions, historical data, or broader meteorological tools (e.g., humidity, wind speed), which limits comprehensive coverage of the weather domain.
Maintenance
Related MCP Connectors
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
Bangladesh's first national public data MCP server and REST API (mcp-bangladesh). Combines 8 live Bangladesh government datasets into a single free, zero-auth endpoint: DGHS dengue and measles stats, FFWC river flood levels (44 stations), BPDB power generation (40 plants), district weather, city air quality (AQI), 6 ministry notice boards, Bangladesh Bank forex/inflation, and geography.
An MCP server for weather information by @kulybaba
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceThis is a Model Context Protocol (MCP) server that provides weather information using the National Weather Service (NWS) API. Features Get weather alerts for a US state Get weather forecast for a specific location (using latitude and longitude)-
- AlicenseBqualityDmaintenanceAn MCP server that provides real-time weather information including temperature, humidity, wind speed, and sunrise/sunset times through the OpenWeatherMap API.2415MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides tools to fetch weather alerts for US states and forecasts based on latitude/longitude coordinates using the US National Weather Service API.21MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server that provides hourly and daily weather forecasts using the AccuWeather API.21,127 npm34TypeScriptMIT