ZIP-Codes.com

ZIP Codes MCP Server

Location intelligence for every US address and ZIP Code.

Validate an address and get the neighborhood behind it (census tract demographics, income, housing, districts, schools) in one call.

Real addresses come back standardized with their ZIP+4. An address that doesn't exist never gets an invented one: it comes back as no match, or as a low-confidence match with no ZIP+4.

Streamable HTTP, stateless, 11 read-only data tools Works in every MCP client without a key
Server URL
https://mcp.zip-codes.com/mcp

Give your AI agent real postal data, not guesses.

Models invent ZIP Codes, ZIP+4s and counties. These tools answer from current USPS data, updated monthly, and Census boundaries, so your agent looks the answer up instead of making it up.

Send a US street address, even a messy one-line one, and get back its standard form and ZIP+4, plus what you ask for about the area around it: the census tract's survey estimates, its county, place and metro area, its congressional and state legislative districts, its school district and its time zone.

ZIP and Canadian postal code lookups, radius search, distance and fuzzy place search are there too. It works over the Model Context Protocol (MCP), so any MCP-capable agent can call it directly.

Built for

  • territory planning
  • routing
  • market segmentation
  • site selection
  • research
  • agent answers

The statistics describe the census tract an address sits in, never the person at the address.

Try it instantly, no key. Without one, every tool answers in demo mode, with real, current values and some deeper fields withheld. It works in every MCP client.

Add a key for complete answers. They cost the same credits as the REST API. A free key includes 2,500 credits a day.

From an address to its neighborhood

Ask your agent (works without a key):
"Validate 350 5th Ave, New York, NY 10118, the Empire State Building, and tell me about its census tract: median household income, median rent and school district, with margins of error."

One validate_address call with include: ["census", "school_district", "acs_tract_economic", "acs_tract_housing"] answers it, for 5 credits:

FieldAnswer
Address350 5TH AVE, NEW YORK, NY 10118-0110 (confidence: medium; a unit number may be needed)
Census tractCensus Tract 76, New York County, NY (36061007600)
Median household income$193,644 ± $15,300
Median rent$3,304 ± $249
School districtNew York City Department Of Education (PK–12)

Income and rent are Census Bureau estimates for the whole tract (American Community Survey 5-Year Estimates, 2020–2024), labelled geography_level: "tract", each with its margin of error. They describe the area, not any household in it. The Empire State Building is one of our demo addresses, so demo mode answers this in full. For other addresses, demo mode returns the matched address and ZIP Code and withholds the ZIP+4, the tract, the school district and most estimates.

Connect, then ask

