Sunrise, Sunset, Moonrise, Moonset and Twilight Times for a Place and Day (USNO)
usno/sun-moon-rise-set
Sun and moon data for one day at a latitude and longitude, as computed by the U.S. Naval Observatory: sunrise, sunset, solar noon and the start and end of civil twilight, moonrise, moon transit and moonset, the moon's phase and illuminated fraction, and the nearest primary moon phase. All times are Universal Time. Astronomical computation data passed through unmodified and served by Eden Engine; not an official U.S. Naval Observatory product.
Price
$0.0026 per call
You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.
Data source
Data from the U.S. Naval Observatory (USNO), U.S. Department of the Navy, a US federal government work in the public domain (17 USC 105); no credit is required. Served by Eden Engine; not an official U.S. Naval Observatory product.
Use it
Five steps: search, inspect, learn, run, settle. No per-tool setup; your agent reaches this tool through the meta-tools it already has.
Connect once and your AI can find and run this tool, and any other it needs.
// 1. search: find the tool
omnial_search({ query: "what you need" })
// 2. inspect: price and input schema
omnial_inspect({ tool: "usno/sun-moon-rise-set" })
// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "usno/sun-moon-rise-set" })
// 4. run: price the exact call first, then run it
omnial_execute({ tool: "usno/sun-moon-rise-set", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "usno/sun-moon-rise-set", input: { /* ... */ } })
// 5. settle: the call is charged when it finishes, nothing to doNot connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.
Pricing
Every charge this tool can incur.
| Charge | Price |
|---|---|
Per call | $0.0026 |
- Updated
- Oct 20, 2026
Input and output schemas
Input schema
{
"type": "object",
"required": [
"date",
"latitude",
"longitude"
],
"properties": {
"date": {
"type": "string",
"pattern": "^(1[7-9][0-9]{2}|20[0-9]{2}|2100)-(0?[1-9]|1[0-2])-(0?[1-9]|[12][0-9]|3[01])$",
"description": "The day as YYYY-MM-DD, for example 2025-01-01 (leading zeros on month and day are optional). The year must be 1700 to 2100. A day that does not exist, such as 2025-02-30, is refused by the service."
},
"latitude": {
"type": "number",
"maximum": 90,
"minimum": -90,
"description": "Latitude in decimal degrees, north positive (Washington DC is 38.89)."
},
"longitude": {
"type": "number",
"maximum": 180,
"minimum": -180,
"description": "Longitude in decimal degrees, east positive, so west is negative (Washington DC is -77.03)."
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"required": [
"properties"
],
"properties": {
"type": {
"type": "string",
"description": "Always Feature."
},
"geometry": {
"type": "object",
"description": "The location: `coordinates` is [longitude, latitude] and `type` is Point.",
"additionalProperties": true
},
"apiversion": {
"type": "string",
"description": "USNO API version that produced the data."
},
"properties": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"properties": {
"tz": {
"type": "number",
"description": "Time zone offset of every time, 0 meaning Universal Time."
},
"day": {
"type": "integer"
},
"year": {
"type": "integer"
},
"isdst": {
"type": "boolean"
},
"month": {
"type": "integer"
},
"sundata": {
"type": "array",
"items": {
"type": "object",
"properties": {
"phen": {
"type": "string"
},
"time": {
"type": [
"string",
"null"
],
"description": "HH:MM in Universal Time, or null when the event does not happen that day (see `phen`, for example Object continuously above the Horizon)."
}
},
"additionalProperties": true
},
"description": "Sun events: Begin Civil Twilight, Rise, Upper Transit, Set, End Civil Twilight."
},
"curphase": {
"type": "string",
"description": "The moon's phase that day, for example Waxing Crescent."
},
"moondata": {
"type": "array",
"items": {
"type": "object",
"properties": {
"phen": {
"type": "string"
},
"time": {
"type": [
"string",
"null"
],
"description": "HH:MM in Universal Time, or null when the event does not happen that day (see `phen`, for example Object continuously above the Horizon)."
}
},
"additionalProperties": true
},
"description": "Moon events: Rise, Upper Transit, Set."
},
"fracillum": {
"type": "string",
"description": "Fraction of the moon illuminated, a string such as 3%."
},
"day_of_week": {
"type": "string"
},
"closestphase": {
"type": "object",
"description": "The nearest primary phase: `phase`, `year`, `month`, `day`, `time` (UT).",
"additionalProperties": true
}
},
"description": "The day's data.",
"additionalProperties": true
}
},
"additionalProperties": true
}
},
"description": "The USNO one-day sun and moon response, a GeoJSON-style Feature.",
"additionalProperties": true
}