MCP server for PostalDataPI — postal code lookups for AI agents
MCP (Model Context Protocol) server for PostalDataPI — lets AI agents look up, validate, and search postal codes across 240+ countries and territories with rich metadata: timezone, administrative regions, elevation, and coordinates.
| Tool | Description |
|---|---|
lookup_postal_code | Get city, state/region, and abbreviation for a postal code (US ZIP, UK postcode, German PLZ, etc.) |
validate_postal_code | Check if a postal code exists in a country |
search_by_city | Find all postal codes for a city |
get_postal_code_metadata | Full metadata: coordinates, admin hierarchy, timezone, elevation, and more |
Sign up at postaldatapi.com/register — 1,000 free queries, no credit card required.
pip install postaldatapi-mcp
claude mcp add --transport stdio postaldatapi -- \
env POSTALDATAPI_KEY=your_api_key_here postaldatapi-mcp
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"postaldatapi": {
"command": "postaldatapi-mcp",
"env": {
"POSTALDATAPI_KEY": "your_api_key_here"
}
}
}
}
Once configured, ask Claude naturally:
Claude will automatically use the PostalDataPI tools to answer.
240+ countries and territories including US, UK, Canada, Germany, France, Japan, Australia, Brazil, India, and many more. See the full list at postaldatapi.com/countries.
Beyond basic lookups, the get_postal_code_metadata tool returns up to 18 fields per postal code including:
America/Mexico_City, Europe/Berlin)Example response for Mexico City 06000:
{
"postalCode": "06000",
"country": "MX",
"placeName": "Centro",
"latitude": 19.4364,
"longitude": -99.1553,
"timezone": "America/Mexico_City",
"adminLevel1": "Ciudad de México",
"adminLevel2": "Cuauhtémoc",
"elevation": 2239
}
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows