PostalKit MCP server
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| POSTALKIT_KEY | No | Your PostalKit API key (required). `POSTALKIT_API_KEY` also works as an alternative name. | |
| POSTALKIT_BASE | No | API base URL. | https://api.postalkit.mx |
| POSTALKIT_API_KEY | No | Alternative name for your PostalKit API key (also accepted in place of `POSTALKIT_KEY`). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Tools for Mexican address data from the official SEPOMEX catalog, served by the PostalKit API (https://postalkit.mx). Use lookup_postal_code when you have a 5-digit código postal. Use search_colonias or find_postal_codes_by_place when you only have place names. Each call counts against the user's PostalKit monthly quota, so avoid unnecessary repeated calls.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| lookup_postal_codeA | Get the state (estado), municipality (municipio/alcaldía), city and every colonia (settlement) for one Mexican postal code. |
| search_postal_codesA | List Mexican postal codes that start with a prefix, e.g. '066' for the codes around Colonia Roma in CDMX. |
| find_postal_codes_by_placeA | 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. |
| search_coloniasA | Search Mexican colonias (settlements) by name across the country. Each result includes its postal code, municipality and state. |
| list_statesA | List Mexico's 32 states with their PostalKit IDs and two-digit INEGI codes. |
| list_municipalitiesB | List the municipalities (municipios, or alcaldías in CDMX) of a state, by PostalKit state ID or two-digit INEGI state code. |
| list_municipality_coloniasA | List every colonia (settlement) in a municipality, by PostalKit municipality ID. |
| search_streetsB | Search the streets of a municipality by INEGI state and municipality codes, optionally filtered by name. |
| geocode_postal_codeB | Get latitude and longitude for a postal code, optionally refined with a street name and number. |
| reverse_geocodeA | Find the nearest Mexican postal code (with its colonias, municipality and state) to a latitude/longitude. |
| get_usageA | Show the PostalKit plan, monthly request limit and requests used this period. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
Each tool has a fairly distinct input/output: lookup by exact code, search by prefix, search by place names, geocode to coordinates, and reverse geocode from coordinates. The only mild overlap is between search_postal_codes and find_postal_codes_by_place, both returning lists of postal codes, but the descriptions clarify their different query styles.
Almost all tools follow a verb_noun pattern (list_states, search_colonias, find_postal_codes_by_place, get_usage). Minor deviations: reverse_geocode has no noun object and geocode_postal_code orders as verb_noun while reverse_geocode is verb-only, but the set remains predictable.
Eleven tools is well within a healthy range for a postal-code/location API and each tool covers a distinct operation (states, municipalities, colonias, postal codes, streets, geocoding, usage). Nothing feels redundant or filler-like.
The surface covers the full hierarchy from state down to colonia plus forward/reverse geocoding and street search, which is strong lifecycle coverage. Minor gaps: streets are only searchable within a municipality (not by postal code or nationally), and there is no batch or multi-code lookup, but agents can work around these.