CountryStateCity (Unofficial)
v0.2.2Unofficial 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.
| Parameter | Type | Description |
|---|---|---|
_apiKey * | string | CountryStateCity 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.
| Parameter | Type | Description |
|---|---|---|
_apiKey * | string | CountryStateCity API key |
country_code * | string | ISO2 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.
| Parameter | Type | Description |
|---|---|---|
_apiKey * | string | CountryStateCity API key |
country_code * | string | ISO2 country code (e.g., "US", "IN") |
state_code | string | State/province code to filter by (e.g., "CA", "NY", "TX") |