Deterministic Global Postal Formatter

Deterministic Global Postal Formatter MCP Connector for Claude

F

Transform your AI into a CRM data powerhouse. Automatically validate, clean, and strictly format international postal codes (BR, US, UK, CA) via regex execution.

1 tools Official Updated Jun 28, 2026 Official Vinkius Partner

Customer address pipelines are notoriously fragile. AI models frequently struggle with regional idiosyncrasies—like knowing a Brazilian CEP needs a hyphen (01311-000), or that a UK Postcode requires a strategic space (SW1A 1AA). The Postal Formatter MCP eliminates these hallucinations by intercepting and validating routing codes via strict V8 Regex engines.

The Superpowers

  • Regional Structural Validation: Instantly rejects structurally invalid data (e.g., rejecting a 4-digit ZIP code or a UK postcode missing letters), returning clear diagnostic reports.
  • Automated Data Cleaning: Receives raw, dirty inputs (like 01311000 or sw1a1aa) and automatically formats them perfectly into standard compliance (01311-000 and SW1A 1AA).
  • Multi-Country Support: Native rules mapped out for Brazil (CEP), United States (ZIP / ZIP+4), United Kingdom (Postcode), and Canada.
  • Zero-Dependency Architecture: Pure JS runtime execution guarantees absolute microsecond speed without any massive geolocation NPM dependencies. Perfect for edge-runtime agentic pipelines.
regexdata-validationaddress-formattingcrm-datalocalization

1 tools expose this connector's capabilities to your AI agent.

format_postal_code

Provide the raw postal code string and select the ISO 2-letter country code. Validates and formats global postal codes (e.g. BR CEP, US ZIP, UK Postcode) using strict deterministic regex rules

See how to talk to your AI agent using Deterministic Global Postal Formatter.

Format this Brazilian CEP: 01311000

Using the format_postal_code tool (code='01311000', country='BR'): The validated format is '01311-000'.

Is 'SW1A1AA' a valid UK Postcode?

Using the format_postal_code tool: Yes. It is structurally valid and was auto-formatted to 'SW1A 1AA'.

Validate the US ZIP: 1234

Using the format_postal_code tool: Validation failed (`isValid: false`). A US ZIP requires exactly 5 or 9 digits.

No. The Postal Formatter is an algorithmic formatting tool designed for high-speed offline validation. It checks structural integrity (e.g., ensuring a US ZIP has exactly 5 or 9 digits) rather than pinging a geolocation API.

Related Connectors