developer-toolsapi_key

Postal Data API

Postal Data API validates and looks up postal codes, locations, coordinates, and regional metadata across more than 240 countries and territories.

Verdict

The Postal Data API MCP gives your team instant postal-code lookups, validation, and geocoding across 250+ countries without leaving Switchy. @mention it to resolve an address fragment into coordinates and timezone, validate a customer list in bulk, or search every zip code in a city. Developers writing location-aware features and ops teams cleaning CRM data get the most value. You'll need an API key from postaldata.net, and each successful call consumes one query credit from your account balance.

Common use cases

  • Validate shipping addresses before checkout
  • Geocode support tickets by postal code
  • Enrich lead lists with timezone data
  • Deduplicate CRM records by normalized city
  • Generate coverage maps from zip-code lists

Integration

Vendor
Postal Data API
Category
developer-tools
Auth
API_KEY
Tools
6
Composio slug
postal_data_api

Tools

  • Get API Information

    Return Postal Data API version, coverage, usage guidance, current balance, and configured rate-limit status when returned, for connectivity or service discovery. The provider does not document this endpoint as unbilled, so assume it may con

  • Get Postal Code Metadata

    Return all available country-specific metadata for a postal code, such as coordinates, timezone, county, elevation, and administrative levels. The metadata fields vary by country and availability. Each successful call consumes one Postal Da

  • Look Up Postal Code

    Look up the city, region, and coordinates for a postal code. Use this for a concise location result; use Get Postal Code Metadata for country-specific administrative details. Each successful call consumes one query.

  • Search Postal Codes by City

    Return all postal codes matching a city and optional region, including fuzzy-match details. For US searches, provide a state name or state code. Each successful call consumes one Postal Data API query.

  • Validate Postal Code

    Check whether one postal code exists without treating a nonexistent code as an execution error. Inspect valid in the response. Each successful call consumes one Postal Data API query.

  • Validate Postal Codes in Bulk

    Validate 1 to 1,000 postal codes synchronously, including mixed-country batches. Results preserve input order and report per-record failures. A batch of N records consumes N queries and is rejected atomically if balance or rate-limit budget

Setup

Setup guide

  1. 11. Sign up at postaldata.net and copy your API key from the dashboard. 2. In Switchy, open Settings → Integrations → Developer Tools and click Connect next to Postal Data API. 3. Paste your API key into the prompt and click Authorize. 4. Switchy confirms the connection by fetching your current balance and rate limit. 5. Open any Project, type '@Postal Data API what city is zip code 10001' and send; the MCP replies with New York, NY and coordinates. 6. If the response says insufficient balance, top up your account at postaldata.net and reconnect the MCP.

