Sunrise & Sunset Times is an MCP server published by org.sunrise-sunset, hosted at api.sunrise-sunset.org. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 2 tools, including get_sun_times, get_sun_times_range.
Sunrise, sunset, twilight, golden hour and moon times for any place on Earth. Free, no API key.
Nothing else in the archive shares these values.
Sunrise, sunset, solar noon, day length, civil/nautical/astronomical twilight, dawn/dusk, first/last light, golden hour, blue hour, sunrise/sunset azimuth, solar noon altitude, moonrise/moonset, moon phase and illumination for any coordinates on Earth and any date. Times are ISO 8601 in the local timezone of the location. Polar day/night handled via sun_status (normal | midnight_sun | polar_night); events that do not occur are null.
| Parameter | Type | Description |
|---|---|---|
| tz | string | IANA timezone like 'Europe/Madrid'. Omit to use the local timezone of the coordinates, resolved automatically (recommended). |
| lat * | number | Latitude in decimal degrees. |
| lng * | number | Longitude in decimal degrees. |
| date | string | 'today' (default), 'tomorrow' or YYYY-MM-DD. Relative dates resolve in the local timezone of the coordinates. |
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
{
"name": "get_sun_times",
"title": "Sunrise & sunset times",
"description": "Sunrise, sunset, solar noon, day length, civil/nautical/astronomical twilight, dawn/dusk, first/last light, golden hour, blue hour, sunrise/sunset azimuth, solar noon altitude, moonrise/moonset, moon phase and illumination for any coordinates on Earth and any date. Times are ISO 8601 in the local timezone of the location. Polar day/night handled via sun_status (normal | midnight_sun | polar_night); events that do not occur are null.",
"inputSchema": {
"type": "object",
"required": [
"lat",
"lng"
],
"properties": {
"tz": {
"type": "string",
"description": "IANA timezone like 'Europe/Madrid'. Omit to use the local timezone of the coordinates, resolved automatically (recommended)."
},
"lat": {
"type": "number",
"maximum": 90,
"minimum": -90,
"description": "Latitude in decimal degrees."
},
"lng": {
"type": "number",
"maximum": 180,
"minimum": -180,
"description": "Longitude in decimal degrees."
},
"date": {
"type": "string",
"description": "'today' (default), 'tomorrow' or YYYY-MM-DD. Relative dates resolve in the local timezone of the coordinates."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"date",
"tzid",
"utc_offset",
"lat",
"lng",
"sunrise",
"sunset",
"solar_noon",
"day_length",
"sun_status",
"civil_twilight_begin",
"civil_twilight_end",
"nautical_twilight_begin",
"nautical_twilight_end",
"astronomical_twilight_begin",
"astronomical_twilight_end",
"dawn",
"dusk",
"first_light",
"last_light",
"golden_hour",
"blue_hour",
"solar_position",
"moonrise",
"moonset",
"moon_phase",
"moon_illumination"
],
"properties": {
"lat": {
"type": "number"
},
"lng": {
"type": "number"
},
"date": {
"type": "string",
"description": "Local date, YYYY-MM-DD."
},
"dawn": {
"type": [
"string",
"null"
],
"description": "Dawn (start of civil twilight), ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"dusk": {
"type": [
"string",
"null"
],
"description": "Dusk (end of civil twilight), ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"tzid": {
"type": "string",
"description": "IANA timezone used."
},
"sunset": {
"type": [
"string",
"null"
],
"description": "Sunset, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"moonset": {
"type": [
"string",
"null"
],
"description": "Moonset, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"sunrise": {
"type": [
"string",
"null"
],
"description": "Sunrise, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"moonrise": {
"type": [
"string",
"null"
],
"description": "Moonrise, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"blue_hour": {
"type": "object",
"required": [
"morning",
"evening"
],
"properties": {
"evening": {
"type": "object",
"required": [
"begin",
"end"
],
"properties": {
"end": {
"type": [
"string",
"null"
],
"description": "End of the evening blue hour, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"begin": {
"type": [
"string",
"null"
],
"description": "Start of the evening blue hour, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
}
}
},
"morning": {
"type": "object",
"required": [
"begin",
"end"
],
"properties": {
"end": {
"type": [
"string",
"null"
],
"description": "End of the morning blue hour, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"begin": {
"type": [
"string",
"null"
],
"description": "Start of the morning blue hour, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
}
}
}
}
},
"day_length": {
"type": [
"integer",
"null"
],
"description": "Seconds of daylight: 86400 with midnight sun, 0 with polar night, null on a day with only one of sunrise/sunset."
},
"last_light": {
"type": [
"string",
"null"
],
"description": "Last light (end of astronomical twilight), ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"moon_phase": {
"enum": [
"New Moon",
"Waxing Crescent",
"First Quarter",
"Waxing Gibbous",
"Full Moon",
"Waning Gibbous",
"Last Quarter",
"Waning Crescent"
],
"type": "string",
"description": "Moon phase at local noon."
},
"solar_noon": {
"type": [
"string",
"null"
],
"description": "Solar noon, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"sun_status": {
"enum": [
"normal",
"midnight_sun",
"polar_night"
],
"type": "string"
},
"utc_offset": {
"type": "string",
"description": "UTC offset of the location at local noon, like +02:00."
},
"attribution": {
"type": "string"
},
"first_light": {
"type": [
"string",
"null"
],
"description": "First light (start of astronomical twilight), ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"golden_hour": {
"type": "object",
"required": [
"morning",
"evening"
],
"properties": {
"evening": {
"type": "object",
"required": [
"begin",
"end"
],
"properties": {
"end": {
"type": [
"string",
"null"
],
"description": "End of the evening golden hour, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"begin": {
"type": [
"string",
"null"
],
"description": "Start of the evening golden hour, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
}
}
},
"morning": {
"type": "object",
"required": [
"begin",
"end"
],
"properties": {
"end": {
"type": [
"string",
"null"
],
"description": "End of the morning golden hour, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"begin": {
"type": [
"string",
"null"
],
"description": "Start of the morning golden hour, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
}
}
}
}
},
"solar_position": {
"type": "object",
"required": [
"sunrise_azimuth",
"sunset_azimuth",
"solar_noon_azimuth",
"solar_noon_altitude"
],
"properties": {
"sunset_azimuth": {
"type": [
"number",
"null"
],
"description": "Azimuth of the sun at sunset in degrees; null if the event does not happen."
},
"sunrise_azimuth": {
"type": [
"number",
"null"
],
"description": "Azimuth of the sun at sunrise in degrees; null if the event does not happen."
},
"solar_noon_azimuth": {
"type": [
"number",
"null"
],
"description": "Azimuth of the sun at solar noon in degrees; null if the event does not happen."
},
"solar_noon_altitude": {
"type": [
"number",
"null"
],
"description": "Altitude of the sun at solar noon in degrees; null if the event does not happen."
}
}
},
"moon_illumination": {
"type": "number",
"description": "Illuminated fraction of the moon at local noon, in percent (0-100)."
},
"civil_twilight_end": {
"type": [
"string",
"null"
],
"description": "End of civil twilight, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"civil_twilight_begin": {
"type": [
"string",
"null"
],
"description": "Start of civil twilight, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"nautical_twilight_end": {
"type": [
"string",
"null"
],
"description": "End of nautical twilight, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"nautical_twilight_begin": {
"type": [
"string",
"null"
],
"description": "Start of nautical twilight, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"astronomical_twilight_end": {
"type": [
"string",
"null"
],
"description": "End of astronomical twilight, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"astronomical_twilight_begin": {
"type": [
"string",
"null"
],
"description": "Start of astronomical twilight, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
}
}
},
"annotations": {
"title": "Sunrise & sunset times",
"readOnlyHint": true,
"openWorldHint": false
}
}Same per-day data as get_sun_times but for an inclusive date range (up to 366 days) in a single call. Use this instead of repeated get_sun_times calls when you need several consecutive days. The days array may contain fewer entries than the number of dates requested: calendar days that never existed in that timezone (Samoa skipped 30 December 2011 when it crossed the date line) are left out, so read each entry's date field instead of assuming one per requested date.
| Parameter | Type | Description |
|---|---|---|
| tz | string | IANA timezone like 'Europe/Madrid'. Omit to use the local timezone of the coordinates, resolved automatically (recommended). |
| lat * | number | Latitude in decimal degrees. |
| lng * | number | Longitude in decimal degrees. |
| date_end * | string | Last day (inclusive), YYYY-MM-DD. The range covers at most 366 days counting both ends, so date_end can be at most 365 days after date_start. |
| date_start * | string | First day, YYYY-MM-DD. |
{
"name": "get_sun_times_range",
"title": "Sunrise & sunset times for a date range",
"description": "Same per-day data as get_sun_times but for an inclusive date range (up to 366 days) in a single call. Use this instead of repeated get_sun_times calls when you need several consecutive days. The days array may contain fewer entries than the number of dates requested: calendar days that never existed in that timezone (Samoa skipped 30 December 2011 when it crossed the date line) are left out, so read each entry's date field instead of assuming one per requested date.",
"inputSchema": {
"type": "object",
"required": [
"lat",
"lng",
"date_start",
"date_end"
],
"properties": {
"tz": {
"type": "string",
"description": "IANA timezone like 'Europe/Madrid'. Omit to use the local timezone of the coordinates, resolved automatically (recommended)."
},
"lat": {
"type": "number",
"maximum": 90,
"minimum": -90,
"description": "Latitude in decimal degrees."
},
"lng": {
"type": "number",
"maximum": 180,
"minimum": -180,
"description": "Longitude in decimal degrees."
},
"date_end": {
"type": "string",
"description": "Last day (inclusive), YYYY-MM-DD. The range covers at most 366 days counting both ends, so date_end can be at most 365 days after date_start."
},
"date_start": {
"type": "string",
"description": "First day, YYYY-MM-DD."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"tzid",
"lat",
"lng",
"days"
],
"properties": {
"lat": {
"type": "number"
},
"lng": {
"type": "number"
},
"days": {
"type": "array",
"items": {
"type": "object",
"required": [
"date",
"utc_offset",
"sunrise",
"sunset",
"solar_noon",
"day_length",
"sun_status",
"civil_twilight_begin",
"civil_twilight_end",
"nautical_twilight_begin",
"nautical_twilight_end",
"astronomical_twilight_begin",
"astronomical_twilight_end",
"dawn",
"dusk",
"first_light",
"last_light",
"golden_hour",
"blue_hour",
"solar_position",
"moonrise",
"moonset",
"moon_phase",
"moon_illumination"
],
"properties": {
"date": {
"type": "string",
"description": "Local date, YYYY-MM-DD."
},
"dawn": {
"type": [
"string",
"null"
],
"description": "Dawn (start of civil twilight), ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"dusk": {
"type": [
"string",
"null"
],
"description": "Dusk (end of civil twilight), ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"sunset": {
"type": [
"string",
"null"
],
"description": "Sunset, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"moonset": {
"type": [
"string",
"null"
],
"description": "Moonset, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"sunrise": {
"type": [
"string",
"null"
],
"description": "Sunrise, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"moonrise": {
"type": [
"string",
"null"
],
"description": "Moonrise, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"blue_hour": {
"type": "object",
"required": [
"morning",
"evening"
],
"properties": {
"evening": {
"type": "object",
"required": [
"begin",
"end"
],
"properties": {
"end": {
"type": [
"string",
"null"
],
"description": "End of the evening blue hour, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"begin": {
"type": [
"string",
"null"
],
"description": "Start of the evening blue hour, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
}
}
},
"morning": {
"type": "object",
"required": [
"begin",
"end"
],
"properties": {
"end": {
"type": [
"string",
"null"
],
"description": "End of the morning blue hour, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"begin": {
"type": [
"string",
"null"
],
"description": "Start of the morning blue hour, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
}
}
}
}
},
"day_length": {
"type": [
"integer",
"null"
],
"description": "Seconds of daylight: 86400 with midnight sun, 0 with polar night, null on a day with only one of sunrise/sunset."
},
"last_light": {
"type": [
"string",
"null"
],
"description": "Last light (end of astronomical twilight), ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"moon_phase": {
"enum": [
"New Moon",
"Waxing Crescent",
"First Quarter",
"Waxing Gibbous",
"Full Moon",
"Waning Gibbous",
"Last Quarter",
"Waning Crescent"
],
"type": "string",
"description": "Moon phase at local noon."
},
"solar_noon": {
"type": [
"string",
"null"
],
"description": "Solar noon, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"sun_status": {
"enum": [
"normal",
"midnight_sun",
"polar_night"
],
"type": "string"
},
"utc_offset": {
"type": "string",
"description": "UTC offset of the location at local noon, like +02:00."
},
"first_light": {
"type": [
"string",
"null"
],
"description": "First light (start of astronomical twilight), ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"golden_hour": {
"type": "object",
"required": [
"morning",
"evening"
],
"properties": {
"evening": {
"type": "object",
"required": [
"begin",
"end"
],
"properties": {
"end": {
"type": [
"string",
"null"
],
"description": "End of the evening golden hour, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"begin": {
"type": [
"string",
"null"
],
"description": "Start of the evening golden hour, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
}
}
},
"morning": {
"type": "object",
"required": [
"begin",
"end"
],
"properties": {
"end": {
"type": [
"string",
"null"
],
"description": "End of the morning golden hour, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"begin": {
"type": [
"string",
"null"
],
"description": "Start of the morning golden hour, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
}
}
}
}
},
"solar_position": {
"type": "object",
"required": [
"sunrise_azimuth",
"sunset_azimuth",
"solar_noon_azimuth",
"solar_noon_altitude"
],
"properties": {
"sunset_azimuth": {
"type": [
"number",
"null"
],
"description": "Azimuth of the sun at sunset in degrees; null if the event does not happen."
},
"sunrise_azimuth": {
"type": [
"number",
"null"
],
"description": "Azimuth of the sun at sunrise in degrees; null if the event does not happen."
},
"solar_noon_azimuth": {
"type": [
"number",
"null"
],
"description": "Azimuth of the sun at solar noon in degrees; null if the event does not happen."
},
"solar_noon_altitude": {
"type": [
"number",
"null"
],
"description": "Altitude of the sun at solar noon in degrees; null if the event does not happen."
}
}
},
"moon_illumination": {
"type": "number",
"description": "Illuminated fraction of the moon at local noon, in percent (0-100)."
},
"civil_twilight_end": {
"type": [
"string",
"null"
],
"description": "End of civil twilight, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"civil_twilight_begin": {
"type": [
"string",
"null"
],
"description": "Start of civil twilight, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"nautical_twilight_end": {
"type": [
"string",
"null"
],
"description": "End of nautical twilight, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"nautical_twilight_begin": {
"type": [
"string",
"null"
],
"description": "Start of nautical twilight, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"astronomical_twilight_end": {
"type": [
"string",
"null"
],
"description": "End of astronomical twilight, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
},
"astronomical_twilight_begin": {
"type": [
"string",
"null"
],
"description": "Start of astronomical twilight, ISO 8601 with the local UTC offset (the next date if that evening's event comes after local midnight); null if it does not happen that day."
}
}
},
"description": "One entry per local day that exists in that timezone, in order; match entries by their date field."
},
"tzid": {
"type": "string",
"description": "IANA timezone used."
},
"attribution": {
"type": "string"
}
}
},
"annotations": {
"title": "Sunrise & sunset times for a date range",
"readOnlyHint": true,
"openWorldHint": false
}
}Sun and moon times for any location on Earth. Call get_sun_times for one day, or get_sun_times_range for up to 366 consecutive days in one call. Coordinates are decimal degrees; times come back in the local timezone of the location. Data by Sunrise-Sunset.org (https://sunrise-sunset.org), free to use with attribution.
Names, descriptions and schemas were written by the server and are shown as data.