Add ZIP-Codes to Claude, ChatGPT, Grok or your code editor. It starts in demo mode: no key, no sign-up. Then paste in a question below. Add a key when you want complete answers.

  • Check that it works

    Use ZIP-Codes: what county is ZIP Code 02872 in?

    It answersTwo answers that disagree, both correct: USPS assigns this Prudence Island PO Box ZIP Code to Bristol County, where its mail is handled, while 100% of the island lies in Newport County, Rhode Island.
  • Sales lead

    Use ZIP-Codes: I have a lead at 8039 Beach Blvd, Buena Park CA 90620. What are household incomes, home values and rents like in that neighborhood, compared with the ZIP Code and the 10 miles around it?

    It answersThe neighborhood’s median household income is $126,916, the same as ZIP Code 90620’s $126,094 and well above the area’s typical $100,900. Homes there are cheaper: $692,400 against $840,300 for the ZIP Code. Rent is $1,953 against $2,351.
  • Owner or renter

    Use ZIP-Codes: is the neighborhood around 3764 Elvis Presley Blvd, Memphis TN 38116 mostly owners or renters? What do homes cost there, compared with the ZIP Code?

    It answersMostly owners: 72% of homes are owner-occupied, against 43% across ZIP Code 38116, mostly single-family houses from the 1950s and 1960s. The median home is worth $156,300, a bit above the ZIP Code’s $138,600.
  • Neighborhood

    Use ZIP-Codes: what’s the neighborhood like around 350 Fifth Avenue, New York NY 10118, and how does it compare to ZIP Code 10001?

    It answersIt’s the Empire State Building’s census tract: median household income $193,644, about 1.5 times ZIP Code 10001’s $129,852, and 82% of adults have a bachelor’s degree.
  • Neighborhood brief

    Use ZIP-Codes: give me a neighborhood brief for Wrigley Field, 1060 W Addison St, Chicago IL 60613, and compare it with the ZIP Code.

    It answersCensus Tract 611’s median household income is $117,330 ± $50,774, against $95,572 ± $6,037 for ZIP Code 60613: the gap is within the tract’s wide margin.
  • Address cleanup

    Use ZIP-Codes: clean up this address and tell me what you changed: 1600 pennsylvania ave nw washingtn dc

    It answersIt fixes the city’s spelling and adds the missing ZIP+4: 1600 PENNSYLVANIA AVE NW, WASHINGTON, DC 20500-0005.
  • Address check

    Use ZIP-Codes: check this address and tell me what’s wrong with it: 350 fifth avenue apt 101 new york ny

    It answersIt’s the Empire State Building, ZIP+4 10118-0110. The ZIP Code was missing, and apartment 101 can’t be confirmed.
  • Schools and districts

    Use ZIP-Codes: which school district and state legislative district is 400 Broad St, Seattle WA in?

    It answersSeattle Public Schools, and Legislative District 36 for both the State Senate and House. ZIP+4 98109-4607.
  • Districts over time

    Use ZIP-Codes: which congressional district was 20 W 34th St, New York NY 10001 in for 2012, 2022 and 2026?

    It answersNY-8 in 2012, then NY-12 after redistricting. It also fixes the ZIP Code: 10118-0114, not 10001.
  • Redistricting

    Use ZIP-Codes: what congressional district was ZIP Code 33139 in in 2012, and what is it now?

    It answersOn the 2012 map, mostly Florida’s 18th (87% of its area) with a slice in the 20th. Today, mostly the 25th (96%) with a sliver in the 24th (4%).
  • Split ZIP Codes

    Use ZIP-Codes: is ZIP Code 10001 in more than one State Senate district? How much of its area is in each?

    It answersTwo. District 47 covers 63% of its area and District 28 the other 37%. All of it is in Assembly District 75.
  • Tracts redrawn

    Use ZIP-Codes: which census tracts does ZIP Code 90210 cover, and what changed since 2010?

    It answers12 tracts on the 2010 map, 13 now: tract 2611.01, about 18% of the ZIP Code in 2010, was redrawn as 2611.03 and 2611.04 for the 2020 Census.
  • Counties become regions

    Use ZIP-Codes: what county is ZIP Code 06103 in, and what was it in 2021?

    It answersHartford County on the 2021 map; Capitol Planning Region from 2022, when Connecticut’s counties became planning regions in the Census maps.
  • Change over time

    Use ZIP-Codes: how has median rent in Miami Beach 33139 changed from 2011 to 2024? Include the margins of error.

    It answersUp 66%, from $1,096 (±$34) to $1,822 (±$60). Half of renters now spend 35% or more of their income on rent.
  • Rent then and now

    Use ZIP-Codes: how has median rent in ZIP Code 10001 changed since 2011?

    It answers$1,580 ± $127 in the 2007–2011 survey, $3,361 ± $268 in 2020–2024, each in its own release’s dollars. Same field both years, though Census moved it from column DP04_0132 to DP04_0134.
  • Trade area

    Use ZIP-Codes: how many ZIP Codes are within 10 miles of Beverly Hills 90210, how many people live there, and how do they get to work?

    It answers137 ZIP Codes and about 2.46 million people. 56% drive alone to work and 25% work from home.
  • Distance

    Use ZIP-Codes: how far is Seattle 98101 from Miami Beach 33139, in miles and kilometers, and what time zone is each in?

    It answers2,733 miles (4,398 km) in a straight line. Seattle is on Pacific time, Miami Beach on Eastern.
  • US and Canada

    Use ZIP-Codes: is Chicago’s 60601 within 500 miles of Toronto’s M5V postal area?

    It answersYes, 433.8 miles; US and Canadian codes mix freely.
  • Canada

    Use ZIP-Codes: how many Canadian postal codes are within 3 miles of downtown Toronto (M5V)?

    It answers7,199, with the distance to each one.
  • Misspelled places

    Use ZIP-Codes: find the ZIP Codes for ‘beverley hils’.

    It answersIt finds Beverly Hills, CA and its ZIP Codes 90210, 90211 and 90212 despite the spelling.
  • ZIP Codes by type

    Use ZIP-Codes: how many ZIP Codes are there in the US, by type?

    It answers41,541: 29,807 standard, 9,122 PO Box, 2,023 unique and 589 military.
  • The big picture

    Use ZIP-Codes: how many U.S. ZIP Codes cross a county line? How many cross a state line?

    It answers9,687 of 41,541, about 1 in 4, cross a county line. 112 cross a state line.
Questions to tryPaste one in once ZIP-Codes is connected. They use our demo values, so they answer in full without a key; answers checked Nov. 24, 2026.

Add ZIP-Codes to Claude

Works on the free plan, on the web, desktop and phone. One click: Claude's directory opens with a Connect button.

Add from Claude's Directory
Or add it yourself
  1. On claude.ai, open Customize → Connectors → Add custom connector.
  2. Name it ZIP-Codes and paste:https://mcp.zip-codes.com/mcp
  3. Choose No sign-in, add it, and turn it on in a new chat.
With a key

If your connector form has a Request headers section, add x-api-key with your key as the value. Request headers are a beta for a limited set of organizations. Without it the connector runs in demo mode, unless you give Claude your key in the conversation to pass as the tools' api_key argument; the key is then part of the chat, so prefer the header where you have it. In Claude Desktop, mcp-remote sends the header for you. A connector's authentication can't be edited after it's added: remove it and add it again.

Need a key? A free key includes 2,500 credits a day. Send it in the X-Api-Key header or as Authorization: Bearer followed by the key.

Agents, please read llms.txt. Agents with an MPP wallet can buy credits themselves. Machine-readable: pricing.json, OpenAPI, API catalog.

Troubleshooting

Check the key is really there: Claude Code accepts a placeholder such as YOUR_KEY without checking it. Run /mcp in Claude Code to see the server's status, and re-add the server with your real key.

That's demo mode, not an error: withheld text shows as * to *****, withheld numbers and true/false as null. A key returns them.

Your organization isn't in the Request headers beta yet. The connector still works, in demo mode. For a key, use mcp-remote in Claude Desktop, or give Claude your key in the conversation to pass as the tools' api_key argument (the key is then part of the chat).

Quit Claude Desktop completely and reopen it after editing the config; closing the window isn't enough.

Add --transport http-only. Without it, mcp-remote can fall back to the older SSE transport, which this server doesn't use.

Claude Code blanks variables with credential-looking names, such as ANTHROPIC_API_KEY, in remote headers. Use a name of your own: ZIPCODES_API_KEY.

Limits. Each tool answers for one place per call, for an agent answering questions. With a key, calls draw on your credits within your plan's per-minute limit: 60 a minute free, 300 to 600 on paid plans and credit packs. In demo mode there's no call limit, but radius_search lists the nearest 10 matches and suggest_places 5. For long lists, use the REST API's batch endpoints (paid plan or purchased credits).

What your agent can do

Each API tool takes the same include flags as its endpoint and returns the same JSON, so the API documentation describes every field. Each response's meta.withheld lists what demo mode held back.

