# Weather API

> Weather API is an open-source agent skill for cloud and infrastructure. Builds and runs Xweather Weather API URLs with access-cost estimates. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/vaisala-xweather/xweather-agent-skills/tree/main/plugins/xweather/skills/weather-api
- **Repository:** https://github.com/vaisala-xweather/xweather-agent-skills
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** weather-api
- **Collection:** https://github.com/vaisala-xweather/xweather-agent-skills
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-12-01

## About

This skill helps an agent turn a plain-language weather request into a correct data.api.xweather.com URL. It walks through choosing an endpoint, an action such as closest, within, search or route, and the parameters that shape the result, using bundled reference files that cover the endpoint catalog, filters, parameters, examples and recipes.

Every URL comes with its access cost, calculated from the endpoint multiplier and the time range requested. The skill also explains common failures such as empty results, a default limit of one record, misplaced location parameters and rate-limit responses, and points to a live endpoint catalog for checking unfamiliar options.

When client credentials are available, a bundled Python helper runs the request using environment variables, keeps the secret out of the command line and reports the response with the charged accesses and remaining allowance. The skill also covers connecting Xweather's hosted MCP server, scoping its tool groups, and the attribution rules for displaying Xweather data.

## When your agent uses it

> Build and run Xweather Weather API request URLs for data.api.xweather.com from plain-language requirements. Use when a task mentions the Xweather or legacy Aeris API, weather endpoints such as observations, conditions, forecasts, alerts, lightning, air quality, tropical cyclones, tides, or road weather; asks for an API URL or query; needs help debugging an empty or failed request; asks about access costs, endpoint multipliers, rate limits, or allowance usage; or needs guidance for the hosted Xweather MCP server at mcp.api.xweather.com, including availability, connection, authentication, and tool scoping. Also covers Xweather's attribution requirement — the 'Powered by Vaisala Xweather' credit and logo rules that apply wherever Xweather data or imagery is displayed.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/vaisala-xweather/xweather-agent-skills/tree/HEAD/plugins/xweather/skills/weather-api)
- [Network calls found in its scripts](https://github.com/vaisala-xweather/xweather-agent-skills/tree/HEAD/plugins/xweather/skills/weather-api)
- [License: MIT](https://github.com/vaisala-xweather/xweather-agent-skills/tree/HEAD/plugins/xweather/skills/weather-api)

## Features

- **Endpoint and action selection:** Maps common weather questions such as forecasts, lightning, air quality or road conditions to the right endpoint and lookup action.
- **Access cost reporting:** Calculates the allowance cost of each URL from endpoint and temporal multipliers before the request is run.
- **Request execution helper:** Runs requests with a Python script that reads credentials from the environment and reports status, charges and remaining allowance.
- **Debugging guide:** Explains common error and warning codes and their likely causes, such as missing location states or lookback windows missing recent records.
- **MCP server setup:** Describes connecting Xweather's hosted MCP server, authentication methods and tool group filtering.
- **Attribution guidance:** Summarizes the required Powered by Vaisala Xweather credit and logo usage rules.

## Good for

- Build an API URL for hourly forecasts in a given city
- Check lightning strikes near a location within the last 30 minutes
- Find the nearest weather station observations to a set of coordinates
- Estimate how many API accesses a multi-day history request will cost
- Debug an empty response from a Xweather request
- Get the active tropical cyclones and their affected areas

## Install

### Claude Code

This skill ships in the `xweather` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add vaisala-xweather/xweather-agent-skills
/plugin install xweather@vaisala-xweather
```

Or copy only this skill to `~/.claude/skills/weather-api`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vaisala-xweather/xweather-agent-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/weather-api &&
cp -R "$tmp/plugins/xweather/skills/weather-api" ~/.claude/skills/weather-api &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/weather-api` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/weather-api` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vaisala-xweather/xweather-agent-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/weather-api &&
cp -R "$tmp/plugins/xweather/skills/weather-api" ~/.agents/skills/weather-api &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/weather-api` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/weather-api` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vaisala-xweather/xweather-agent-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/weather-api &&
cp -R "$tmp/plugins/xweather/skills/weather-api" ~/.cursor/skills/weather-api &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/weather-api` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/vaisala-xweather/xweather-agent-skills.git --path plugins/xweather/skills/weather-api
```

Or copy the folder to `~/.gemini/skills/weather-api` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/weather-api`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vaisala-xweather/xweather-agent-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/weather-api &&
cp -R "$tmp/plugins/xweather/skills/weather-api" ~/.copilot/skills/weather-api &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/weather-api` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/vaisala-xweather/xweather-agent-skills.git
```

Then copy `xweather-agent-skills/plugins/xweather/skills/weather-api` into your agent's skills folder as `weather-api`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What do I need to run the requests?

Producing URLs needs no credentials. Running them requires a Xweather client ID and secret, which the bundled helper reads from XWEATHER_CLIENT_ID and XWEATHER_CLIENT_SECRET, and the helper needs Python 3 with network access to data.api.xweather.com.

### How is the cost of a request calculated?

Accesses equal the endpoint multiplier times the number of intervals requested, since the spatial multiplier is always 1. For example, a 30-day conditions summary costs 30 accesses, and a route request bills once per point.

### Does shrinking the search radius reduce cost?

No. Query area, radius and geometry do not affect the access cost, while fields and limit only shrink the payload.

### Is the Xweather MCP server included in this plugin?

No. The skill explains how to add the hosted MCP server at mcp.api.xweather.com with a single command, but it is not bundled with the plugin.

### How do I install Weather API in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/weather-api to use it in all your projects, or to .claude/skills/weather-api in one project. Or install the xweather plugin, which includes it: /plugin marketplace add vaisala-xweather/xweather-agent-skills, then /plugin install xweather@vaisala-xweather.

### Does Weather API run scripts?

Yes. It runs Python scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Weather API?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Weather API?

The closest alternatives to Weather API are Webhooks, Cost estimation, Azure pricing, Ewccli and API gateway MCP server.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Webhooks](https://ai-powered.com/skills/webhooks): Webhooks is an open-source agent skill for cloud and infrastructure.
- [Cost estimation](https://ai-powered.com/skills/cost-estimation): Cost estimation is an open-source agent skill for cloud and infrastructure.
- [Azure pricing](https://ai-powered.com/skills/azure-pricing): Azure pricing is an open-source agent skill for cloud and infrastructure.
- [Ewccli](https://ai-powered.com/skills/ewccli): Ewccli is an open-source agent skill for cloud and infrastructure.
- [API gateway MCP server](https://ai-powered.com/skills/api-gateway-mcp-server): API gateway MCP server is an open-source agent skill for ai models and llm tooling.
- [Google cloud waf cost optimization](https://ai-powered.com/skills/google-cloud-waf-cost-optimization): Google cloud waf cost optimization is an open-source agent skill for cloud and infrastructure.
- [Cloudflare](https://ai-powered.com/skills/cloudflare-cloudflare): Cloudflare is an open-source agent skill for cloud and infrastructure.
- [Azure maps search dotnet](https://ai-powered.com/skills/azure-maps-search-dotnet): Azure maps search dotnet is an open-source agent skill for maps and travel.

---
Source: https://ai-powered.com/skills/weather-api-vaisala-xweather
