MCP Server

Use zipcodestack with AI agents (MCP)

zipcodestack ships a hosted Model Context Protocol (MCP) server. AI agents and assistants — Claude, Cursor, VS Code and any other MCP-capable client — can call the API as native tools, no SDK or glue code required.

https://api.zipcodestack.com/mcp

Connect in seconds

Using Claude Code:

claude mcp add --transport http zipcodestack https://api.zipcodestack.com/mcp --header "apikey: YOUR_API_KEY"

Or add it to any MCP client configuration:

{
  "mcpServers": {
    "zipcodestack": {
      "url": "https://api.zipcodestack.com/mcp",
      "headers": { "apikey": "YOUR_API_KEY" }
    }
  }
}

Every request needs your API key, including the MCP handshake and listing the tools. Sign up for a free API key and send it as the apikey header.

Available tools

ToolEndpointDescription
searchGET /v1/searchLook up postal codes
distanceGET /v1/distanceDistance from one code to others
radiusGET /v1/radiusCodes within a radius
polygonPOST /v1/polygonCodes inside a polygon
matchGET /v1/matchMatch code pairs within a distance
codesByCityGET /v1/code/cityCodes for a city
codesByStateGET /v1/code/stateCodes for a state
provincesGET /v1/country/provinceProvinces for a country
reverseGET /v1/reversePostal codes nearest to a coordinate
validateCodeGET /v1/validateValidate a postal code
autocompleteGET /v1/autocompletePostal codes starting with a prefix
coverageGET /v1/coverageCoverage by country
getStatusGET /v1/statusAccount quota status

Tool calls are metered like regular API requests and return the same machine-readable errors, so your agent always knows how to proceed. Full details in the MCP documentation.

Start using our ZIP Code API for free today!

Get 300 requests / month for free