[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [NOAA solar X-ray flares](https://spiral.ai/integrations/claude-code/noaa-solar-x-ray-flares)

# How to Use NOAA solar X-ray flares in Claude Code

Returns solar X-ray flare events detected by GOES, including event timing and peak classifications. Use it to compare recent flares and investigate solar activity separately from geomagnetic Kp readings.

|  |  |
| --- | --- |
| Model | NOAA solar X-ray flares |
| Available through | Alexandria |
| Category | News & Media |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with NOAA solar X-ray flares in Claude Code

- Use NOAA solar X-ray flares to build a table of recent flare events with their returned peak classifications and times.
- Use NOAA solar X-ray flares to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from NOAA solar X-ray flares and tell me what changed since last week.
- Check NOAA solar X-ray flares and summarize what you find in three bullet points.
- Pull the newest data from NOAA solar X-ray flares and give me the result as a table.

## How to set up NOAA solar X-ray flares 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 NOAA solar X-ray flares**: 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": "services-swpc-noaa-gov/space-weather/xray_flares",
    "input": {
      "days": 7
    }
  }'
```

Then paste one of the prompts above: Claude Code finds NOAA solar X-ray flares on Spiral, shows the price and runs it.

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

## NOAA solar X-ray flares tools and prices

- [NOAA Space Weather Prediction Center · Xray flares](https://spiral.ai/tools/alexandria/services-swpc-noaa-gov/space-weather/xray_flares) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| days | 1 to 7 | 7 | days |
| limit | 1 to 200 | 25 | limit |
| min_class |  | — | Smallest peak class to list, such as C, M1 or X2.5. Counts and largest cover every class. |

## What can you do with NOAA solar X-ray flares in Claude Code?

Build a space weather display that keeps NOAA observations and forecasts in separate views. A coding agent can add three-hour Kp charts, forecast explanations, or official notices to the project's interface.

### Write a daily space weather news brief

Build a briefing with issued notices, current severity, upcoming conditions, auroral activity, Kp, incoming solar wind, and recent flares. Keep each observation or forecast attached to its own time period.

### Prepare a planetarium's live sky presentation

Give presenters current NOAA data for explaining what the Sun and Earth's magnetic environment are doing. Use the aurora outlook, flare events, measurements, notices, and forecast explanations as distinct parts of the presentation.

### Populate an observatory's space weather display

Show visitors a conditions summary with separate panels for NOAA notices, forecasts, auroral activity, geomagnetic readings, solar wind, and flares. Label forecast horizons so a near-term aurora estimate cannot be mistaken for tomorrow's outlook.

### Build a prospective storm timeline

Save successive NOAA responses during an unfolding event. Assemble a timeline showing how notices, forecast expectations, auroral activity, Kp, solar wind, and flare reports changed, without assuming every change had the same cause.

## Overview

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

## NOAA solar X-ray flares in other agents

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

## More Claude Code guides

- [NOAA aurora forecast](https://spiral.ai/integrations/claude-code/noaa-aurora-forecast)
- [NOAA solar wind measurements](https://spiral.ai/integrations/claude-code/noaa-solar-wind-measurements)
- [NOAA Kp index](https://spiral.ai/integrations/claude-code/noaa-kp-index)
- [NOAA space weather alerts](https://spiral.ai/integrations/claude-code/noaa-space-weather-alerts)
- [NHPR stories by tag](https://spiral.ai/integrations/claude-code/nhpr-stories-by-tag)
- [NOAA space weather conditions](https://spiral.ai/integrations/claude-code/noaa-space-weather-conditions)

## Questions about NOAA solar X-ray flares in Claude Code

**Can Claude Code use NOAA solar X-ray flares?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run NOAA solar X-ray flares like any built-in tool.

**How much does NOAA solar X-ray flares 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 NOAA solar X-ray flares in Claude Code?**

No. Spiral runs NOAA solar X-ray flares on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up NOAA solar X-ray flares in Claude Code?**

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

**Does Claude Code wait while NOAA solar X-ray flares runs?**

NOAA solar X-ray flares runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

**Does NOAA report one overall space weather severity?**

NOAA separates three event types: geomagnetic storms, solar radiation storms, and radio blackouts. A report about one type should not be read as a severity rating for all three.

**Does NOAA's aurora coverage include the Southern Hemisphere?**

Yes. NOAA's aurora forecast covers both hemispheres, including the southern auroral oval.

**How far ahead does NOAA forecast space weather?**

The horizon depends on the product. The OVATION aurora outlook normally covers 30 to 90 minutes, while the three-day space weather forecast covers the next three days.

**How often does NOAA revise its three-day forecast?**

NOAA issues it every 12 hours, at 0030 and 1230 UTC. Each category includes the forecaster's explanation of the expected conditions.

**Does a new Kp reading describe just the latest minute?**

No. NOAA's chart refreshes every minute, but its estimated planetary Kp represents a three-hour interval.

