Home / Servers / Public Knowledge / sunrise_sunset
Sunrise sunset
An MCP tool from the Public Knowledge server, hosted on mcp.hjlabs.in.
Sunrise, sunset, solar noon, day length and civil/nautical/astronomical twilight for any coordinates and date, computed with the NOAA solar algorithm (no network). Times are UTC ISO strings, or in `timezone` if given. Accurate to about a minute.
Name on the gateway: knowledge__sunrise_sunset · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
latitude required | number | Latitude in degrees. |
longitude required | number | Longitude in degrees. |
date | string | Date as YYYY-MM-DD. Default today (UTC). |
timezone | string | IANA timezone to present times in, e.g. "Asia/Kolkata". |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "knowledge__sunrise_sunset",
"arguments": {
"latitude": 0,
"longitude": 0
}
}Or connect the Public Knowledge server directly, which lists 47 tools including this one:
claude mcp add --transport http hj-knowledge https://mcp.hjlabs.in/mcp/knowledge \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the sunrise sunset tool with latitude set to ….