Spiral gives your agent every tool with one account. Browse the tools →

Windsurf · News & Media

How to Use NOAA Kp index in Windsurf

Returns planetary Kp readings and forecast values for comparing geomagnetic activity over time. Use it to identify stronger three-hour periods; choose the three-day forecast when you also need the forecaster's explanation.

Prompts to try with NOAA Kp index in Windsurf

Copy an example into Windsurf, or ask in your own words.

Use NOAA Kp index to add a chart of available observed and forecast Kp to this project, clearly separating the two.

NOAA Kp indexWindsurf
Try asking
  • Use NOAA Kp index to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from NOAA Kp index and tell me what changed since last week.

  • Check NOAA Kp index and summarize what you find in three bullet points.

  • Pull the newest data from NOAA Kp index and give me the result as a table.

How to set up NOAA Kp index in Windsurf

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

Use Spiral's MCP server

  1. Add the server

    Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:

    {
      "mcpServers": {
        "spiral": {
          "url": "https://api.spiral.ai/mcp"
        }
      }
    }
  2. Sign in

    Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.

    devin mcp login spiral
  3. Check it

    Spiral is listed under This computer in Customize › MCPs. From the terminal:

    devin mcp list

Use the Spiral skill

  1. Send Windsurf 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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run NOAA Kp index

    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": "services-swpc-noaa-gov/space-weather/kp_index",
        "input": {
          "days": 2
        }
      }'

Then paste one of the prompts above: Windsurf finds NOAA Kp index on Spiral, shows the price and runs it.

NOAA Kp index providers and prices

Spiral runs NOAA Kp index through Alexandria. Open a card for today's price, with every fee included.

AlexandriaNews & Media
NOAA Space Weather Prediction Center · Kp index
services-swpc-noaa-gov/space-weather/kp_index

Settings you can ask for

Ask Windsurf for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Days1 to 72

Days of observed and estimated history before the latest value.

Every API field of NOAA Space Weather Prediction Center · Kp index is on its tool page: open its card above.

What can you do with NOAA Kp index in Windsurf?

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.

Plan an aurora photography check

Use forecast Kp windows to choose when to check again, then consult the near-term aurora outlook before heading out. Present these as space weather inputs to a viewing decision.

Explain an official storm notice

Turn a NOAA bulletin into a short explanation of what was issued and the accompanying geomagnetic readings. Add the forecaster's rationale when discussing expected activity.

Questions about NOAA Kp index in Windsurf

Can Windsurf use NOAA Kp index?

Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run NOAA Kp index like any built-in tool.

How much does NOAA Kp index cost in Windsurf?

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

Do I need an Alexandria account to use NOAA Kp index in Windsurf?

No. Spiral runs NOAA Kp index 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 Kp index in Windsurf?

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

Does Windsurf wait while NOAA Kp index runs?

NOAA Kp index runs in the background. Windsurf 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.

Get started

Start using NOAA Kp index in Windsurf

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Windsurf:

Set up Windsurf

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options