[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [Environment Canada forecast location search](https://spiral.ai/integrations/claude-code/environment-canada-forecast-location-search)

# How to Use Environment Canada forecast location search in Claude Code

Returns locations in ECCC's city forecast directory. Use it to resolve a place name before retrieving its weather, especially when several communities share a name.

|  |  |
| --- | --- |
| Model | Environment Canada forecast location search |
| Available through | Alexandria |
| Category | Maps & Reviews |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Environment Canada forecast location search in Claude Code

- Use Environment Canada forecast location search to find London, Ontario, and add the returned location to our application's location selector.
- Use Environment Canada forecast location search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Environment Canada forecast location search and tell me what changed since last week.
- Check Environment Canada forecast location search and summarize what you find in three bullet points.
- Pull the newest data from Environment Canada forecast location search and give me the result as a table.

## How to set up Environment Canada forecast location search in Claude Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Environment Canada forecast location search**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "api-weather-gc-ca/weather/find_cities",
    "input": {
      "lat": -90
    }
  }'
```

Then paste one of the prompts above: Claude Code finds Environment Canada forecast location search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## Environment Canada forecast location search tools and prices

- [Environment and Climate Change Canada weather and climate (api.weather.gc.ca) · Find cities](https://spiral.ai/tools/alexandria/api-weather-gc-ca/weather/find_cities) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| lat | -90 to 90 | — | Latitude in decimal degrees (Canada spans about 41 to 84). Give with lon. |
| lon | -180 to 180 | — | Longitude in decimal degrees, west negative (Canada spans about -142 to -52). Give with lat. |
| lang | en, fr | en | Language of names and texts: en (English) or fr (French). Numbers are the same in both. |
| limit | 1 to 50 | 10 | limit |
| query |  | — | Place name, English or French. |
| province |  | — | Two-letter province or territory code (ON, QC, BC, AB, MB, SK, NS, NB, NL, PE, YT, NT, NU). Pattern: ^[A-Za-z]{2}$. |

## What can you do with Environment Canada forecast location search in Claude Code?

Build a Canadian weather report that connects each location to ECCC forecasts or station climate evidence. A coding agent can add the returned data to your project's tables, maps, and reports.

### Plan an outdoor festival in Toronto

Resolve the forecast location, review current weather, AQHI, and alerts, then use station records and climate averages to compare possible event months.

### Prepare a Vancouver waterfront venue briefing

Find the venue's forecast location and combine city weather, marine conditions, AQHI, and official alerts into a briefing for staff reviewing waterfront activities.

### Compare months for a marina's operating season

Use station coverage, daily records, monthly summaries, and normals to compare seasonal conditions. Add the marina's city and marine forecasts when preparing the opening week.

### Build a Lake Ontario visitor weather guide

Explain typical seasonal weather using station history and normals. Provide separate sections for current city conditions, air quality, official alerts, and forecasts over the lake.

### Publish a coastal weather briefing

Resolve the coastal community and present its city forecast, AQHI, nearby marine forecast, and official hazard notices. Preserve alert wording when reproducing the notices.

### Compare weather evidence for proposed recreation sites

Identify forecast locations and nearby climate stations for proposed sites. Compare available daily records, monthly summaries, and normals to describe seasonal temperature and precipitation.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## Environment Canada forecast location search in other agents

- [Amp](https://spiral.ai/integrations/amp/environment-canada-forecast-location-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/environment-canada-forecast-location-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/environment-canada-forecast-location-search)
- [Cline](https://spiral.ai/integrations/cline/environment-canada-forecast-location-search)
- [Codex](https://spiral.ai/integrations/codex/environment-canada-forecast-location-search)
- [Cursor](https://spiral.ai/integrations/cursor/environment-canada-forecast-location-search)
- [Devin](https://spiral.ai/integrations/devin/environment-canada-forecast-location-search)
- [dots](https://spiral.ai/integrations/dots/environment-canada-forecast-location-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/environment-canada-forecast-location-search)
- [Gemini](https://spiral.ai/integrations/gemini/environment-canada-forecast-location-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/environment-canada-forecast-location-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/environment-canada-forecast-location-search)
- [goose](https://spiral.ai/integrations/goose/environment-canada-forecast-location-search)
- [Grok](https://spiral.ai/integrations/grok/environment-canada-forecast-location-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/environment-canada-forecast-location-search)
- [Hermes](https://spiral.ai/integrations/hermes/environment-canada-forecast-location-search)
- [Instinct](https://spiral.ai/integrations/instinct/environment-canada-forecast-location-search)
- [Manus](https://spiral.ai/integrations/manus/environment-canada-forecast-location-search)
- [Muse](https://spiral.ai/integrations/muse/environment-canada-forecast-location-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/environment-canada-forecast-location-search)
- [n8n](https://spiral.ai/integrations/n8n/environment-canada-forecast-location-search)
- [Notion](https://spiral.ai/integrations/notion/environment-canada-forecast-location-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/environment-canada-forecast-location-search)
- [opencode](https://spiral.ai/integrations/opencode/environment-canada-forecast-location-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/environment-canada-forecast-location-search)
- [Raycast](https://spiral.ai/integrations/raycast/environment-canada-forecast-location-search)
- [VS Code](https://spiral.ai/integrations/vscode/environment-canada-forecast-location-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/environment-canada-forecast-location-search)
- [Zapier](https://spiral.ai/integrations/zapier/environment-canada-forecast-location-search)

## More Claude Code guides

- [Environment Canada daily climate records](https://spiral.ai/integrations/claude-code/environment-canada-daily-climate-records)
- [Environment Canada marine forecast](https://spiral.ai/integrations/claude-code/environment-canada-marine-forecast)
- [Environment Canada climate station search](https://spiral.ai/integrations/claude-code/environment-canada-climate-station-search)
- [Environment Canada monthly climate records](https://spiral.ai/integrations/claude-code/environment-canada-monthly-climate-records)
- [Environment Canada climate normals](https://spiral.ai/integrations/claude-code/environment-canada-climate-normals)
- [Environment Canada weather alerts](https://spiral.ai/integrations/claude-code/environment-canada-weather-alerts)

## Questions about Environment Canada forecast location search in Claude Code

**Can Claude Code use Environment Canada forecast location search?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Environment Canada forecast location search like any built-in tool.

**How much does Environment Canada forecast location search cost in Claude Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

**Do I need an Alexandria account to use Environment Canada forecast location search in Claude Code?**

No. Spiral runs Environment Canada forecast location search on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Environment Canada forecast location search in Claude Code?**

About two minutes: add the hosted server, then sign in.

**Does Claude Code wait while Environment Canada forecast location search runs?**

Environment Canada forecast location search runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

**Does Environment Canada provide weather for every Canadian location?**

The city weather collection covers a selection of Canadian cities. Marine forecasts use marine districts, while historical climate observations come from weather stations.

**How often does Environment Canada refresh its weather data?**

City forecast files refresh at least hourly. Marine forecast files normally refresh two to four times daily, with additional updates for amendments and warnings.

**Does the climate data include every station in Canada's archive?**

The daily climate collection contains only a subset of stations because of size limitations. Station metadata provides observation date ranges to help establish which records cover a requested period.

**Which years do the climate normals represent?**

The documented GeoMet normals collection represents 1981–2010. It uses Canadian stations with at least 15 years of observations within that period.

**Are all Environment Canada readings quality checked before publication?**

ECCC specifically says AQHI observations use real-time data without verified quality control. AQHI values run from 1 to 10, with 10+ used for very high pollution.

