get_observation
Pack: nws · Endpoint: https://gateway.pipeworx.io/nws/mcp
Latest observation from a specific NWS weather station. Returns temperature, humidity, wind, visibility, pressure, and present-weather codes.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
station_id | string | yes | 4-character NWS / ICAO station ID (e.g., “KSFO”, “KJFK”, “KDEN”) |
Example call
Arguments
{
"station_id": "KSFO"
}
curl
curl -X POST https://gateway.pipeworx.io/nws/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_observation","arguments":{"station_id":"KSFO"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_observation', {
"station_id": "KSFO"
});
More examples
{
"station_id": "KJFK"
}
Response shape
Always returns: station_id
| Field | Type | Description |
|---|---|---|
station_id | string | 4-char station ID (ICAO) |
timestamp | string | null | Observation time ISO 8601 |
conditions | string | null | Current weather conditions |
temperature_c | number | null | Temperature in Celsius |
temperature_f | number | null | Temperature in Fahrenheit |
dewpoint_c | number | null | Dewpoint in Celsius |
humidity_pct | number | null | Relative humidity percentage |
wind_speed_mph | number | null | Wind speed in mph |
wind_gust_mph | number | null | Wind gust in mph |
wind_direction_deg | number | null | Wind direction in degrees |
pressure_pa | number | null | Barometric pressure in Pa |
sea_level_pressure_pa | number | null | Sea level pressure in Pa |
visibility_m | number | null | Visibility in meters |
heat_index_c | number | null | Heat index in Celsius |
wind_chill_c | number | null | Wind chill in Celsius |
Full JSON Schema
{
"type": "object",
"properties": {
"station_id": {
"type": "string",
"description": "4-char station ID (ICAO)"
},
"timestamp": {
"type": [
"string",
"null"
],
"description": "Observation time ISO 8601"
},
"conditions": {
"type": [
"string",
"null"
],
"description": "Current weather conditions"
},
"temperature_c": {
"type": [
"number",
"null"
],
"description": "Temperature in Celsius"
},
"temperature_f": {
"type": [
"number",
"null"
],
"description": "Temperature in Fahrenheit"
},
"dewpoint_c": {
"type": [
"number",
"null"
],
"description": "Dewpoint in Celsius"
},
"humidity_pct": {
"type": [
"number",
"null"
],
"description": "Relative humidity percentage"
},
"wind_speed_mph": {
"type": [
"number",
"null"
],
"description": "Wind speed in mph"
},
"wind_gust_mph": {
"type": [
"number",
"null"
],
"description": "Wind gust in mph"
},
"wind_direction_deg": {
"type": [
"number",
"null"
],
"description": "Wind direction in degrees"
},
"pressure_pa": {
"type": [
"number",
"null"
],
"description": "Barometric pressure in Pa"
},
"sea_level_pressure_pa": {
"type": [
"number",
"null"
],
"description": "Sea level pressure in Pa"
},
"visibility_m": {
"type": [
"number",
"null"
],
"description": "Visibility in meters"
},
"heat_index_c": {
"type": [
"number",
"null"
],
"description": "Heat index in Celsius"
},
"wind_chill_c": {
"type": [
"number",
"null"
],
"description": "Wind chill in Celsius"
}
},
"required": [
"station_id"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"nws": {
"url": "https://gateway.pipeworx.io/nws/mcp"
}
}
}
See Getting Started for client-specific install steps.