- DATA
- VALIDATION
- FORMAT
- HUMAN
Short answer
How can I get all postal codes for a city?
Tell your AI the city and state you're looking for. It will use Zippopotam.us to fetch the full list of valid postal codes for that area. You'll get a clean list of codes without having to search through a database manually.
The results
What you get
The AI handles the data retrieval so you don't have to.
DATA
Complete postal code lists
The AI pulls every valid code for the city you named. You get a clean set of numbers ready for your project.
VALIDATION
Verified location data
Because the AI uses Zippopotam.us, the codes are pulled directly from a dedicated postal database. This ensures the codes actually match the city and state provided.
FORMAT
Ready to use lists
The AI organizes the results into a format you actually need. You can ask it to present the codes as a list, a comma-separated string, or a table.
HUMAN
Manual verification
You remain in control of the final data. You decide which codes are relevant to your specific task or if you need to cross-reference them with other sources.
The workflow
What your AI does when the request arrives.
The AI acts as a bridge between your natural language and the postal database.
Parse the request
Your AI identifies the specific city and state mentioned in your prompt.
lookup_nearby_cityQuery the database
The AI calls the Zippopotam.us tool to find all matching postal codes for that location.
lookup_nearby_cityFilter results
The AI checks the returned data to ensure every code belongs to the requested city.
lookup_nearby_cityDeliver the list
The AI presents the final list of postal codes in the format you requested.
lookup_nearby_city
Try it
Copy these to start.
Use these prompts to get moving immediately.
Starting points
Swap out the city and state names with the ones you actually need.
Zippopotam.us Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_m2AdUuOmpmUFiAskGVSXovo0Bhd6hoPtBBaCSGZc/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — Zippopotam.us capabilities are ready to use.
{
"mcpServers": {
"zippopotamus-mcp": {
"url": "https://edge.vinkius.com/vk_preview_m2AdUuOmpmUFiAskGVSXovo0Bhd6hoPtBBaCSGZc/mcp"
}
}
}Find all the postal codes for Chicago, Illinois.
Give me a list of zip codes for Miami, Florida.
What are the postal codes for Seattle, Washington? Put them in a table.
List the zip codes for Austin, Texas, separated by commas.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Zippopotam.us once, then ask.
Click the link to connect the MCP to your client. Your credentials stay encrypted, and you can start asking questions right away.
Connect Zippopotam.us to your AIFAQ
How this task behaves
- 01
Can the AI find postal codes for any city in the world?
No. The AI is limited to the data provided by the Zippopotam.us tool.
- 02
Can the AI update or change postal codes in the database?
No. The AI can only read and retrieve existing data from the tool.
- 03
Does the AI provide street addresses too?
No. This specific task is designed to find postal codes associated with a city and state.
- 04
Can I ask the AI to save these codes to a file?
The AI can generate the text for a file, but you must handle the actual saving or file creation in your local environment.
- 05
Will the AI tell me if a city doesn't exist?
Yes. If the tool cannot find a match for the city and state you provided, the AI will tell you that no codes were found.
More questions about Zippopotam.us? The Connector page answers them. See everything the Zippopotam.us Connector can do
Connect Zippopotam.us to Claude, Cursor, ChatGPT & more
