MCP server
Country State City
io.github.pipeworx-io/country-state-city
Checked 26 Oct 2026, 08:29 UTC · Connected to it and listed its tools
CountryStateCity MCP — wraps CountryStateCity API (api.countrystatecity.in/v1)
Working at last checkOfficial: pipeworx.io's GitHub account (pipeworx-io)About 26,784 tokens per request once connected45 tools
https://gateway.pipeworx.io/country-state-city/mcp
At a glance
- Type
- MCP server
- Publisher
- pipeworx.io (verified by the MCP Registry)
- Status
- Working at last check
- Tools
- 45
- Token cost
- About 26,784 tokens per request
- Sets up in
- Claude Code, Claude Desktop, Codex, Gemini CLI, Cursor, VS Code, Antigravity, ChatGPT, OpenAI API, Grok
- Last checked
- 26 Oct 2026, 08:29 UTC
Connect it to your agent
Opens the app, which shows the server and asks you to confirm. For other apps, copy the setup below.
Claude Code
claude mcp add --transport http country-state-city https://gateway.pipeworx.io/country-state-city/mcp
Claude Desktop
Settings → Connectors → Add custom connector, and paste the URL.
Codex (config.toml)
[mcp_servers.country-state-city] url = "https://gateway.pipeworx.io/country-state-city/mcp"
Gemini CLI
{"mcpServers":{"country-state-city":{"httpUrl":"https://gateway.pipeworx.io/country-state-city/mcp"}}}
Cursor
{"mcpServers":{"country-state-city":{"url":"https://gateway.pipeworx.io/country-state-city/mcp"}}}
VS Code
{"servers":{"country-state-city":{"type":"http","url":"https://gateway.pipeworx.io/country-state-city/mcp"}}}
Antigravity
agy mcp add country-state-city https://gateway.pipeworx.io/country-state-city/mcp
ChatGPT
Settings → Apps & Connectors → Advanced settings: turn on Developer mode, then Create a connector and paste the URL. Which plans can do this varies.
OpenAI API (Responses tools)
{"type":"mcp","server_label":"country-state-city","server_url":"https://gateway.pipeworx.io/country-state-city/mcp","require_approval":"always"}
Grok (xAI API tools)
{"type":"mcp","server_label":"country-state-city","server_url":"https://gateway.pipeworx.io/country-state-city/mcp"}
Tools
get_cities~202 tokens
Get cities for a country, optionally filtered by state. Pass country_code (e.g., "US") and optionally state_code (e.g., "CA") to narrow results.get_states~163 tokens
Get all states or provinces for a country by ISO2 code (e.g., "US", "IN", "BR"). Returns state names, codes, and types.list_countries~116 tokens
List all countries with ISO codes, capitals, phone codes, currencies, and regions. Returns ~250 countries. Useful for building dropdowns or validating country data.
Browse
Related MCP servers
- Zippopotam
Zippopotam MCP — wraps Zippopotam.us ZIP/postal code API (free, no auth) - Openweather
OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org) - Radar
Radar MCP — wraps the Radar Geocoding / Search API (radar.com) - Invokely official statistics
Query official statistics through MCP, with periods, places and citable sources in every answer. - Worldbank
World Bank MCP — wraps the World Bank Data API v2 (free, no auth) - Setlist Fm
setlist.fm MCP. - GradeTV
Public TV and radio catalogue with measured stream health, folders and M3U feeds for VLC. - Citybikes
Citybikes MCP — wraps CityBik.es API (free, no auth required)
Badge for your README
[](https://aptlynx.net/servers/io.github.pipeworx-io/country-state-city)
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents