PostalDataPI MCP Server
PostalDataPI MCP-Server
MCP-Server (Model Context Protocol) für PostalDataPI – ermöglicht KI-Agenten das Nachschlagen, Validieren und Suchen von Postleitzahlen in über 240 Ländern und Gebieten mit umfangreichen Metadaten: Zeitzone, Verwaltungsregionen, Höhe und Koordinaten.
Tools
Tool | Beschreibung |
| Abrufen von Stadt, Bundesland/Region und Abkürzung für eine Postleitzahl (US-ZIP, UK-Postcode, deutsche PLZ usw.) |
| Überprüfen, ob eine Postleitzahl in einem Land existiert |
| Alle Postleitzahlen für eine Stadt finden |
| Vollständige Metadaten: Koordinaten, Verwaltungshierarchie, Zeitzone, Höhe und mehr |
Related MCP server: ZipExplore MCP Server
Einrichtung
1. API-Schlüssel abrufen
Registrieren Sie sich unter postaldatapi.com/register – 1.000 kostenlose Abfragen, keine Kreditkarte erforderlich.
2. Installation
pip install postaldatapi-mcp3. Konfiguration mit Claude Code
claude mcp add --transport stdio postaldatapi -- \
env POSTALDATAPI_KEY=your_api_key_here postaldatapi-mcp4. Konfiguration mit Claude Desktop
Fügen Sie dies zu Ihrer Claude Desktop-Konfiguration hinzu (~/Library/Application Support/Claude/claude_desktop_config.json unter macOS):
{
"mcpServers": {
"postaldatapi": {
"command": "postaldatapi-mcp",
"env": {
"POSTALDATAPI_KEY": "your_api_key_here"
}
}
}
}Verwendung
Sobald die Konfiguration abgeschlossen ist, können Sie Claude ganz natürlich fragen:
"Welche Stadt hat die Postleitzahl 90210?"
"Suche die britische Postleitzahl SW1A"
"Ist 10115 eine gültige deutsche Postleitzahl?"
"Was sind die Postleitzahlen für Beverly Hills, CA?"
"Rufe die Koordinaten für die Postleitzahl 100-0001 in Japan ab"
Claude verwendet automatisch die PostalDataPI-Tools, um zu antworten.
Unterstützte Länder
Über 240 Länder und Gebiete, darunter USA, Großbritannien, Kanada, Deutschland, Frankreich, Japan, Australien, Brasilien, Indien und viele mehr. Die vollständige Liste finden Sie unter postaldatapi.com/countries.
Umfangreiche Metadaten
Über einfache Suchanfragen hinaus liefert das Tool get_postal_code_metadata bis zu 18 Felder pro Postleitzahl, darunter:
Koordinaten (Breitengrad, Längengrad)
Zeitzone (z. B.
America/Mexico_City,Europe/Berlin)Verwaltungshierarchie (Bundesland/Provinz, Landkreis, Gemeinde)
Höhe (Meter über dem Meeresspiegel)
Ortsname und Länderinformationen
Beispielantwort für Mexiko-Stadt 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
}Links
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