PostalDataPI MCP Server
PostalDataPI MCPサーバー
PostalDataPI 用のMCP (Model Context Protocol) サーバーです。AIエージェントが240以上の国と地域の郵便番号を検索、検証し、タイムゾーン、行政区域、標高、座標などの豊富なメタデータを取得できるようにします。
ツール
ツール | 説明 |
| 郵便番号(米国のZIP、英国の郵便番号、ドイツのPLZなど)から都市、州/地域、略称を取得 |
| 指定した国に郵便番号が存在するかを確認 |
| 都市名からすべての郵便番号を検索 |
| 座標、行政階層、タイムゾーン、標高などの詳細メタデータを取得 |
Related MCP server: ZipExplore MCP Server
セットアップ
1. APIキーの取得
postaldatapi.com/register からサインアップしてください。クレジットカード不要で1,000クエリまで無料です。
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の設定ファイル(macOSの場合は ~/Library/Application Support/Claude/claude_desktop_config.json)に以下を追加します:
{
"mcpServers": {
"postaldatapi": {
"command": "postaldatapi-mcp",
"env": {
"POSTALDATAPI_KEY": "your_api_key_here"
}
}
}
}使用方法
設定が完了したら、Claudeに自然な言葉で質問してください:
「ZIPコード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