get_weather
Pack: weather · Endpoint: https://gateway.pipeworx.io/weather/mcp
Get current weather conditions by city name or coordinates. Returns temperature, humidity, wind speed, and conditions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
latitude | number | yes | Latitude of the location |
longitude | number | yes | Longitude of the location |
Example call
Arguments
{
"latitude": 40.7128,
"longitude": -74.006
}
curl
curl -X POST https://gateway.pipeworx.io/weather/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_weather","arguments":{"latitude":40.7128,"longitude":-74.006}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_weather', {
"latitude": 40.7128,
"longitude": -74.006
});
More examples
{
"latitude": 51.5074,
"longitude": -0.1278
}
Response shape
Always returns: temperature_f, feels_like_f, humidity_pct, conditions, wind_mph, wind_direction_deg
| Field | Type | Description |
|---|---|---|
temperature_f | number | Current temperature in Fahrenheit |
feels_like_f | number | Apparent/feels-like temperature in Fahrenheit |
humidity_pct | number | Relative humidity percentage |
conditions | string | Weather condition description from WMO code |
wind_mph | number | Wind speed in miles per hour |
wind_direction_deg | number | Wind direction in degrees (0-360) |
Full JSON Schema
{
"type": "object",
"properties": {
"temperature_f": {
"type": "number",
"description": "Current temperature in Fahrenheit"
},
"feels_like_f": {
"type": "number",
"description": "Apparent/feels-like temperature in Fahrenheit"
},
"humidity_pct": {
"type": "number",
"description": "Relative humidity percentage"
},
"conditions": {
"type": "string",
"description": "Weather condition description from WMO code"
},
"wind_mph": {
"type": "number",
"description": "Wind speed in miles per hour"
},
"wind_direction_deg": {
"type": "number",
"description": "Wind direction in degrees (0-360)"
}
},
"required": [
"temperature_f",
"feels_like_f",
"humidity_pct",
"conditions",
"wind_mph",
"wind_direction_deg"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"weather": {
"url": "https://gateway.pipeworx.io/weather/mcp"
}
}
}
See Getting Started for client-specific install steps.