MCP server exposing 3 tools for country-state-city.
This URL is a JSON-RPC 2.0 endpoint over HTTP. Issue POST requests with a JSON-RPC body. Browsers and search crawlers land here on GET.
POST https://gateway.pipeworx.io/country-state-city/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
list_countries — List all countries with ISO codes, capitals, phone codes, currencies, and regions. Returns ~250 countries. Useful for building dropdowns or validating country data.get_states — Get all states or provinces for a country by ISO2 code (e.g., "US", "IN", "BR"). Returns state names, codes, and types.get_cities — 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.Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/country-state-city/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io