Yen Ting/weather-my-mcp
Built by Metorial, the integration platform for agentic AI.
Yen Ting/weather-my-mcp
Server Summary
Get water level condition related to floods
Fetch real-time weather forecasts
Retrieve flood warnings
Access earthquake reports
A basic Model Context Protocol (MCP) server that provides weather information retrieved from Open API of Malaysia's official open data portal. This server enables LLMs to get weather forecast, warnings, water level associated with flood, and earthquake reports.
API Documentation: data.gov.my
get_water_level_condition
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:
get_warning
Retrieve general weather warnings issued within a specified date range.
Args:
YYYY-MM-DD HH:MM:SS
(inclusive) from which to retrieve weather warnings. If omitted, defaults to the current date.YYYY-MM-DD HH:MM:SS
(inclusive) to stop retrieving the weather warnings. If omitted, defaults to the current date.get_weather_forecast
Retrieve a weather forecast for a specific location within a given date range.
Args:
get_earthquake_news
Fetch earthquake news for a given location within a specified date range.
Args:
Add the following into claude_desktop_config.json
file. For more information, refer to For Claude Desktop Users.
uv
{
"mcpServers": {
"weather": {
"command": "uv",
"args": [
"--directory",
"weather-my-mcp",
"run",
"weather.py"
]
}
}
}
Create docker image
docker build . --tag weather-my-mcp
Edit claude_desktop_config.json
file as follows:
{
"mcpServers": {
"weather": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"weather-my-mcp"
]
}
}
}
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.