geocode
Pack: openweather · Endpoint: https://gateway.pipeworx.io/openweather/mcp
Resolve a place name (city, optionally with state/country) to geographic coordinates (latitude/longitude). Useful before calling air_quality, which needs lat/lon. Example: geocode({ query: “Paris”, limit: 5 })
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Place name to look up, e.g. “Paris”, “Springfield,IL,US”. |
limit | number | no | Maximum number of matching locations to return (default 5). |
Example call
curl -X POST https://gateway.pipeworx.io/openweather/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"geocode","arguments":{}}}'
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"openweather": {
"url": "https://gateway.pipeworx.io/openweather/mcp"
}
}
}
See Getting Started for client-specific install steps.