What teammates see: by default, memories from Postal Data API are scoped to the Project (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.

Works well with

Top models

Compatibility data appears once enough Projects have used this MCP together with a given model.

How Switchy teams use it

Not enough Projects yet to publish anonymised usage stats (we require ≥ 50 Projects per week).

Starter prompts

Validate Customer Addresses

@Postal Data API validate these postal codes in bulk: 90210, 10001, 00000, SW1A 1AA, 75001. Tell me which ones are invalid.

Find All Zips in City

@Postal Data API search for all postal codes in Austin, Texas and return the list with coordinates.

Geocode Support Ticket

@Postal Data API look up postal code M5H 2N2 and give me the city, province, coordinates, and timezone.

Enrich Lead with Metadata

@Postal Data API get full metadata for postal code 94102 including county, elevation, and all administrative levels.

Check API Usage

@Postal Data API show me my current balance, rate limit, and API version information.

Example outputs

Illustrative - representative of the model's voice and quality, not literal recordings.

Prompt

@postal-data-api look up the postal code 10001 and tell me what city and coordinates it corresponds to

Output

The postal code 10001 corresponds to New York, NY in the United States. The coordinates are approximately 40.7506° N, -73.9971° W, placing it in the heart of Manhattan. This is a concise location lookup; if you need additional administrative details like county, timezone, or elevation, I can retrieve the full metadata for this postal code.

Notes

This example demonstrates the Look Up Postal Code tool, which returns city, region, and coordinates in a single query. Each successful lookup consumes one API credit from your Postal Data API balance. Use this for quick location resolution; switch to Get Postal Code Metadata if you need country-specific administrative fields.

Prompt

@postal-data-api validate these postal codes in bulk: 90210, 00000, SW1A 1AA, 75001, and let me know which ones are real

Output

Out of the five postal codes submitted, four are valid: 90210 (Beverly Hills, CA, USA), SW1A 1AA (London, UK), and 75001 (Paris, France) all exist. The code 00000 is invalid and does not correspond to any recognized postal code. The bulk validation preserved the input order and reported per-record results. This batch consumed four API credits (one per valid lookup).

Notes

This example showcases the Validate Postal Codes in Bulk tool, which handles mixed-country batches of up to 1,000 codes synchronously. Each record in the batch consumes one query credit, so a 100-code batch costs 100 credits. The tool reports per-record failures without throwing execution errors, making it ideal for data-cleaning workflows.

Prompt

@postal-data-api search for all postal codes in Portland, Oregon and summarize how many distinct ZIP codes serve that city

Output

Portland, Oregon is served by 52 distinct ZIP codes, ranging from 97201 to 97299. The search returned all postal codes matching 'Portland' in the state of Oregon, including fuzzy-match details where applicable. The most central codes (97201–97225) cover the core urban area, while higher-numbered codes serve suburban and industrial zones. This search consumed one API credit.

Notes

This example pairs the Search Postal Codes by City tool with AI reasoning to synthesize a count and geographic summary. The tool supports fuzzy matching and requires a state name or code for US searches. Each search consumes one credit regardless of result count, making it efficient for bulk discovery. Rate limits apply per your configured plan.

Use-case deep-dives

E-commerce checkout address validation

When real-time postal validation beats regex at checkout

A 6-person e-commerce team ships physical goods to 12 countries and sees 8% of orders fail fulfillment because customers fat-finger postal codes at checkout. The Postal Data API's Validate Postal Code tool catches bad codes before the order hits the warehouse—no regex pattern can tell you whether "90210" exists but "90219" doesn't. The bulk endpoint handles up to 1,000 codes in one call, so if you're importing a CSV of shipping addresses, you validate the entire file synchronously and flag the bad rows before anyone prints a label. The trade-off: each validation burns one query against your API balance, so this works when order volume justifies the per-lookup cost. If you're processing 500 checkouts a day and postal errors cost you $15 in re-shipping per incident, the ROI is immediate—add this MCP to your checkout assistant and let it reject invalid codes in the flow.

CRM territory assignment by region

Mapping sales territories when postal codes cross state lines

A 10-person SaaS sales team assigns leads by region, but their CRM only stores postal codes—no city or state fields—and manual lookups waste 20 minutes per rep per day. The Look Up Postal Code tool returns city, region, and coordinates in one call, so the team's Switchy assistant can tag every inbound lead with the correct territory owner during morning triage. The Get Postal Code Metadata tool adds timezone and county data when you need finer segmentation (useful if one rep owns "Northern California counties" and another owns "Bay Area proper"). The limitation: this MCP doesn't reverse-geocode full addresses or handle apartment numbers, so if your CRM stores street addresses without postal codes, you need a different integration. For teams that already capture postal codes at signup and just need to enrich them into routing logic, this is the fastest path from code to owner assignment.

Customer support timezone routing

When postal metadata routes tickets faster than IP geolocation

A 4-person support team covers three timezones and wants to route tickets to the on-shift agent without asking customers "what timezone are you in?" The Get Postal Code Metadata tool returns timezone and coordinates from a postal code, so the team's Switchy assistant can assign tickets based on the billing address already in Stripe or the shipping address in Shopify. This beats IP geolocation when customers use VPNs or corporate proxies that report the wrong region. The catch: you need a postal code in the ticket metadata—if your support form doesn't capture it, you're back to asking or guessing. The Search Postal Codes by City tool helps when a customer writes "I'm in Austin" but doesn't give you the code; it returns all matches with fuzzy-match scoring, so you pick the most populous result. If your ticket volume is under 200/day and you already collect postal codes, this MCP turns address data into routing logic without a separate geolocation service contract.

Frequently asked

What does the Postal Data API MCP do in Switchy?

It lets your AI agents validate postal codes, look up city and region names, retrieve coordinates and timezone metadata, and search for codes by city name. The MCP wraps six tools that query the Postal Data API service directly, so agents can enrich addresses or filter location data without leaving the conversation.

Do I need a paid Postal Data API account to use this MCP?

Yes. You authenticate with an API key from Postal Data API, and each successful tool call consumes one query from your account balance. The Get API Information tool shows your current balance and rate limit, but you'll need an active subscription or credit balance with the vendor to run lookups.

Can the MCP validate addresses or correct typos in street names?

No. It only validates postal codes and returns city, region, and metadata like coordinates or timezone. It won't parse street addresses, suggest corrections for misspelled roads, or verify that a building exists. Use a dedicated address-validation service if you need full address hygiene.

Why use this MCP instead of calling the Postal Data API directly?

The MCP lets your AI agents call the API mid-conversation without you writing integration code or managing credentials in every workflow. If you already have a custom pipeline that batches lookups or caches results, stick with the direct API. For ad-hoc agent tasks, the MCP is faster to deploy.

Who on the team should connect the Postal Data API key?

Whoever owns your Postal Data API subscription or has access to the account dashboard. They'll paste the API key into Switchy once, and any team member can then invoke the MCP in their agent conversations. Query usage counts against the shared account balance, so coordinate with your billing owner.

More developer tools MCPs

See all developer tools MCPs →

Data last verified 61 hours ago.Sources aggregated hourly to weekly. See docs/architecture/model-directory.md.