# US Naval Observatory sun, moon and phases

Sunrise, sunset, moonrise, moonset, twilight and moon phases for a place and date, from the US Naval Observatory.

- No API key needed to call
- Source: [US Naval Observatory Astronomical Applications API](https://aa.usno.navy.mil/data/api)
- Licence and terms: [US Government work; terms not verified](https://aa.usno.navy.mil/data/api)
- Coverage: worldwide
- Answers are shared and cached for 21600 seconds.

## Questions you can ask

- When does the sun set in Washington DC on 4 December 2026? (operation `sun_moon_times`)
- When is the next full moon after 4 December 2026? (operation `moon_phases`)

## Operations

### Sun and moon times for a place and date

Answers: when do the sun and moon rise, set and transit at this latitude and longitude on this date, and what is the moon phase and illumination?

- `date`: required, string, YYYY-MM-DD.
- `lat`: required, number
- `lng`: required, number
- `tz`: optional, integer, default 0, Hours offset from UTC for the times returned.

Example: When does the sun set in Washington DC on 4 December 2026?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"usno","operation":"sun_moon_times","params":{"date":"2026-12-04","lat":38.89,"lng":-77.03,"tz":-5}}}
```

Over HTTP:

```
curl '/v1/connectors/usno/sun_moon_times?date=2026-12-04&lat=38.89&lng=-77.03&tz=-5'
```

### Upcoming moon phases

Answers: when are the next new moon, first quarter, full moon and last quarter after a date?

- `date`: required, string
- `count`: optional, integer, default 4

Example: When is the next full moon after 4 December 2026?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"usno","operation":"moon_phases","params":{"date":"2026-12-04","count":4}}}
```

Over HTTP:

```
curl '/v1/connectors/usno/moon_phases?date=2026-12-04&count=4'
```

## Source notice

Source: U.S. Naval Observatory, Astronomical Applications Department. Not endorsed by the US Navy. Terms text was not quoted here: see the terms page.

## Missing something?

Tell us what data, endpoint or feature you wish we had. It is free and needs no signup: call the MCP tool request_capability, or POST a short description to https://agentnative.dennery.ai/v1/capabilities/request.
