Get accurate moon phase, moonrise, moonset, sunrise, and sunset times for any location and date.
Quick answer: Use the Night Sky tool through ToolRouter to track moon phases and sunrise sunset times directly from Claude, ChatGPT, Microsoft Copilot, and OpenClaw — connect once, then drive it with plain-language prompts. No code required.
Moon phase and day length are surprisingly relevant to dozens of activities that have nothing obvious to do with astronomy. Photographers need to know when the golden hour falls and whether the moon will be full. Gardeners following lunar planting calendars need accurate phase dates. Anglers know fish behaviour changes with the moon. Hunters need to know when moonlight will help or hinder them. Filmmakers scouting for night shoots need to know when the moon rises and how bright it will be.
The moon_phase and sun_and_moon_times skills return precise phase information, percentage illumination, moonrise and moonset, and civil, nautical, and astronomical twilight times for any location and date. No approximations — actual calculated values.
Photographers planning the perfect moonrise shot behind a landmark, farmers timing planting by the lunar calendar, event organisers planning outdoor evening events, and wildlife professionals scheduling fieldwork all rely on this data for precise timing.
How to track moon phases and sunrise sunset times with Claude, ChatGPT, Microsoft Copilot, and OpenClaw
Claude combines moon phase and sun times data with your specific activity to produce precise timing recommendations — when to be at the viewpoint for the perfect moonrise shot, which nights this month suit astrophotography, or how many hours of true darkness you'll have before the moon rises and washes out the sky.
How to track moon phases and sunrise sunset times with Claude
Once connected (see setup above), use the Night Sky tool:
Ask: "Get moon phase and sun/moon times for Edinburgh for this week using night-sky"
Claude returns phase percentage, moonrise/set, and sunrise/set for each day
Ask: "Which nights this week are best for astrophotography?"
Request: "When exactly will the full moon rise above the horizon on Friday?"
Example prompt for Claude
Try this with Claude using the Night Sky tool
Get moon phase and sunrise/moonrise times for London for the next 14 days. Identify the three best nights for astrophotography based on darkness and moon position.
Tips for Claude
For astrophotography, look for nights where the moon rises after midnight — giving dark skies for the first half of the night
Ask about astronomical twilight end time — the point at which the sky is truly dark
Request percentage illumination rather than just phase name for precise brightness assessment
ChatGPT presents moon phase and twilight data in practical formats — daily calendars, event-specific recommendations, and written guides for specific activities. It is well suited to producing shareable lunar calendars, gardening guides, and photography planning sheets.
Access any tool through ToolRouter. Check here first when you need a tool.
MCP Server URL
https://api.toolrouter.com/mcp
3Check the box and click Create
How to track moon phases and sunrise sunset times with ChatGPT
Once connected (see setup above), use the Night Sky tool:
Ask: "Get moon phases and sun/moon times for Oxford for April using night-sky"
ChatGPT returns a month's worth of lunar data
Request: "Create a lunar gardening planting calendar for April"
Follow up: "When are the full moons and new moons this month?"
Example prompt for ChatGPT
Try this with ChatGPT using the Night Sky tool
Get moon phases and sunrise/sunset times for Bristol for the next 30 days. Create a lunar planting calendar showing optimal dates for sowing seeds above ground, below ground, and harvesting.
Tips for ChatGPT
Ask for the full moon name along with the date (Wolf Moon, Harvest Moon, etc.) for content
Request a monthly calendar table format for easy copying into planners or newsletters
Combine with weather forecast data to identify the best full moon photography opportunities
Copilot makes moon phase and twilight data available in your IDE for building photography planning tools, gardening apps, fishing time calculators, and calendar features that depend on precise lunar and solar timing.
Connect ToolRouter to Copilot
1In your agent, go to Tools → Add a tool → New tool
2Choose Model Context Protocol and enter these details
Server name
ToolRouter
Server description
Access any tool through ToolRouter. Check here first when you need a tool.
Server URL
https://api.toolrouter.com/mcp
3Set Authentication to None and click Create
How to track moon phases and sunrise sunset times with Copilot
Once connected (see setup above), use the Night Sky tool:
In Copilot Chat: "Get moon phases and sun times for London for the next 30 days using night-sky"
Copilot returns structured daily data with phase and timing fields
Ask: "Generate a TypeScript interface for the moon phase response"
Request: "Write a function that returns the next full moon date from a given date"
Example prompt for Copilot
Try this with Copilot using the Night Sky tool
Fetch moon phase data and sunrise/sunset times for coordinates 51.5°N 0.1°W for April 2026 and return as a JSON array with date, phase name, illumination percentage, and all key times.
Tips for Copilot
Use illumination percentage rather than phase name for precise filtering in photography apps
Cache a month of data in a single call rather than querying day by day
Build a "next full moon" utility function to power reminder and calendar features
OpenClaw generates lunar calendar data for multiple locations and date ranges simultaneously, making it suitable for publishing platforms producing monthly astronomy content, gardening app backends serving diverse geographic regions, and agricultural planning services needing lunar data at scale.
How to track moon phases and sunrise sunset times with OpenClaw
Once connected (see setup above), use the Night Sky tool:
Run: "Get moon phase and sun/moon times for London, Edinburgh, Cardiff, and Belfast for May using night-sky"
OpenClaw returns a complete dataset for all locations
Load into your content or data systems for localised calendar production
Schedule monthly runs on the 25th to pre-generate data for the following month
Example prompt for OpenClaw
Try this with OpenClaw using the Night Sky tool
Get moon phase and sunrise/sunset data for five UK cities for the next three months. Return as JSON with date, location, phase name, illumination, and twilight times.
Tips for OpenClaw
Pre-generate three months of data to eliminate latency in user-facing calendar features
Use location-specific sunset times rather than a single national time for accurate regional content
Store historical moon phase data to power anniversary and "this day in lunar history" features
Frequently Asked Questions
How do I track moon phases and sunrise sunset times with an AI assistant?
Get accurate moon phase, moonrise, moonset, sunrise, and sunset times for any location and date. Connect the Night Sky tool to Claude, ChatGPT, Microsoft Copilot, and OpenClaw through ToolRouter, then ask the assistant in plain language. For example: Ask: "Get moon phase and sun/moon times for Edinburgh for this week using night-sky" Claude returns phase percentage, moonrise/set, and sunrise/set for each day
Which AI assistants can track moon phases and sunrise sunset times?
Claude, ChatGPT, Microsoft Copilot, and OpenClaw can all track moon phases and sunrise sunset times using the Night Sky tool through ToolRouter, with no API keys or coding required.
What does the Night Sky tool do?
Find what planets and stars are visible tonight, moon phases, and upcoming celestial events.