CountryStateCity (Unofficial)

v0.2.2
io.github.pipeworx-io/country-state-city Checked 4 days ago Published 19 days ago

Unofficial CountryStateCity MCP — wraps CountryStateCity API (api.countrystatecity.in/v1)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

country_state_city_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.

ParameterTypeDescription
_apiKey *stringCountryStateCity API key

country_state_city_get_states

Get all states or provinces for a country by ISO2 code (e.g., "US", "IN", "BR"). Returns state names, codes, and types.

ParameterTypeDescription
_apiKey *stringCountryStateCity API key
country_code *stringISO2 country code (e.g., "US", "CA", "GB", "DE")

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.

ParameterTypeDescription
_apiKey *stringCountryStateCity API key
country_code *stringISO2 country code (e.g., "US", "IN")
state_codestringState/province code to filter by (e.g., "CA", "NY", "TX")