# Malaysia Weather MCP

> Malaysia Weather MCP Server pulls real-time tropical climate data, severe weather warnings, and earthquake alerts for the entire Malay Peninsula from MET Malaysia. It gives your AI client immediate access to 7-day forecasts (morning/afternoon/night), active storm warnings, and recent seismic event reports across Southeast Asia.

## Overview
- **Category:** data-services
- **Price:** Free
- **Tags:** weather-forecast, seismic-monitoring, emergency-alerts, climate-data, geospatial-intelligence

## Description

**The Malaysia Weather MCP Server** plugs your agent directly into the official data feed from MET Malaysia. You're getting real-time tropical climate intelligence for the whole Malay Peninsula, covering Sabah and Sarawak. This isn't some generic weather API; it’s the authoritative source you need to run critical operations on Southeast Asian weather patterns.**

**The core functions of this server give your AI client immediate access to three critical data streams.** When you use `get_malaysia_forecast`, you pull a detailed, 7-day weather forecast for specific spots across the Malay Peninsula. This tool breaks down conditions and temperature ranges into distinct periods: morning, afternoon, and night. You can pinpoint exact locations—like Kuala Lumpur or Langkawi—and get predictions spanning an entire week. The server doesn't just give you a general outlook; it provides granular data for each time segment, letting you track how the weather shifts from dawn till dusk over seven straight days.

When you need to know what’s happening *right now*, use `get_malaysia_warnings`. This tool pulls active, official alerts directly from MET Malaysia regarding severe conditions. You're getting live warnings for heavy rain, strong winds, thunderstorms, or dangerous sea tides. These are immediate, high-priority flags that tell you exactly where the danger is and what kind of severe weather you’re dealing with.

If you need to know about seismic activity, run `get_malaysia_earthquakes`. This function fetches recent earthquake reports across Southeast Asia. It provides specific metrics: the magnitude, the depth of the quake, and the distance from the nearest Malaysian coastline. You get detailed coordinates and information on how far away these tremors occurred, giving you a clear picture of regional stability.

**You'll find that this server handles language barriers automatically.** If any forecast content is written in Bahasa Melayu, the system converts it into plain English for effortless reading by your agent. This means whether the alert comes through as an official warning or part of the daily temperature breakdown, you won't get stuck translating local terminology; everything flows straight to readable English text.

The server isn’t just about pulling data; it’s about giving you actionable intelligence. You can determine 7-day forecasts for multiple locations using `get_malaysia_forecast`, getting specific details on temperature ranges and conditions for morning, afternoon, and night all in one call. You'll flag immediate warnings of severe weather—like storms or high tides—using `get_malaysia_warnings` by pulling active, official alerts from MET Malaysia. For seismic monitoring, you report recent earthquake activity using `get_malaysia_earthquakes`, which details the magnitude, depth, and distance measurements for any tremor near the Malaysian coastlines. You’re getting a complete picture of the climate: forecasts spanning seven days with time-specific breakdowns, immediate severe weather alerts when they pop up, and detailed reports on earthquake activity including magnitude and precise distances.

## Tools

### get_malaysia_earthquakes
Fetches recent earthquake reports, giving magnitude, depth, and distance from the nearest Malaysian location.

### get_malaysia_forecast
Delivers a 7-day weather forecast for specific locations, detailing conditions and temperature ranges for morning, afternoon, and night.

### get_malaysia_warnings
Pulls active official alerts from MET Malaysia regarding severe weather like storms or dangerous sea conditions.

## Prompt Examples

**Prompt:** 
```
What's the weather forecast for Kuala Lumpur this week?
```

**Response:** 
```
I've checked the MET Malaysia forecast for Kuala Lumpur. Expect isolated thunderstorms in the afternoon through Wednesday, with temperatures ranging from 25°C to 34°C. The mornings look clear with no rain expected.
```

**Prompt:** 
```
Are there any earthquake alerts near Malaysia right now?
```

**Response:** 
```
I've checked the MET Malaysia seismic feed. The most recent event was a magnitude 5.5 earthquake in the Minahassa Peninsula, Sulawesi, at a depth of 135 km. It was located approximately 613 km southeast of Semporna, Sabah. The status is marked as NORMAL with no tsunami warning issued.
```

## Capabilities

### Determine 7-Day Forecasts
Retrieves detailed temperature ranges and condition predictions for specific locations across a seven-day period.

### Flag Immediate Warnings
Gathers active, official alerts regarding severe weather like storms or high tides.

### Report Seismic Activity
Provides details on recent earthquakes, including magnitude and distance from Malaysian coastlines.

### Translate Conditions
Automatically converts any forecast content written in Bahasa Melayu into English for easy reading.

## Use Cases

