find_postal_codes

Pack: geonames · Endpoint: https://gateway.pipeworx.io/geonames/mcp

Look up postal/ZIP codes and places by each other. Pass “postal_code” (+ country) to find the place(s) a code maps to (“what city is ZIP 90210”); or pass “place” (+ country) to find the postal codes for a place name (“postal codes for Paris”). Returns place name, country, admin region (state/county), postal code, and coordinates.

Parameters

NameTypeRequiredDescription
_apiKeystringyesGeoNames username
postal_codestringnoPostal/ZIP code to look up (e.g. “90210”, “75001”). Provide country for accuracy.
placestringnoPlace name to find postal codes for (e.g. “Paris”, “Springfield”). Use instead of postal_code.
countrystringnoISO 3166-1 alpha-2 country code (e.g. “US”, “FR”). Strongly recommended — codes and place names repeat across countries.
limitnumbernoMax results (default 10, max 100).

Example call

Arguments

{
  "postal_code": "90210",
  "country": "US",
  "_apiKey": "your-geonames-api-key"
}

curl

curl -X POST https://gateway.pipeworx.io/geonames/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"find_postal_codes","arguments":{"postal_code":"90210","country":"US","_apiKey":"your-geonames-api-key"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('find_postal_codes', {
  "postal_code": "90210",
  "country": "US",
  "_apiKey": "your-geonames-api-key"
});

More examples

{
  "place": "Paris",
  "country": "FR",
  "_apiKey": "your-geonames-api-key"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "geonames": {
      "url": "https://gateway.pipeworx.io/geonames/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 9, 2026