PostalKit MCP server
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PostalKit MCP server ¿Qué colonias tiene el código postal 06600?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PostalKit MCP server
An MCP server that gives Claude, Cursor, VS Code and other AI assistants accurate Mexican address data: postal codes (códigos postales), colonias, municipalities, states, streets and geocoding, from the official SEPOMEX catalog via the PostalKit API.
Español: servidor MCP para consultar códigos postales, colonias, municipios y estados de México desde Claude, Cursor y otros asistentes de IA, con datos oficiales de SEPOMEX a través de la API de PostalKit.
Ask things like:
"¿Qué colonias tiene el código postal 06600?"
"What's the postal code for Colonia Americana in Guadalajara?"
"Validate these 200 shipping addresses and flag any postal code that doesn't match its colonia."
"Which postal code is closest to 19.4233, -99.1637?"
Get an API key
Create a free account at postalkit.mx (100 requests/month on the free plan) and copy your key from the dashboard.
Related MCP server: mcp-latam-validate
Install
Claude Code
claude mcp add postalkit --env POSTALKIT_KEY=your-api-key -- npx -y postalkit-mcpClaude Desktop, Cursor, Windsurf, VS Code and other clients
Add this to your client's MCP config (claude_desktop_config.json, .cursor/mcp.json, etc.):
{
"mcpServers": {
"postalkit": {
"command": "npx",
"args": ["-y", "postalkit-mcp"],
"env": {
"POSTALKIT_KEY": "your-api-key"
}
}
}
}Requires Node.js 20 or newer.
Tools
All tools are read-only.
Tool | What it does |
| State, municipality, city and every colonia for a 5-digit postal code |
| Postal codes that start with a prefix |
| Postal codes for a state, municipality and/or colonia name |
| Colonias by name, nationwide |
| The 32 states with INEGI codes |
| Municipalities of a state, by ID or INEGI code |
| Every colonia in a municipality |
| Streets of a municipality, by name |
| Latitude/longitude for a postal code (optionally street and number) |
| Nearest postal code to a coordinate |
| Your plan, monthly limit and requests used |
Each tool call is one API request against your PostalKit quota.
Configuration
Variable | Default | |
| (required) | Your API key ( |
|
| API base URL |
Development
npm install
npm test # unit tests, no network
npm run build
npm run inspector # try the tools in the MCP InspectorLinks
Website: postalkit.mx
API reference: postalkit.mx/docs
PHP / Laravel SDK: postalkit-php
License
MIT
Available Tools
11 toolsfind_postal_codes_by_placeFind postal codes by place nameARead-onlyIdempotent
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.
Inputs: state (required), page, exact, colonia, +1 more.
geocode_postal_codeGeocode a postal codeBRead-onlyIdempotent
Get latitude and longitude for a postal code, optionally refined with a street name and number.
Inputs: code (required), number, street.
get_usageGet API usageARead-onlyIdempotent
Show the PostalKit plan, monthly request limit and requests used this period.
Inputs: no named parameters.
list_municipalitiesList municipalities of a stateBRead-onlyIdempotent
List the municipalities (municipios, or alcaldías in CDMX) of a state, by PostalKit state ID or two-digit INEGI state code.
Inputs: state_id, state_code.
list_municipality_coloniasList colonias of a municipalityARead-onlyIdempotent
List every colonia (settlement) in a municipality, by PostalKit municipality ID.
Inputs: municipality_id (required), page.
list_statesList statesARead-onlyIdempotent
List Mexico's 32 states with their PostalKit IDs and two-digit INEGI codes.
Inputs: no named parameters.
lookup_postal_codeLook up a postal codeARead-onlyIdempotent
Get the state (estado), municipality (municipio/alcaldía), city and every colonia (settlement) for one Mexican postal code.
Inputs: code (required).
reverse_geocodeReverse geocodeARead-onlyIdempotent
Find the nearest Mexican postal code (with its colonias, municipality and state) to a latitude/longitude.
Inputs: lat (required), lng (required).
search_coloniasSearch coloniasARead-onlyIdempotent
Search Mexican colonias (settlements) by name across the country. Each result includes its postal code, municipality and state.
Inputs: query (required), page.
search_postal_codesSearch postal codes by prefixARead-onlyIdempotent
List Mexican postal codes that start with a prefix, e.g. '066' for the codes around Colonia Roma in CDMX.
Inputs: prefix (required), page.
search_streetsSearch streetsBRead-onlyIdempotent
Search the streets of a municipality by INEGI state and municipality codes, optionally filtered by name.
Inputs: state_code (required), municipality_code (required), page, limit, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
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.
Maintenance
Related MCP Connectors
Official Mexican data for AI agents: CURP, RFC, CFDI, postal codes, phone, SPEI/CEP, DOF, geocoding.
Address validation & geocoding for AI agents: 240+ countries, UK PAF, free US/CA enrichment
Routing, geocoding, places, matrix and map tools for location-aware AI workflows.
Mexican RFC/SAT 69-B, CFDI, CURP (RENAPO) and INE checks against the official registries.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI tools to query Brazilian addresses by CEP or search CEPs by address via the ViaCEP API.2-
- AlicenseNot gradedqualityNot gradedmaintenanceValidates LatAm banking and tax IDs (Mexican CLABE, Brazilian CNPJ/CPF checksums) and performs BrasilAPI company, CEP, and bank lookups, enabling AI agents to verify financial and tax information in Latin America.72 npmMIT

Tlaloc MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceProvides AI assistants with live, authenticated access to official Mexican data sources including CURP, RFC, postal codes, phone numbers, SPEI payments, CFDI status, DOF semantic search, and geocoding via INEGI/INE.MIT- FlicenseNot gradedqualityCmaintenanceEnables AI agents to query Mexican postal codes, validate addresses, and search settlements using natural language from the official SEPOMEX catalog.1-