ToolWhat it doesWithout a keyREST endpoint
validate_addressStandardizes a US street address, even messy one-line input, and returns its ZIP+4. Optional appends: coordinates, census geographies, congressional and state legislative districts, school district, time zone, and Census survey profiles for the address's census tractReturns the standardized address and ZIP Code. Withholds the ZIP+4 add-on and delivery details (record type, carrier route, county, congressional district), and from the appends the geography names and codes, school district, time zone and most survey estimates/v2/address
zip_lookupEverything about a ZIP Code, ZIP+4, Canadian postal code or lat/long: city, county, area codes, and optional Census, district, school and demographic dataReturns city, state and whether the ZIP spans counties. Withholds county, coordinates, area codes, metro area, city aliases and delivery counts, and from the optional data the geographies, districts, school district, time zone and most survey estimates/v2/zip
radius_searchEvery ZIP or postal area within a radius, with distances and optional area demographicsReturns codes, cities and distances for the nearest 10 matches, with the total count. Withholds county and coordinates/v2/radius
distanceStraight-line distance and bearing between any two placesReturns the distance in miles and kilometers. Withholds bearing, coordinates, county and time zone/v2/distance
quick_zipThe fast, small answer for a code, or the code for a lat/longWithholds county and coordinates/v2/quick-zip
suggest_placesFinds places from partial or misspelled namesReturns the first 5 matches with name, type and state. Withholds associated ZIP Codes, coordinates and codes/v2/suggest
zip_factsStatistics about US ZIP Codes and Canadian postal codes: how many exist, how they break down by type, delivery point and carrier route totals, per-state tables, and ranked lists such as the ZIP Codes with the most carrier routes. Nothing withheldBuilt-in reference data (free)
about_dataWhere this server's data comes from: for each dataset the authority behind it, the edition served where the source publishes editions (TIGER/Line, ACS, ZCTA), how often a new release is taken, and a ready-made citation string. Nothing withheldBuilt-in reference data (free)
city_name_rulesHow USPS names a ZIP Code, and which of those names may be used on mail. Nothing withheldBuilt-in reference data (free)
county_referenceUS counties and county equivalents. Nothing withheldBuilt-in reference data (free)
metro_area_referenceUS metropolitan and micropolitan statistical areas (CBSAs). Nothing withheldBuilt-in reference data (free)
buy_creditsBuys a credit pack with a wallet that pays MPP (Machine Payments Protocol) challenges, such as Stripe Link. The wallet's owner approves each payment. With a key, the credits go on that key; without one, the purchase creates a prepaid API key holding the credits, which can be reloaded later. The only tool that is not read-only.Creates a prepaid API key; no signup needed/v2/purchase

What's hard to get elsewhere

Boundaries back to 2010: what it was then, and what it is now. Every Census TIGER/Line year from 2010 to 2026, 17 in all: census_YYYY, cd_YYYY and state_leg_YYYY. Connecticut's counties became planning regions on the 2022 map: Hartford's ZIP 06103 is in Hartford County in 2021 and Capitol Planning Region from 2022. The 2020 Census redrew tracts: tract 99, nearly a third of ZIP 10001 in 2010, is now 99.01, 99.02 and 99.03. New places appear: ZIP 30038 (Lithonia, GA) was in no census place in 2010; today 95% of it is in Stonecrest city.

Fourteen years of Census survey data, already normalized. 2011–2024 in one schema with plain names, so your agent asks for housing.rent.median, not a column code. Census renumbers its columns when it adds lines, and everything after them shifts: median rent was DP04_0132 in the 2011 release and is DP04_0134 in 2024; median age moved from DP05_0017 to DP05_0018. We already did the mapping across releases, and every value still names its source column. Each estimate comes with its margin of error. A ZIP Code's figures are the Census estimates for the ZCTA with the same code; an address’s census tract has all 14 releases too.

Messy address in, neighborhood out. One line, even with a typo or no ZIP Code, and one call returns the standard address, its ZIP+4, the boundaries it falls inside and the census tract's estimates. Leave out the state and most of the time it still matches: in our test, 20 of 22 well-known addresses typed without a state matched ("1 Infinite Loop, Cupertino" came back as 1 INFINITE LOOP, CUPERTINO, CA 95014-2083). Each answer says what was filled in or corrected, with a confidence level, and a failed match says so rather than guessing.

Real overlaps. ZIP Codes follow mail routes, not political lines. About one in four (9,687 of 41,541) is flagged as spanning more than one county, and 112 reach into a second state. Your agent gets the USPS assignment and how much of the ZIP falls in each county, district or metro area, even when they disagree: USPS files Prudence Island’s ZIP 02872 under Bristol County, yet the island is 100% in Newport County.

