---
name: "xpay-weather"
description: "Global weather data, forecasts, and conditions"
version: "1.0.0"
provider: "Weather"
tools: 8
---

# Weather

Global weather data, forecasts, and conditions

## Weather

Global weather data, forecasts, and conditions

### Available Tools (8)

- **get_current_weather**: Get current weather information for a specified city.
            It extracts the current hour's temperature and weather code, maps
            the weather code to a human-readable description, and returns a formatted summary. — $0.01/call
- **get_weather_byDateTimeRange**: Get weather information for a specified city between start and end dates. — $0.01/call
- **get_weather_details**: Get detailed weather information for a specified city as structured JSON data.
            This tool provides raw weather data for programmatic analysis and processing. — $0.01/call
- **get_current_datetime**: Get current time in specified timezone. — $0.01/call
- **get_timezone_info**: Get information about a specific timezone including current time and UTC offset. — $0.01/call
- **convert_time**: Convert time from one timezone to another. — $0.01/call
- **get_air_quality**: Get air quality information for a specified city including PM2.5, PM10,
            ozone, nitrogen dioxide, carbon monoxide, and other pollutants. Provides health
            advisories based on current air quality levels. — $0.01/call
- **get_air_quality_details**: Get detailed air quality information for a specified city as structured JSON data.
            This tool provides raw air quality data for programmatic analysis and processing. — $0.01/call

### Quick Start

```json
{
  "mcpServers": {
    "weather": {
      "url": "https://weather.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"
    }
  }
}
```

### Pricing

$0.01 per tool call. Pay per use from your XPay wallet. No subscriptions.

Get an API key at [xpay.tools](https://xpay.tools).


**Tools:** 8
**Category:** Weather

## When to Use

Use Weather tools when you need to global weather data, forecasts, and conditions. All tools are available through xpay✦'s single MCP connection.

## MCP Connection

```json
{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}
```

For Claude Code:
```bash
claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
```

## Available Tools

- **Get Current Weather** — Get current weather information for a specified city.
            It extracts the current hour's temperature and weather code, maps
            the weather code to a human-readable description, and returns a formatted summary. — $0.01/call — [SKILL.md](https://xpay.tools/skills/weather/get-current-weather/SKILL.md)
- **Get Weather ByDateTimeRange** — Get weather information for a specified city between start and end dates. — $0.01/call — [SKILL.md](https://xpay.tools/skills/weather/get-weather-bydatetimerange/SKILL.md)
- **Get Weather Details** — Get detailed weather information for a specified city as structured JSON data.
            This tool provides raw weather data for programmatic analysis and processing. — $0.01/call — [SKILL.md](https://xpay.tools/skills/weather/get-weather-details/SKILL.md)
- **Get Current Datetime** — Get current time in specified timezone. — $0.01/call — [SKILL.md](https://xpay.tools/skills/weather/get-current-datetime/SKILL.md)
- **Get Timezone Info** — Get information about a specific timezone including current time and UTC offset. — $0.01/call — [SKILL.md](https://xpay.tools/skills/weather/get-timezone-info/SKILL.md)
- **Convert Time** — Convert time from one timezone to another. — $0.01/call — [SKILL.md](https://xpay.tools/skills/weather/convert-time/SKILL.md)
- **Get Air Quality** — Get air quality information for a specified city including PM2.5, PM10,
            ozone, nitrogen dioxide, carbon monoxide, and other pollutants. Provides health
            advisories based on current air quality levels. — $0.01/call — [SKILL.md](https://xpay.tools/skills/weather/get-air-quality/SKILL.md)
- **Get Air Quality Details** — Get detailed air quality information for a specified city as structured JSON data.
            This tool provides raw air quality data for programmatic analysis and processing. — $0.01/call — [SKILL.md](https://xpay.tools/skills/weather/get-air-quality-details/SKILL.md)

## How to Execute

1. **`xpay_discover`** — Search for tools: `xpay_discover("weather")`
2. **`xpay_details`** — Get input schema: `xpay_details("weather/TOOL_NAME")`
3. **`xpay_run`** — Execute: `xpay_run("weather/TOOL_NAME", { ...inputs })`
4. **`xpay_balance`** — Check credits

## Links

- Provider page: https://xpay.tools/weather/
- All providers: https://xpay.tools/explore
- Docs: https://docs.xpay.sh
