Weather MCP Server logo

Weather MCP Server

by yting27

A basic Model Context Protocol (MCP) server that provides weather information retrieved from Malaysia's official open data portal. This server enables LLMs to get weather forecast, warnings, water level associated with flood, and earthquake reports.

View on GitHub

Last updated: N/A

What is Weather MCP Server?

This is a Model Context Protocol (MCP) server that retrieves weather data from the Open API of Malaysia's official open data portal (data.gov.my). It provides weather forecasts, warnings, water level information related to floods, and earthquake reports.

How to use Weather MCP Server?

To use this server, you need to configure it within a compatible environment like Claude Desktop. Add the provided JSON configuration snippet to your claude_desktop_config.json file, specifying the command and arguments needed to run the weather.py script within the weather-my-mcp directory. The server exposes several tools that can be called with specific arguments to retrieve the desired weather information.

Key features of Weather MCP Server

  • Retrieves weather forecasts for specific locations.

  • Provides weather warnings within a specified date range.

  • Fetches water level conditions associated with flood warnings.

  • Gathers earthquake news for a given location and date range.

  • Uses Open API of Malaysia's official open data portal.

Use cases of Weather MCP Server

  • Integrating weather information into LLM-powered applications.

  • Providing real-time weather updates to users.

  • Monitoring flood risks based on water level conditions.

  • Tracking earthquake activity in specific areas.

  • Generating weather reports and summaries.

FAQ from Weather MCP Server

What data sources does this server use?

This server uses the Open API of Malaysia's official open data portal (data.gov.my).

What type of weather information can I retrieve?

You can retrieve weather forecasts, warnings, water level conditions associated with flood warnings, and earthquake reports.

How do I configure this server for use with Claude Desktop?

Add the provided JSON configuration snippet to your claude_desktop_config.json file, specifying the command and arguments needed to run the weather.py script.

What arguments are required for each tool?

Each tool has specific arguments, such as location name, date ranges, and district/state for flood warnings. Refer to the 'Components' section in the README for details.

Is this server free to use?

Yes, this server is licensed under the MIT License, which allows you to use, modify, and distribute the software freely, subject to the terms and conditions of the license.