astronomy

Pack: weatherapi · Endpoint: https://gateway.pipeworx.io/weatherapi/mcp

Get astronomy data for a location and date: sunrise, sunset, moonrise, moonset, moon phase, and moon illumination. Example: astronomy({ q: “Reykjavik”, dt: “2026-06-21” }).

Parameters

NameTypeRequiredDescription
qstringyes
dtstringnoDate in YYYY-MM-DD format (optional; defaults to today).

Example call

Arguments

{
  "q": "Reykjavik",
  "dt": "2026-06-21"
}

curl

curl -X POST https://gateway.pipeworx.io/weatherapi/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"astronomy","arguments":{"q":"Reykjavik","dt":"2026-06-21"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('astronomy', {
  "q": "Reykjavik",
  "dt": "2026-06-21"
});

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "weatherapi": {
      "url": "https://gateway.pipeworx.io/weatherapi/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 2, 2026