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

NameTypeDescription
latitude requirednumberLatitude in degrees.
longitude requirednumberLongitude in degrees.
datestringDate as YYYY-MM-DD. Default today (UTC).
timezonestringIANA 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:

call_tool arguments
{
  "name": "knowledge__sunrise_sunset",
  "arguments": {
    "latitude": 0,
    "longitude": 0
  }
}

Or connect the Public Knowledge server directly, which lists 47 tools including this one:

Run in your terminal
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 ….

More from Public Knowledge