MCP.so
ログイン

Weather MCP Server

@yting27

Weather MCP Server について

Model Context Protocol (MCP) server that provides weather information from Malaysia Government's Open API

基本情報

カテゴリ

メディアとデザイン

ライセンス

MIT license

ランタイム

python

トランスポート

stdio

公開者

yting27

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "weather-my-mcp": {
      "command": "docker",
      "args": [
        "build",
        ".",
        "--tag",
        "weather-my-mcp"
      ]
    }
  }
}

ツール

4

district: The name of the district within the specified state for which to retrieve flood warning conditions.

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.

location_name: The name or identifier of the location for which the forecast is retrieved.

location: Name or identifier of the place where the earthquake(s) occurred.

概要

What is Weather MCP Server?

A basic Model Context Protocol (MCP) server that provides weather information retrieved from the Open API of Malaysia’s official open data portal. It enables LLMs to get weather forecasts, warnings, water levels associated with floods, and earthquake reports.

How to use Weather MCP Server?

Install and configure the server for use with Claude Desktop by editing the claude_desktop_config.json file. The server can be run using uv (with the command uv --directory weather-my-mcp run weather.py) or via Docker (build the image with docker build . --tag weather-my-mcp, then run the container).

Key features of Weather MCP Server

  • Get water level conditions and flood warnings by district or state
  • Retrieve general weather warnings within a specified date range
  • Obtain weather forecasts for a location by name and date
  • Fetch earthquake news for a given location and date range
  • Powered by Malaysia’s official open data API (data.gov.my)

Use cases of Weather MCP Server

  • An LLM assistant answering “What is the weather forecast for Kuala Lumpur tomorrow?”
  • Checking flood warnings and water levels for a district during monsoon season
  • Retrieving recent earthquake reports for a region in Malaysia
  • Combining weather warnings with other data in a multi‑step reasoning workflow

FAQ from Weather MCP Server

What data does the server use?

It uses the Open API from Malaysia’s official open data portal (data.gov.my). Weather forecasts, warnings, water level data, and earthquake reports are fetched from that source.

How do I run the server with Claude Desktop?

Add the server configuration to claude_desktop_config.json. You can use either uv (with the command shown in the README) or Docker (after building the image). Full instructions are provided in the README.

What are the runtime requirements?

The server is written in Python and can be run via uv or Docker. A typical MCP client (e.g., Claude Desktop) is needed to interact with the server.

Are there any authentication or API keys needed?

No. The README does not mention any authentication requirements. The server directly uses the publicly available open data API.

What transport does the server use?

The server communicates via standard I/O (stdio) as typical for MCP servers run through Claude Desktop. No network‑based transport is described.

コメント

「メディアとデザイン」の他のコンテンツ