Skip to main content
Glama
Weather MCP MY

Weather MCP MY

by yting27

Servidor MCP meteorológico

Un servidor básico de Protocolo de Contexto de Modelo (MCP) que proporciona información meteorológica obtenida de la API abierta del portal oficial de datos abiertos de Malasia. Este servidor permite a los LLM obtener pronósticos meteorológicos, alertas, niveles de agua asociados a inundaciones e informes de terremotos.

Documentación de la API: data.gov.my

Componentes

Herramientas

  1. obtener_la_condición_del_nivel_del_agua

    • Recuperar las condiciones del nivel del agua asociadas con las alertas de inundación para un distrito o estado específico. Si se especifican tanto el distrito como el estado, el distrito tiene prioridad. Si no se especifica el distrito o el estado, utilice una cadena vacía para ese campo.

    • Argumentos:

      • distrito: el nombre del distrito dentro del estado especificado para el cual se recuperarán las condiciones de alerta de inundación.

      • estado: el nombre del estado de Malasia para el cual desea recuperar las condiciones de alerta de inundación.

  2. obtener_advertencia

    • Recupere alertas meteorológicas generales emitidas dentro de un rango de fechas específico.

    • Argumentos:

      • datetime_start: La fecha más temprana en formato YYYY-MM-DD HH:MM:SS (inclusive) de la que se obtendrán las alertas meteorológicas. Si se omite, se toma la fecha actual por defecto.

      • datetime_end: La última marca de tiempo en formato YYYY-MM-DD HH:MM:SS (inclusive) para detener la recuperación de las alertas meteorológicas. Si se omite, se usa la fecha actual por defecto.

  3. obtener el pronóstico del tiempo

    • Recupere un pronóstico del tiempo para una ubicación específica dentro de un rango de fechas determinado.

    • Argumentos:

      • location_name: El nombre o identificador de la ubicación para la que se recupera el pronóstico.

      • date_start: La fecha más temprana (inclusive) para comenzar a recuperar el pronóstico del tiempo. Si se omite, se toma la fecha actual por defecto.

      • date_end: La fecha límite (inclusive) para finalizar la recuperación del pronóstico del tiempo. Si se omite, se toma la fecha actual por defecto.

  4. obtener noticias sobre terremotos

    • Obtener noticias sobre terremotos para una ubicación determinada dentro de un rango de fechas específico.

    • Argumentos:

      • Ubicación: Nombre o identificador del lugar donde ocurrió el(los) sismo(s).

      • date_start: La fecha más temprana (inclusive) para iniciar la búsqueda de noticias sobre terremotos. Si se omite, se toma la fecha actual por defecto.

      • date_end: La fecha límite (inclusive) para finalizar la búsqueda de noticias sobre terremotos. Si se omite, se usa la fecha actual por defecto.

Related MCP server: Weather MCP Server

Configuración de Claude Desktop

Agregue lo siguiente al archivo claude_desktop_config.json . Para más información, consulte " Para usuarios de Claude Desktop" .

Usando uv

{
    "mcpServers": {
        "weather": {
            "command": "uv",
            "args": [
                "--directory",
                "weather-my-mcp",
                "run",
                "weather.py"
            ]
        }
    }
}

Usando Docker

  1. Crear una imagen de Docker

    docker build . --tag weather-my-mcp
  2. Edite el archivo claude_desktop_config.json de la siguiente manera:

    {
        "mcpServers": {
            "weather": {
                "command": "docker",
                "args": [
                    "run",
                    "-i",
                    "--rm",
                    "weather-my-mcp"
                ]
            }
        }
    }

Licencia

Este servidor MCP cuenta con la licencia MIT. Esto significa que puede usar, modificar y distribuir el software libremente, sujeto a los términos y condiciones de la licencia MIT. Para más detalles, consulte el archivo de LICENCIA en el repositorio del proyecto.

Available Tools

4 tools
get_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

    A3.5/5.0

    Scored across 4 tools

    Disambiguation5/5

    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).

    Naming Consistency5/5

    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.

    Tool Count4/5

    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.

    Completeness3/5

    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

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      This 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)
      -
    • A
      license
      B
      quality
      D
      maintenance
      An MCP server that provides real-time weather information including temperature, humidity, wind speed, and sunrise/sunset times through the OpenWeatherMap API.
      24
      1
      5
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      A 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.
      2
      1
      MIT