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

NameTypeRequiredDescription
station_idstringyes4-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

FieldTypeDescription
station_idstring4-char station ID (ICAO)
timestampstring | nullObservation time ISO 8601
conditionsstring | nullCurrent weather conditions
temperature_cnumber | nullTemperature in Celsius
temperature_fnumber | nullTemperature in Fahrenheit
dewpoint_cnumber | nullDewpoint in Celsius
humidity_pctnumber | nullRelative humidity percentage
wind_speed_mphnumber | nullWind speed in mph
wind_gust_mphnumber | nullWind gust in mph
wind_direction_degnumber | nullWind direction in degrees
pressure_panumber | nullBarometric pressure in Pa
sea_level_pressure_panumber | nullSea level pressure in Pa
visibility_mnumber | nullVisibility in meters
heat_index_cnumber | nullHeat index in Celsius
wind_chill_cnumber | nullWind 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.

Regenerated from source · build June 26, 2026