How to Use NWS latest weather observation in Claude Code
Returns the latest available weather report from a station. Use it to check observed conditions before a shift, allowing for NWS quality-control delays of up to 20 minutes.
Prompts to try with NWS latest weather observation in Claude Code
Copy an example into Claude Code, or ask in your own words.
Use NWS latest weather observation to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from NWS latest weather observation and tell me what changed since last week.
Check NWS latest weather observation and summarize what you find in three bullet points.
Pull the newest data from NWS latest weather observation and give me the result as a table.
Check NWS latest weather observation every morning and tell me only when something changed.
How to set up NWS latest weather observation in Claude Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
This adds Spiral to the current project. Add --scope user to use it in every project.
claude mcp add --transport http spiral https://api.spiral.ai/mcp
- 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
- Send Claude Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run NWS latest weather observation
One request; the result comes back by polling or a webhook.
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-gov/weather/observations_latest", "input": { "geometry": {} } }'
Then paste one of the prompts above: Claude Code finds NWS latest weather observation on Spiral, shows the price and runs it.
NWS latest weather observation providers and prices
Spiral runs NWS latest weather observation through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Claude Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Max stations | 1 to 10 | 3 | Geometry mode: how many of the nearest stations to try before giving up (each try is one request). |
| Require valid | on or off | Geometry mode: skip a station whose latest observation has no temperature, dewpoint, wind, pressure or humidity (many NonFedAWOS stations answer with every value null) and move to the next one. With false the first station that answers 200 is returned even when has_data is false. |
Every API field of National Weather Service API (api.weather.gov) · Observations latest is on its tool page: open its card above.
What can you do with NWS latest weather observation in Claude Code?
Build a facility weather view that puts NWS forecasts, station reports, and official alerts beside operational decisions. A coding agent can add the returned data to your project while keeping forecast grid cells, reporting stations, and alert areas distinct.
Stadium operations briefing
Build a weather briefing for Nissan Stadium in Nashville: identify reporting stations, compare recent and latest readings, review daily and hourly forecasts, and summarize current and recent alerts with their full official messages.
Construction shift planning
Prepare a site briefing that pairs the coming days and working hours with current station conditions. Identify the reporting station, review the past week's readings and alerts, and include official alert text when explaining possible work interruptions.
Public park maintenance schedule
Help a park supervisor compare maintenance days and hourly work windows. Include nearby station information, recent and latest observations, and current and recent hazard messages so the schedule has both an outlook and recent weather context.
Commercial nursery weather board
Create a nursery's daily weather board with a station directory, recent and latest readings, daily outlooks, and hourly conditions. Add current alerts and the past week's alert timeline, opening the official message for hazards relevant to outdoor operations.
Restaurant patio staffing
Compare upcoming days and individual service hours before assigning patio staff. Add the latest observed conditions and active alerts to a manager's opening brief.
More on NWS latest weather observation and Claude Code
Overview
NWS latest weather observation in other agents
Questions about NWS latest weather observation in Claude Code
Can Claude Code use NWS latest weather observation?
Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run NWS latest weather observation like any built-in tool.
How much does NWS latest weather observation 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 NWS latest weather observation in Claude Code?
No. Spiral runs NWS latest weather observation on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up NWS latest weather observation in Claude Code?
About two minutes: add the hosted server, then sign in.
Does Claude Code wait while NWS latest weather observation runs?
NWS latest weather observation runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.
How far ahead and back does NWS weather data go?
NWS forecast products cover the next seven days. Its API retains seven days of station observations and seven days of recent alerts, so it is intended for current operations and recent-event reviews.
Does the latest observation mean conditions this minute?
NWS says observations may arrive up to 20 minutes late because its upstream MADIS source performs quality checks. The latest available station report can therefore describe earlier conditions.
How local is NWS weather data?
Forecasts use grid squares about 2.5 kilometers across, while observations describe individual reporting stations. Alerts can cover warning polygons, counties, or forecast zones, so these products have different geographic footprints.
Does NWS include every emergency alert?
NWS CAP does not include all non-weather emergency alerts. NWS directs users seeking comprehensive weather and non-weather emergency messages to FEMA IPAWS.
Can NWS information be copied into a report or application?
NWS describes its published information as public information that may be distributed or copied, and requests appropriate credits. Its CAP messages have a specific restriction: they must not be used to activate Emergency Alert System equipment.
Start using NWS latest weather observation in Claude Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Claude Code:
set up https://spiral.ai/SKILL.md


