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
| Name | Type | Required | Description |
|---|---|---|---|
country | string | yes | ISO 3166-1 alpha-2 country code (e.g. “us”, “gb”). |
state | string | yes | State or province abbreviation (e.g. “ca” for California). |
city | string | yes | City 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
| Field | Type | Description |
|---|---|---|
country | string | Full country name |
country_abbreviation | string | ISO 3166-1 alpha-2 country code |
state | string | State or province name |
state_abbreviation | string | State or province abbreviation |
places | array | List 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.