Skip to main content
Glama
PostalDataPI

PostalDataPI MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
POSTALDATAPI_KEYYesYour API key for PostalDataPI, obtained by signing up at postaldatapi.com/register

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
lookup_postal_codeA

Look up a postal code and get city, state, and region information.

Works for ZIP codes (US), postcodes (UK), PLZ (Germany), and postal codes in 70+ countries. Use this when someone asks about a postal code, wants to know what city a ZIP code belongs to, or needs address information.

Args: postal_code: The postal code to look up (e.g., "90210", "SW1A", "10115", "100-0001") country: ISO 3166-1 alpha-2 country code (e.g., "US", "GB", "DE", "JP"). Defaults to "US".

Returns: City, state/region, and abbreviation for the postal code.

validate_postal_codeA

Check whether a postal code exists in a given country.

Use this when someone wants to verify if a postal code is valid before processing an order, form, or address.

Args: postal_code: The postal code to validate country: ISO 3166-1 alpha-2 country code. Defaults to "US".

Returns: Whether the postal code is valid or invalid.

search_by_cityA

Find all postal codes for a given city.

Use this when someone has a city name and needs the postal codes that serve it. For US cities, provide the state name or 2-letter abbreviation.

Args: city: City name (e.g., "Beverly Hills", "Berlin", "Tokyo") state: State or region name/abbreviation. Required for US cities (e.g., "CA" or "California"). country: ISO 3166-1 alpha-2 country code. Defaults to "US".

Returns: List of postal codes for the city.

get_postal_code_metadataA

Get full metadata for a postal code including coordinates.

Returns latitude, longitude, county/municipality, and all available country-specific fields. Use this when someone needs geographic coordinates, timezone, or detailed location data for a postal code.

Args: postal_code: The postal code to look up country: ISO 3166-1 alpha-2 country code. Defaults to "US".

Returns: Full metadata including coordinates, region, and country-specific fields.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PostalDataPI/postaldatapi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server