### Planning an expedition to Borneo
The field manager asks: 'What's the weather risk in Kota Kinabalu next week, and are there any active warnings?' The agent runs `get_malaysia_forecast` for a full 7 days and cross-checks it with `get_malaysia_warnings`. This gives them specific temperature ranges and flags if strong winds or storms are predicted, allowing the trip to be rescheduled before expensive flights are booked.

### Shipping through the Straits of Malacca
The logistics agent needs to know if a route is safe today. They call `get_malaysia_warnings` first. If they find an alert for dangerous sea conditions, they then run `get_malaysia_earthquakes` to check if any recent seismic activity might have exacerbated the risk. This immediate layered assessment prevents delays and potential damage.

### Assessing insurance claims after a tremor
The analyst needs historical context on risk. They use `get_malaysia_earthquakes` to pull recent seismic reports, then compare the location data with past severe weather events using the forecast tool. This lets them quantify the combined physical and climate damage potential for their clients.

### Monitoring a construction site
The project foreman needs day-to-day safety updates for a specific town. They ask for the 7-day outlook using `get_malaysia_forecast`. If the forecast shows high chances of heavy rain, they immediately check `get_malaysia_warnings` to see if that prediction has elevated to an official alert level.

## Benefits

- Know exactly when to worry. Instead of reading vague general summaries, `get_malaysia_warnings` gives you active, official alerts on heavy rain or dangerous sea conditions right now.
- Plan weeks out without guesswork. Use `get_malaysia_forecast` to map 7-day temperature ranges and predicted conditions for specific districts like Penang or Langkawi.
- Get instant seismic data. If an earthquake happens, you don't wait for news reports; `get_malaysia_earthquakes` provides the magnitude, depth, and distance immediately.
- Stop translation errors. The server auto-translates any Malay forecast terms to English, so you never have to worry about regional language barriers again.
- See risk in layers. You can combine the long-term predictions from `get_malaysia_forecast` with immediate warnings from `get_malaysia_warnings` for a complete picture.

## How It Works

The bottom line is that instead of checking three separate government websites, your agent runs all necessary checks and spits out a unified risk assessment.

1. Tell your agent what specific information you need (e.g., 'What's the risk near Johor Bahru?').
2. The agent calls multiple tools—like `get_malaysia_forecast` for predictions and `get_malaysia_warnings` for current alerts.
3. Your AI client synthesizes the raw data into a clear safety report, giving you everything from long-term trends to immediate warnings in one go.

## Frequently Asked Questions

**How do I find out if there are any current severe weather warnings using get_malaysia_warnings?**
You pass the query to `get_malaysia_warnings`. This tool pulls active, official alerts from MET Malaysia for heavy rain, strong winds, and dangerous sea conditions. It gives you an immediate status update on regional hazards.

**Can I check a 7-day forecast for Penang using get_malaysia_forecast?**
Yes. Use `get_malaysia_forecast` and specify 'Penang' as the location. The tool returns detailed predictions for the full week, broken down by morning, afternoon, and night, including temperature ranges.

**What does get_malaysia_earthquakes report?**
`get_malaysia_earthquakes` provides raw seismic data. It tells you about recent tremors across Southeast Asia, listing the magnitude, depth, coordinates, and distance from the nearest Malaysian territory.

**Is get_malaysia_forecast reliable for travel planning?**
It's a detailed source for predictive data. The 7-day forecast gives you enough context to plan routes around expected temperature swings or typical weather patterns, but always cross-reference with `get_malaysia_warnings` for current safety status.

**Does the server handle multiple languages?**
Yes. The system automatically translates any forecast condition details written in Bahasa Melayu into English, making the data accessible regardless of local language usage.

**Does using `get_malaysia_earthquakes` require any form of authentication or credentials?**
No, you don't need a key. The server provides zero-auth access directly from the MET Malaysia feed. This keeps it straightforward to integrate into your agent.

**If I need a 7-day outlook for multiple areas, how does `get_malaysia_forecast` handle location inputs?**
You pass specific location names (like Langkawi or Johor Bahru) as arguments. The tool processes each unique location request independently, giving you distinct forecasts.

**When I call `get_malaysia_warnings`, what types of dangerous sea or environmental conditions are reported?**
It reports active official alerts for strong winds, thunderstorms, and dangerous sea conditions. You'll get bilingual content in English and Bahasa Melayu.

**Do I need an API Key?**
No. The data.gov.my Weather API is completely open and requires zero authentication. For higher rate limits, an optional token can be requested via email to the Malaysian government.

**Are the forecasts in English?**
The raw data from MET Malaysia uses Bahasa Melayu for forecast conditions. This server automatically translates all forecast terms to English, so you always receive clear, human-readable weather descriptions.