PostalDataPI MCP Server
MCP-сервер PostalDataPI
MCP-сервер (Model Context Protocol) для PostalDataPI — позволяет ИИ-агентам искать, проверять и находить почтовые индексы в 240+ странах и территориях с расширенными метаданными: часовой пояс, административные регионы, высота над уровнем моря и координаты.
Инструменты
Инструмент | Описание |
| Получение города, штата/региона и сокращения для почтового индекса (ZIP США, почтовый индекс Великобритании, PLZ Германии и т. д.) |
| Проверка существования почтового индекса в стране |
| Поиск всех почтовых индексов для города |
| Полные метаданные: координаты, административная иерархия, часовой пояс, высота над уровнем моря и многое другое |
Related MCP server: ZipExplore MCP Server
Настройка
1. Получите API-ключ
Зарегистрируйтесь на postaldatapi.com/register — 1000 бесплатных запросов, кредитная карта не требуется.
2. Установка
pip install postaldatapi-mcp3. Настройка с Claude Code
claude mcp add --transport stdio postaldatapi -- \
env POSTALDATAPI_KEY=your_api_key_here postaldatapi-mcp4. Настройка с Claude Desktop
Добавьте в конфигурацию Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json в macOS):
{
"mcpServers": {
"postaldatapi": {
"command": "postaldatapi-mcp",
"env": {
"POSTALDATAPI_KEY": "your_api_key_here"
}
}
}
}Использование
После настройки задавайте вопросы Claude в свободной форме:
"Какой город у почтового индекса 90210?"
"Найди почтовый индекс Великобритании SW1A"
"Является ли 10115 действительным почтовым индексом Германии?"
"Какие почтовые индексы у Беверли-Хиллз, Калифорния?"
"Получи координаты для почтового индекса 100-0001 в Японии"
Claude автоматически использует инструменты PostalDataPI для ответа.
Поддерживаемые страны
240+ стран и территорий, включая США, Великобританию, Канаду, Германию, Францию, Японию, Австралию, Бразилию, Индию и многие другие. Полный список см. на postaldatapi.com/countries.
Расширенные метаданные
Помимо базового поиска, инструмент get_postal_code_metadata возвращает до 18 полей для каждого почтового индекса, включая:
Координаты (широта, долгота)
Часовой пояс (например,
America/Mexico_City,Europe/Berlin)Административная иерархия (штат/провинция, округ, муниципалитет)
Высота над уровнем моря (метры)
Название места и информация о стране
Пример ответа для Мехико 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
}Ссылки
Available Tools
4 toolsget_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.
Inputs: postal_code (required), country. Returns: result
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.
Inputs: postal_code (required), country. Returns: result
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.
Inputs: city (required), state, country. Returns: result
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.
Inputs: postal_code (required), country. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The tools have distinct primary purposes: get_postal_code_metadata for detailed geographic data, lookup_postal_code for basic address information, search_by_city for reverse lookup, and validate_postal_code for validation. However, get_postal_code_metadata and lookup_postal_code could be confused as both retrieve postal code information, though their descriptions clarify different use cases.
All tool names follow a consistent snake_case pattern with clear verb_noun structure: get_postal_code_metadata, lookup_postal_code, search_by_city, validate_postal_code. The naming is predictable and readable throughout the set.
With 4 tools, this is well-scoped for a postal code data server. Each tool serves a distinct function in the domain, and the count is appropriate for covering core operations without being overwhelming or insufficient.
The toolset covers key postal code operations: lookup, validation, reverse search, and metadata retrieval. A minor gap exists in lacking explicit update or delete operations, but these are not typically needed for a read-only data service, and agents can work effectively with the provided tools.
Maintenance
Related MCP Connectors
Global postal and ZIP code lookup across 60+ countries with coordinates, states, and place names.
Postal lookups for 120 countries with cited sources; deep US tier: demographics, climate, area codes
Hosted libpostal: messy free-text postal addresses → structured fields. No 2-4GB self-host.
Global city and place geocoding, coordinates, elevation, population, timezones, and admin hierarchy.
51
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceUK address (Royal Mail PAF), email, and phone (live HLR carrier) validation via the Postio API. Six tools: address search, postcode lookup, UDPRN, email validate, phone validate, and a health probe.MIT
- FlicenseNot gradedqualityCmaintenanceEnables location intelligence for US ZIP codes, allowing users to search, profile, and compare ZIP codes across various domains like crime, income, schools, and more.-

Acuris Geo MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceProvides address validation and geocoding for 240+ countries, including UK Royal Mail PAF and US/Canada census enrichment. Enables batch validation, forward/reverse geocoding, UK postcode expansion, and automatic refunds for failed lookups.76 PyPIMIT- AlicenseAqualityDmaintenanceMCP server that resolves postal/ZIP codes to place names, states, and coordinates using Zippopotam.us. Free, no API key required.1MIT