sunrise

Pack: met-no · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/sunrise for the schema, then POST the same URL with its arguments for the data.

Sunrise / sunset / moon events for a date.

Parameters

NameTypeRequiredDescription
latnumberyes
lonnumberyes
datestringnoYYYY-MM-DD (default today UTC).
offsetstringnoUTC offset, e.g. “+01:00” (default “+00:00”).

Example call

Arguments

{
  "lat": 59.9139,
  "lon": 10.7522
}

curl

curl -X POST https://gateway.pipeworx.io/met-no/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"sunrise","arguments":{"lat":59.9139,"lon":10.7522}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('sunrise', {
  "lat": 59.9139,
  "lon": 10.7522
});

More examples

{
  "lat": 60.3913,
  "lon": 5.3221,
  "date": "2025-06-21",
  "offset": "+02:00"
}

Response shape

FieldTypeDescription
copyrightstring
licenseURLstring
typestring
geometryobject
whenobject
propertiesobject
Full JSON Schema
{
  "type": "object",
  "properties": {
    "copyright": {
      "type": "string"
    },
    "licenseURL": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "geometry": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "coordinates": {
          "type": "array",
          "items": {
            "type": "number"
          }
        }
      }
    },
    "when": {
      "type": "object",
      "properties": {
        "interval": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "properties": {
      "type": "object",
      "properties": {
        "body": {
          "type": "string"
        },
        "sunrise": {
          "type": "object",
          "properties": {
            "time": {
              "type": "string"
            },
            "azimuth": {
              "type": "number"
            }
          }
        },
        "sunset": {
          "type": "object",
          "properties": {
            "time": {
              "type": "string"
            },
            "azimuth": {
              "type": "number"
            }
          }
        },
        "solarnoon": {
          "type": "object",
          "properties": {
            "time": {
              "type": "string"
            },
            "disc_centre_elevation": {
              "type": "number"
            },
            "visible": {
              "type": "boolean"
            }
          }
        },
        "solarmidnight": {
          "type": "object",
          "properties": {
            "time": {
              "type": "string"
            },
            "disc_centre_elevation": {
              "type": "number"
            },
            "visible": {
              "type": "boolean"
            }
          }
        }
      }
    }
  }
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the met-no pack
{
  "mcpServers": {
    "met-no": {
      "url": "https://gateway.pipeworx.io/met-no/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 5, 2026