sunrise
Pack: met-no · Endpoint: https://gateway.pipeworx.io/met-no/mcp
Sunrise / sunset / moon events for a date.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
lat | number | yes | |
lon | number | yes | |
date | string | no | YYYY-MM-DD (default today UTC). |
offset | string | no | UTC 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
| Field | Type | Description |
|---|---|---|
location | object | |
time | array |
Full JSON Schema
{
"type": "object",
"properties": {
"location": {
"type": "object",
"properties": {
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
},
"height": {
"type": "number",
"description": "Elevation in meters"
}
}
},
"time": {
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "Date in YYYY-MM-DD format"
},
"sunrise": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"sunset": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"moonrise": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"moonset": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"high_moon": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"low_moon": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"moon_phase": {
"type": "number",
"description": "Moon phase illumination fraction"
}
}
}
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"met-no": {
"url": "https://gateway.pipeworx.io/met-no/mcp"
}
}
}
See Getting Started for client-specific install steps.