# Xweather Renewable MCP MCP

> Xweather Renewable gives you professional weather intelligence for renewable energy sites. Get current conditions, 15-day forecasts, solar irradiance data (GHI, DNI, DHI), and wind measurements needed to assess power plants. This MCP supports site selection, production forecasting, and grid optimization.

## Overview
- **Category:** the-unthinkable
- **Price:** Free
- **Tags:** meteorology, renewable-energy, solar-irradiance, wind-measurement, forecast-data, environmental-intelligence

## Description

This connector brings deep, professional weather intelligence directly into your AI agent. You can run complex analyses for renewable energy sites—from initial assessment to operational planning. Need to know if a PV farm is viable? Pull historical solar irradiance measurements (GHI, DNI, DHI) to validate its potential yield. Planning long-term maintenance? Get extended 15-day forecasts that cover day and night cycles. The system also pulls wind speed, direction, and detailed energy generation estimates for US/Canada sites. Because data integrity is everything when running production models, every tool call passes through the Vinkius zero-trust proxy; your keys are used in transit but never stored on disk. This means you can trust that sensitive site credentials remain secure while building complex automations.

## Tools

### get_weather_alerts
Checks for active weather advisories and warnings that could threaten renewable energy assets in an area.

### get_closest_weather_station
Finds the nearest operational weather station and returns its details, including current conditions.

### get_current_conditions
Retrieves real-time weather metrics using a city name, coordinates, or known station ID.

### get_renewable_energy_farm_data
Provides hourly forecasts and recent estimates of power output for wind and solar sites, key for energy trading.

### get_extended_forecast
Generates a 15-day forecast with day/night periods for long-term energy production planning.

### get_weather_forecast
Gets a general 15-day weather outlook, useful for broad production planning across large areas.

### get_historical_observations
Pulls archived weather data, useful for validating your renewable energy models against past patterns.

### get_weather_observations
Pulls recent actual data measured by specific weather stations for the location you specify.

### search_locations
Searches by name or coordinates to find place details, including the necessary metadata for other weather queries.

### get_solar_irradiance_data
Retrieves historical measurements of solar irradiance (GHI, DNI, DHI) needed to evaluate PV site viability.

### get_weather_summary
Provides a quick, general overview of expected weather conditions for any given place.

### get_wind_data
Gathers specific wind speed and direction data crucial for assessing wind farm performance.

## Prompt Examples

**Prompt:** 
```
What is the current weather and wind speed in Chicago?
```

**Response:** 
```
Fetching current conditions for Chicago... Temperature is 72°F with winds from the southwest at 14 mph, gusting to 22 mph. Humidity is at 65%, barometric pressure is 30.12 inHg. Solar radiation is reading at 685 W/m² — good conditions for solar generation today.
```

**Prompt:** 
```
Show me the 7-day weather forecast for a solar farm site at 35.0, -106.0.
```

**Response:** 
```
Retrieving 7-day forecast for coordinates 35.0, -106.0 (New Mexico)... Days 1-3: Clear skies with highs 88-92°F, excellent solar irradiance expected (GHI 850-920 W/m²). Days 4-5: Partly cloudy, highs 84-87°F. Days 6-7: Mostly sunny returning, highs 89-91°F. Overall excellent solar production conditions expected this week.
```

**Prompt:** 
```
Get the solar irradiance data for my PV site at 34.05, -118.24 for last month.
```

**Response:** 
```
Fetching historical solar irradiance for 34.05, -118.24 (Los Angeles area)... Monthly average GHI: 245 W/m², Peak daily GHI: 920 W/m² (clearest day), Average DNI: 680 W/m², Average DHI: 145 W/m². The site showed strong solar resource last month with 26 clear days and 4 partially cloudy days. Excellent PV generation conditions overall.
```

## Capabilities

### Find nearest station data
Locates the closest operational weather station and returns its current conditions for immediate use.

### Check real-time site metrics
Retrieves up-to-the-minute temperature, wind speed, humidity, pressure, and solar radiation for any specified location.

### Forecast energy output
Gets a detailed 15-day weather forecast tailored for predicting renewable energy production over time.

### Validate historical performance
Queries archived data to measure past solar irradiance or general weather patterns, essential for model accuracy checks.

### Assess wind potential
Provides detailed measurements of wind speed and direction required for evaluating turbine placement and output.

### Monitor severe weather risks
Retrieves active weather alerts and advisories, helping protect assets during dangerous conditions.

## Use Cases

### Comparing two sites for solar development
You need to know if Site A or Site B is better. First, use `search_locations` to get the coordinates for both. Then, run `get_solar_irradiance_data` on both sets of coordinates to compare their historical GHI and DNI metrics side-by-side.

### Responding to an unexpected storm warning
A sudden weather event is reported. Immediately use `get_weather_alerts` for the area, then cross-reference that with current readings from `get_current_conditions` to gauge immediate risk and operational shutdown needs.

