lookup_city

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

Get all postal codes for a city in a given country and state/province.

Parameters

NameTypeRequiredDescription
countrystringyesISO 3166-1 alpha-2 country code (e.g. “us”, “gb”).
statestringyesState or province abbreviation (e.g. “ca” for California).
citystringyesCity name (e.g. “beverly+hills” or “beverly hills”).

Example call

Arguments

{
  "country": "us",
  "state": "ca",
  "city": "beverly hills"
}

curl

curl -X POST https://gateway.pipeworx.io/zippopotam/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"lookup_city","arguments":{"country":"us","state":"ca","city":"beverly hills"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('lookup_city', {
  "country": "us",
  "state": "ca",
  "city": "beverly hills"
});

More examples

{
  "country": "gb",
  "state": "england",
  "city": "london"
}

Response shape

Always returns: country, country_abbreviation, state, state_abbreviation, places

FieldTypeDescription
countrystringFull country name
country_abbreviationstringISO 3166-1 alpha-2 country code
statestringState or province name
state_abbreviationstringState or province abbreviation
placesarrayList of postal codes in the city
Full JSON Schema
{
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "description": "Full country name"
    },
    "country_abbreviation": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code"
    },
    "state": {
      "type": "string",
      "description": "State or province name"
    },
    "state_abbreviation": {
      "type": "string",
      "description": "State or province abbreviation"
    },
    "places": {
      "type": "array",
      "description": "List of postal codes in the city",
      "items": {
        "type": "object",
        "properties": {
          "post_code": {
            "type": "string",
            "description": "ZIP or postal code"
          },
          "name": {
            "type": "string",
            "description": "Place name (city)"
          },
          "state": {
            "type": "string",
            "description": "State or province name"
          },
          "state_abbreviation": {
            "type": "string",
            "description": "State or province abbreviation"
          },
          "lat": {
            "type": "number",
            "description": "Latitude coordinate"
          },
          "lon": {
            "type": "number",
            "description": "Longitude coordinate"
          }
        },
        "required": [
          "post_code",
          "name",
          "state",
          "state_abbreviation",
          "lat",
          "lon"
        ]
      }
    }
  },
  "required": [
    "country",
    "country_abbreviation",
    "state",
    "state_abbreviation",
    "places"
  ]
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026