PostalKit: Mexican postal codes

v0.1.1
io.github.postalkit/postalkit-mcp Checked 5 days ago Published 15 days ago

Mexican postal codes (SEPOMEX), colonias, municipalities, streets and geocoding via PostalKit.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

lookup_postal_code Look up a postal code

Get the state (estado), municipality (municipio/alcaldía), city and every colonia (settlement) for one Mexican postal code.

ParameterTypeDescription
code *stringFive-digit Mexican postal code (código postal), e.g. 06600

search_postal_codes Search postal codes by prefix

List Mexican postal codes that start with a prefix, e.g. '066' for the codes around Colonia Roma in CDMX.

ParameterTypeDescription
prefix *stringLeading digits of the postal code
pageintegerPage number for paginated results (default 1)

find_postal_codes_by_place Find postal codes by place name

Find the postal codes for a state, optionally narrowed by municipality and colonia names. Use this when the user knows the address but not the código postal.

ParameterTypeDescription
state *stringState name, e.g. 'Jalisco' or 'Ciudad de México'
coloniastringColonia (settlement) name, e.g. 'Americana'
exactbooleanMatch names exactly instead of partially
municipalitystringMunicipality or alcaldía name, e.g. 'Guadalajara'
pageintegerPage number for paginated results (default 1)

search_colonias Search colonias

Search Mexican colonias (settlements) by name across the country. Each result includes its postal code, municipality and state.

ParameterTypeDescription
query *stringPart of the colonia name, at least 2 characters
pageintegerPage number for paginated results (default 1)

list_states List states

List Mexico's 32 states with their PostalKit IDs and two-digit INEGI codes.

list_municipalities List municipalities of a state

List the municipalities (municipios, or alcaldías in CDMX) of a state, by PostalKit state ID or two-digit INEGI state code.

ParameterTypeDescription
state_codestringTwo-digit INEGI state code, e.g. '09' for Ciudad de México
state_idintegerPostalKit state ID from list_states

list_municipality_colonias List colonias of a municipality

List every colonia (settlement) in a municipality, by PostalKit municipality ID.

ParameterTypeDescription
municipality_id *integerPostalKit municipality ID from list_municipalities
pageintegerPage number for paginated results (default 1)

search_streets Search streets

Search the streets of a municipality by INEGI state and municipality codes, optionally filtered by name.

ParameterTypeDescription
municipality_code *stringThree-digit INEGI municipality code, e.g. '015'
state_code *stringTwo-digit INEGI state code, e.g. '09'
limitintegerResults per page
locality_codestringINEGI locality code
pageintegerPage number for paginated results (default 1)
querystringPart of the street name

geocode_postal_code Geocode a postal code

Get latitude and longitude for a postal code, optionally refined with a street name and number.

ParameterTypeDescription
code *stringFive-digit Mexican postal code (código postal), e.g. 06600
numberstringStreet number
streetstringStreet name

reverse_geocode Reverse geocode

Find the nearest Mexican postal code (with its colonias, municipality and state) to a latitude/longitude.

ParameterTypeDescription
lat *numberLatitude, e.g. 19.4233
lng *numberLongitude, e.g. -99.1637

get_usage Get API usage

Show the PostalKit plan, monthly request limit and requests used this period.