lookup_zipcode
Pack: zippopotam · Endpoint: https://gateway.pipeworx.io/zippopotam/mcp
Look up place information (city, state, coordinates) for a ZIP or postal code in a given country.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
country | string | yes | ISO 3166-1 alpha-2 country code (e.g. “us”, “gb”, “de”). |
zipcode | string | yes | ZIP or postal code to look up (e.g. “90210”). |
Example call
Arguments
{
"country": "us",
"zipcode": "90210"
}
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_zipcode","arguments":{"country":"us","zipcode":"90210"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('lookup_zipcode', {
"country": "us",
"zipcode": "90210"
});
More examples
{
"country": "gb",
"zipcode": "SW1A1AA"
}
Response shape
Always returns: post_code, country, country_abbreviation, places
| Field | Type | Description |
|---|---|---|
post_code | string | ZIP or postal code |
country | string | Full country name |
country_abbreviation | string | ISO 3166-1 alpha-2 country code |
places | array | List of places associated with the postal code |
Full JSON Schema
{
"type": "object",
"properties": {
"post_code": {
"type": "string",
"description": "ZIP or postal code"
},
"country": {
"type": "string",
"description": "Full country name"
},
"country_abbreviation": {
"type": "string",
"description": "ISO 3166-1 alpha-2 country code"
},
"places": {
"type": "array",
"description": "List of places associated with the postal code",
"items": {
"type": "object",
"properties": {
"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": [
"name",
"state",
"state_abbreviation",
"lat",
"lon"
]
}
}
},
"required": [
"post_code",
"country",
"country_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.