ZIP Codes as USPS actually uses them, including PO Box and single-organization ZIPs that Census ZIP-area files leave out.

Use it intelligently

Compare the tract with its ZIP Code. validate_address with acs_tract_* gives the address's census tract; zip_lookup with acs_* gives its ZIP Code's (the same-code ZCTA's). Side by side they show whether an address sits in a more or less affluent, younger or more renter-heavy part of its ZIP: Wrigley Field's tract 611 reports a median household income of $117,330, ZIP 60613 $95,572.

Check the margins before you rank. A tract is small: tract 611 has about 1,368 residents (± 228), and its income estimate is ± $50,774 against the ZIP's ± $6,037, so the $21,758 gap above is within the margin. Read moe before comparing, and use the ZIP figure when precision matters.

Trends are one comparison. Field names don't change between releases (2011–2024), so a change over time is two numbers from one path: ZIP 10001's housing.rent.median went from $1,580 ± $127 (2007–2011) to $3,361 ± $268 (2020–2024). See the history prompts above.

Two answers to "which county?" The USPS county is where the ZIP is assigned; the census counties are where its area lies. USPS files ZIP 02872 under Bristol County, while 100% of it is in Newport County (pct_of_zip 100, pct_of_area 5.13). Use pct_of_zip to split a ZIP across counties or districts by area: ZIP 33139 was 87% in Florida's 18th district and 13% in the 20th on the 2012 map.

Demo mode or a key?

Feature Demo (no key) With a key
CostFree
ValuesReal and current; some deeper fields withheld
Withheld fieldsText shows as *****; numbers and true/false show as null

How an agent buys credits

An agent with a wallet that pays MPP (Machine Payments Protocol) challenges, such as Stripe Link, buys credits itself: no signup, no account, and no one on our side. The wallet's owner approves each payment.

1. Ask to buy

In the MCP, call buy_credits. Through the REST API, send POST /v2/purchase with a pack, such as {"pack":"Mini"}. Starting with no key, go straight here: a data request without a key answers 401, not an offer.

2. Pay the challenge

The answer is 402 Payment Required with an MPP challenge. The wallet pays it, and the agent sends the same request again with the payment credential.

3. Get a key

With no key, the purchase creates a prepaid card: an API key starting pp_card_ that holds the credits, with no account behind it. Buying with that key reloads it. With a key, the credits go on that key. Keep the key: the same payment sent again returns it only while the card is unused, for 24 hours.

4. Make the first lookup

Use the key with every tool and endpoint. An answer of 202 means the payment is still clearing: keep the purchase_id and check it with GET /v2/purchases/{id}. Don't buy again.

Agents can start with the Mini pack: 6,250 credits for $5. Every pack and its price is in pricing.json, and purchased credits never expire. Out of credits mid-task? The 402 answer offers the smallest pack that completes the request.

Paying with a card number rather than a wallet goes through the pricing page, with an account. Paying accepts the Terms of Service. Full details for agents: the “Paying with a wallet” section of llms.txt.

MCP or the REST API?

Use MCP when an agent is answering questions about places, one at a time. Use the REST API for bulk work: its batch endpoints take up to 100 items per request (250 for addresses), on a paid plan or with purchased credits. See the API documentation.

FAQ

Not the ZIP Codes. Our ZIP boundaries are built from USPS carrier routes and refreshed quarterly, and every ZIP is included: PO Box and unique ZIPs, which have no area of their own, are served as points, and military ZIPs (APO, FPO and DPO, some of them ships at sea) are included with no location at all. Census ZIP Code Tabulation Areas (ZCTAs) are drawn once a decade from census blocks and leave those ZIPs out. The demographics are Census estimates, and Census publishes them for ZCTAs and tracts, not ZIP Codes: a ZIP's come from the ZCTA with the same code (labelled geography_level: "zcta"), an address's from its census tract ("tract").

By intersecting shapes. Each ZIP Code polygon is intersected with each source's own boundary polygons: Census TIGER/Line counties, places, tracts, block groups, metro areas and congressional and state legislative districts, and NCES school districts. Every overlap carries pct_of_zip (the share of the ZIP's area inside that geography) and pct_of_area (the share of the geography inside the ZIP). Shares are by area, not by population or addresses, and slivers under a small threshold are left out. An address is a point, so it gets the geographies that contain it, with no shares.

