MCP server for PostalDataPI — postal code lookups for AI agents
Project description
PostalDataPI MCP Server
MCP (Model Context Protocol) server for PostalDataPI — lets AI agents look up, validate, and search postal codes across 70+ countries.
Tools
| Tool | Description |
|---|---|
lookup_postal_code |
Get city and state 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, county, timezone, and more |
Setup
1. Get an API Key
Sign up at postaldatapi.com/register — 1,000 free queries, no credit card required.
2. Install
pip install postaldatapi-mcp
3. Configure with Claude Code
claude mcp add --transport stdio postaldatapi -- \
env POSTALDATAPI_KEY=your_api_key_here postaldatapi-mcp
4. Configure with Claude Desktop
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"
}
}
}
}
Usage
Once configured, ask Claude naturally:
- "What city is ZIP code 90210?"
- "Look up UK postcode SW1A"
- "Is 10115 a valid German postal code?"
- "What are the postal codes for Beverly Hills, CA?"
- "Get the coordinates for postal code 100-0001 in Japan"
Claude will automatically use the PostalDataPI tools to answer.
Supported Countries
70+ countries including US, UK, Canada, Germany, France, Japan, Australia, and more. See the full list at postaldatapi.com/countries.
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file postaldatapi_mcp-0.1.0.tar.gz.
File metadata
- Download URL: postaldatapi_mcp-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37a57128c9c456f0abff1257d4f3aed8422550f8764ced741e18c3b7339dc785
|
|
| MD5 |
a41a8e4399b1a512f97ec2458ab4ac5b
|
|
| BLAKE2b-256 |
f1397b5f27ecbf65639ccb4e39dfcb914e5ed858c7f09659175d53041e4717f4
|
File details
Details for the file postaldatapi_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: postaldatapi_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db32626728e03f2931a2dd8b8b14cbeebfee0284e9cfd0e01c0ef1c5fe8c3347
|
|
| MD5 |
6f09017d42d70b6fc1f1415eef21c0b1
|
|
| BLAKE2b-256 |
b6f9fea87a977cc532c5168b5ae828fee7abd3e808c4a5b4cafefeb600b302b7
|