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

NameTypeRequiredDescription
querystringyesPlace name to look up, e.g. “Paris”, “Springfield,IL,US”.
limitnumbernoMaximum 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.

Regenerated from source · build June 3, 2026