### Modeling annual wind capacity
To calculate total potential output, you must pull long-term data. Use `get_wind_data` for specific metrics, then run `get_historical_observations` to establish a reliable baseline against multiple years of archived readings.

### Running a quick check on day-to-day operations
Before the morning crew arrives, use `get_weather_summary` for general awareness. If that looks okay, then follow up with `get_renewable_energy_farm_data` to get specific operational forecasts for the next 10 days.

## Benefits

- Assess initial site potential using `get_solar_irradiance_data` to measure historical solar resource quality, which is better than just checking a map image.
- Plan for months ahead by running `get_extended_forecast`, getting day/night breakdowns that let you model production dips accurately. You can't plan without the full cycle view.
- Optimize energy trading models using `get_renewable_energy_farm_data` to predict hourly output, giving you a massive edge in market timing.
- Protect infrastructure by monitoring active threats; calling `get_weather_alerts` ensures your agent knows exactly when severe weather is hitting the grid.
- Go beyond simple summaries. Use `get_wind_data` to get specific directional and speed metrics that dictate how much power a turbine can actually generate.

## How It Works

The bottom line is, you get professional-grade energy data for site assessment and operational decision-making without leaving your AI client.

1. First, use `search_locations` to find the exact station ID or coordinates for your site.
2. Next, select the necessary data stream—whether it's running a historical query via `get_solar_irradiance_data` or getting immediate readings with `get_current_conditions`.
3. Finally, the agent processes the output to give you actionable insights, like determining if current wind patterns support optimal turbine operation.

## Frequently Asked Questions

**How do I check the current weather and wind speed using get_current_conditions?**
Just provide the city name, coordinates, or station ID to `get_current_conditions`. The agent returns real-time metrics like temperature, humidity, pressure, and detailed wind speed/direction.

**What is the difference between get_weather_forecast and get_extended_forecast?**
`get_weather_forecast` gives a general 15-day outlook. `get_extended_forecast` is better because it provides day/night periods, which is critical for accurate energy production modeling.

**Can I check historical data using get_historical_observations?**
Yes. Use `get_historical_observations` to query archived weather records. This allows you to validate your current models against validated, past performance metrics.

**Which tool should I use for wind resource planning? get_wind_data or get_extended_forecast?**
`get_wind_data` is the specialized choice. It gives specific speed and direction measurements essential for turbine placement, whereas `get_extended_forecast` provides general weather context.

**How do I find coordinates before using any weather tool?**
Start with `search_locations`. This function searches by name or query and returns the necessary coordinates and station metadata required for all subsequent data calls.

**When I use get_solar_irradiance_data, how do I interpret the difference between GHI, DNI, and DHI?**
GHI (Global Horizontal Irradiance) is the total energy hitting a horizontal surface. DNI (Direct Normal Irradiance) measures direct beam sunlight, which is crucial for concentrating solar power. DHI (Diffuse Horizontal Irradiance) accounts for scattered light from the atmosphere.

**If I check for warnings using get_weather_alerts, what specific kind of risk data do I receive?**
This tool provides critical, actionable advisories regarding severe weather events. It doesn't just report the weather; it tells you exactly which hazards—like high winds or flooding—are active at your specified location.

**Is the data from get_renewable_energy_farm_data reliable enough for actual energy trading decisions?**
Yes, this MCP includes hourly forecasts and recent 5-minute interval production estimates. This high level of detail makes it essential for operational optimization and real-time energy market planning.

**What weather and renewable energy data is available through the Xweather API?**
The Xweather API provides: current conditions (temperature, humidity, wind, pressure, solar radiation), forecasts up to 15 days, historical weather observations, solar irradiance data (GHI, DNI, DHI) for PV assessment, wind speed/direction measurements, renewable energy farm power output data for US/Canada sites, weather alerts and advisories, and location search capabilities.

**How do I get Xweather API credentials (Client ID and Client Secret)?**
Visit https://www.xweather.com/ and sign up for an Xweather Flex subscription. Once your account is provisioned, navigate to your developer dashboard to create an application and obtain your Client ID and Client Secret. These credentials authenticate your API requests and are tied to your subscription plan. The Renewables Add-on is required for energy farm data access.

**What location formats are supported for weather queries?**
The API accepts multiple location formats: city names (e.g., 'Chicago,IL'), latitude/longitude coordinates (e.g., '41.88,-87.63'), weather station IDs, postal codes, and ICAO airport codes. You can also use the searchPlaces tool to find valid location identifiers or the getClosestStation tool to find the nearest weather station to any coordinates.

**How far ahead can the Xweather forecast predict?**
Xweather provides detailed weather forecasts up to 15 days ahead. Short-term forecasts (1-7 days) are the most accurate, with gradually decreasing accuracy for longer horizons. The forecast includes temperature, weather conditions, wind, precipitation, and solar radiation data — all essential for renewable energy production planning.