[Integrations](https://spiral.ai/integrations) › [Windsurf](https://spiral.ai/integrations/windsurf) › [USNO Moon phases](https://spiral.ai/integrations/windsurf/usno-moon-phases)

# How to Use USNO Moon phases in Windsurf

Returns dates and Universal Time timestamps for new Moon, first quarter, full Moon, and last quarter. Use it for phase calendars and upcoming lunar events; use daily Sun and Moon data for illumination on a particular date.

|  |  |
| --- | --- |
| Model | USNO Moon phases |
| Available through | Alexandria |
| Category | Industry Data |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with USNO Moon phases in Windsurf

- Use USNO Moon phases to get every primary phase in 2027, then add a chronological lunar calendar to this project's calendar view.
- Use USNO Moon phases to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from USNO Moon phases and tell me what changed since last week.
- Check USNO Moon phases and summarize what you find in three bullet points.
- Pull the newest data from USNO Moon phases and give me the result as a table.

## How to set up USNO Moon phases 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:

```json
{
  "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.

```bash
devin mcp login spiral
```

3. **Check it**: Spiral is listed under This computer in Customize › MCPs. From the terminal:

```bash
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.

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

### Call the Spiral API

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

2. **Run USNO Moon phases**: 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": "aa-usno-navy-mil/astronomy/moon_phases",
    "input": {
      "year": 1700
    }
  }'
```

Then paste one of the prompts above: Windsurf finds USNO Moon phases on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/windsurf

## USNO Moon phases tools and prices

- [USNO astronomical data (Sun, Moon, eclipses, seasons) · Moon phases](https://spiral.ai/tools/alexandria/aa-usno-navy-mil/astronomy/moon_phases) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| year | 1700 to 2100 | — | Every primary phase of this year (1700 to 2100). Pass this or start_date. |
| count | 1 to 99 | — | How many phases from start_date, 1 to 99 (default 4, about one lunar month). |
| start_date |  | — | List phases on or after this date, YYYY-MM-DD. Pass this or year. |

## What can you do with USNO Moon phases in Windsurf?

Add calculated USNO event times to a calendar, lesson, or observing planner in your project. A coding agent can turn returned dates and event details into tables, calendar entries, and comparisons for supported places and years.

### Astronomical calendar export

Create dated calendar entries for primary lunar phases, equinoxes, solstices, Earth's orbital extremes, and yearly solar eclipses. Keep eclipse listings separate from claims about visibility at a venue.

### Planetarium program research

Prepare a planetarium program with lunar milestones, seasonal events, and eclipse dates. Add daily sky times for the venue and a supported historical eclipse as a worked example.

### Astronomy classroom exercises

Give students calculated event times to sort, compare, and plot. Exercises can compare lunar cycles, seasonal dates, daylight intervals, and how one eclipse appears from different cities.

### Astronomy article fact-checking

Check a draft's full Moon dates, seasonal milestones, eclipse classifications, local eclipse timing, or sunrise claims against the corresponding USNO calculation.

### Outdoor photography research

Find lunar milestones and local sunrise, sunset, and Moonrise times for a shoot. For an archived eclipse photograph, compare its timestamp with calculated local eclipse contacts.

### Seasonal daylight comparison

Identify equinox and solstice dates, then compare sunrise and sunset intervals in Paris on those dates. Add primary lunar phases to an exhibit explaining separate solar and lunar cycles.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Windsurf guides](https://spiral.ai/integrations/windsurf)

## USNO Moon phases in other agents

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

## More Windsurf guides

- [StudyLight verse commentary comparison](https://spiral.ai/integrations/windsurf/studylight-verse-commentary-comparison)
- [USNO daily Sun and Moon times](https://spiral.ai/integrations/windsurf/usno-daily-sun-and-moon-times)
- [StudyLight passage commentary](https://spiral.ai/integrations/windsurf/studylight-passage-commentary)
- [USNO equinoxes and solstices](https://spiral.ai/integrations/windsurf/usno-equinoxes-and-solstices)
- [StudyLight commentary catalog](https://spiral.ai/integrations/windsurf/studylight-commentary-catalog)
- [USNO local solar eclipse circumstances](https://spiral.ai/integrations/windsurf/usno-local-solar-eclipse-circumstances)

## Questions about USNO Moon phases in Windsurf

**Can Windsurf use USNO Moon phases?**

Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run USNO Moon phases like any built-in tool.

**How much does USNO Moon phases 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 USNO Moon phases in Windsurf?**

No. Spiral runs USNO Moon phases on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up USNO Moon phases in Windsurf?**

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

**Does Windsurf wait while USNO Moon phases runs?**

USNO Moon phases runs in the background. Windsurf starts the run, checks on it and gives you the json when it's ready.

**Are USNO event times observations or calculations?**

USNO calculates astronomical events for requested dates. Its Moon phase calculations cover 1700 through 2100, so the results include historical events and future predictions.

**How far back does USNO's eclipse coverage go?**

The yearly solar eclipse list covers 1800 through 2050. Local coverage is less clear: the API guide specifies 2017–2024, while the calculator page lists 2017–2026.

**Does an eclipse in the yearly list mean it was visible from my city?**

The yearly service identifies eclipse dates and types. Location-specific contact times, the Sun's position, and obscuration come from the local circumstances calculation.

**What does USNO mean by a primary Moon phase?**

It means one of four events: new Moon, first quarter, full Moon, or last quarter. A date-based list contains at most 99 such events, rather than 99 daily illumination readings.

**Can calculated sunrise and sunset times differ from what I see?**

USNO says rise and set times can be off by a minute or more even under ideal conditions because atmospheric refraction varies. Mountains, observer height, and high latitudes can increase the difference.