USPS ZIP Code, ZIP+4 and delivery data: monthly. ZIP Code and carrier route boundaries: quarterly. Census boundaries: TIGER/Line 2026, with every year back to 2010 on request. School districts: NCES school year 2024–25. Census survey estimates: the 2020–2024 5-Year release, with every release back to 2011. Canadian postal codes: monthly. Ask the free about_data tool for each source's edition, cadence and citation.

No. The demographics are statistics for the census tract the address sits in, published by the Census Bureau with margins of error. Nothing here is about any individual or household. Comparing an address's tract with its ZIP Code's figures shows whether it sits in a more or less affluent part of the ZIP, within the margins of error.

You get no ZIP+4 for it. A street that doesn't exist in that city comes back as no match: success: false, error NOT_FOUND, "The address could not be matched.", and no address at all (in our test, 742 Zebrafinch Moonbeam Ln, Chicago, IL 60613 and 4410 Glimmerquartz St, Denver, CO 80203). A house number beyond a real street's range is different: the street is found, so it comes back as a partial match with confidence: "low", only the 5-digit ZIP Code and the notice "The ZIP+4 was not assigned because a specific delivery point could not be established." (99999 5th Ave, New York, NY 10118 came back as 99999 5TH AVE, NEW YORK, NY 10118). Check success, confidence and notices before treating an address as real.

Yes. Calls with and without a key are logged: the tool, what was looked up, the time, your IP address and your key's prefix (never the full key). We use these logs to maintain and improve the service: to prevent abuse, to answer billing questions, to see which tools and enrichments are used most, and now and then to check that answers are correct. Your account dashboard shows the credits each key used per day; for a call-by-call record, email info@zip-codes.com. We don't sell these logs or share them with third parties for their own use. See our Terms of Service, section 14.

No, to try it: every tool answers in demo mode with real values and some deeper fields withheld. A key returns complete answers; a free key includes 2,500 credits a day.

Every MCP client that can reach a remote server works in demo mode. The recommended way to use a key is the X-Api-Key header, from a client that can send it: Claude Code, Cursor, VS Code, Codex, Windsurf, Claude Desktop through mcp-remote, and Claude connectors where your organization has the Request headers beta. A client that can't send headers, such as ChatGPT (its custom connectors support OAuth or no authentication) or a Claude connector without Request headers, can pass the key as the tools' api_key argument instead, if you give it the key in the conversation; the key is then part of the chat, so prefer the header where you can. Without a key, they run in demo mode.

You're in demo mode, which is there so you can try the server for free and build against it. The basics are real: whether a ZIP Code exists, its city and state, whether it spans counties, and for an address its standard street, city, state, 5-digit ZIP Code and match confidence. The rest comes back in the fields a key fills, masked: withheld text shows as * to *****, withheld numbers and true/false as null, and each response's meta.withheld lists what was held back. The JSON is the same key for key, apart from the demo notes in meta, so add your key in the X-Api-Key header, call the same tool with the same arguments, and the values arrive with nothing else to change. Demo codes and addresses, such as ZIP 90210 and the Empire State Building, come back in full.

The same credits as the REST API. Most calls cost 1 credit plus 1 for each enrichment you ask for, so the address example above costs 5; radius search costs more as the radius grows. The reference tools are free. Paid plans and credit packs are on the pricing page.

Yes for lookups, radius search, distance and place search: Canadian FSAs and postal codes work wherever a US ZIP Code does, with Statistics Canada geography and federal electoral districts on request. Address validation and the Census survey estimates are US only.

ZIP Codes MCP Server

A free key includes 2,500 credits a day.