Night Sky
Stars, planets, and moon phases
See which planets and stars are visible from any location, get moon phases, sunrise/sunset times, upcoming eclipses, and celestial events like equinoxes, solstices, meteor showers, and asteroid approaches. Data from the US Naval Observatory and NASA JPL.
Find which planets and bright stars are visible from a location at a given time. Returns all celestial objects above the horizon with altitude, compass direction, and object type.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "night-sky",
"skill": "whats_visible",
"input": {
"latitude": 34.05,
"longitude": -118.24,
"time": "21:00",
"timezone_offset": -7
}
}' \
https://api.toolrouter.com/v1/tools/callGet the current moon phase, illumination percentage, moonrise and moonset times, and the dates of the next four major phases. Provide coordinates for location-specific moonrise/moonset times.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "night-sky",
"skill": "moon_phase",
"input": {
"date": "2026-03-22"
}
}' \
https://api.toolrouter.com/v1/tools/callGet sunrise, sunset, moonrise, moonset, civil twilight begin and end, moon phase, and total daylight hours for any location and date. Essential for planning outdoor activities, photography, or stargazing.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "night-sky",
"skill": "sun_and_moon_times",
"input": {
"latitude": 40.71,
"longitude": -74.01,
"timezone_offset": -4
}
}' \
https://api.toolrouter.com/v1/tools/callGet upcoming solar and lunar eclipses for a given year, including dates, types (total, annular, partial, penumbral), and timing. Solar eclipse data from the US Naval Observatory; lunar eclipses from NASA GSFC catalog (2025-2040).
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "night-sky",
"skill": "eclipse_forecast",
"input": {
"year": 2026
}
}' \
https://api.toolrouter.com/v1/tools/callGet a combined timeline of upcoming astronomical events including equinoxes, solstices, meteor shower peaks, and asteroid close approaches to Earth. Data from the US Naval Observatory and NASA JPL, plus well-known annual meteor shower dates.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "night-sky",
"skill": "celestial_events",
"input": {
"start_date": "2026-03-22"
}
}' \
https://api.toolrouter.com/v1/tools/callQuick Start
claude mcp add --transport stdio \
--env TOOLROUTER_API_KEY=YOUR_API_KEY \
toolrouter -- npx -y toolrouter-mcpcurl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{"tool":"night-sky","skill":"whats_visible","input":{}}' \
https://api.toolrouter.com/v1/tools/callFrequently Asked Questions
What can I see from my location tonight?
`whats_visible` shows planets and bright stars above the horizon for a specific latitude and longitude, sorted by altitude with compass direction.
Can it tell me sunrise, sunset, moonrise, and moonset?
Yes. `sun_and_moon_times` returns sunrise, sunset, moonrise, moonset, civil twilight, and daylight hours. `moon_phase` adds the current phase and the next major phases.
Does it include eclipses and meteor showers?
`eclipse_forecast` lists upcoming solar and lunar eclipses by year, and `celestial_events` adds equinoxes, solstices, meteor shower peaks, and asteroid close approaches.
Do I need exact coordinates and a time zone?
For location-based results, pass latitude, longitude, and `timezone_offset`. `moon_phase` can work from a date alone if you only need phase timing.