CountryStateCity

CountryStateCity MCP Connector for Claude

A+

Access global geographic data — list countries, states, and cities with ISO codes and metadata directly from any AI agent.

6 tools Official Updated Jun 28, 2026 Official Vinkius Partner

Connect the CountryStateCity database to your AI agent and instantly retrieve accurate geographic data through natural conversation.

What you can do

  • Global Country List — Retrieve all countries with their ISO2/ISO3 codes, phone codes, and emojis
  • State & Province Discovery — List all administrative divisions (states, provinces, regions) for any specific country
  • City Level Granularity — Drill down into specific cities within a state or fetch all cities in a country (Supporter+ tier)
  • Detailed Metadata — Access specific fields like latitude, longitude, and currency for precise location context

How it works

  1. Subscribe to this server
  2. Enter your CountryStateCity API Key
  3. Start querying global locations from Claude, Cursor, or any MCP-compatible client

Who is this for?

  • Developers — quickly find ISO codes and regional IDs without leaving the code editor
  • Data Analysts — validate geographic hierarchies and clean location data via chat
  • Logistics & E-commerce — verify shipping regions and city-state relationships instantly
geographic-dataiso-codeslocation-servicesglobal-databaseaddress-validation

6 tools expose this connector's capabilities to your AI agent.

get_country

Get details for a specific country

get_state

Get details for a specific state

list_cities_by_country

Note: Requires Supporter+ tier. List all cities within a specific country

list_cities_by_state

List all cities within a specific state

list_countries

List all countries

list_states

List all states/provinces within a specific country

See how to talk to your AI agent using CountryStateCity.

List all countries and include their emojis.

I've retrieved the list of countries. Here are a few: Afghanistan (AF) 🇦🇫, Albania (AL) 🇦🇱, Algeria (DZ) 🇩🇿, and Andorra (AD) 🇦🇩. Would you like the full list or details for a specific one?

What are the states in India (IN)?

Querying states for India... I found 36 states/territories, including Maharashtra (MH), Delhi (DL), Karnataka (KA), and Tamil Nadu (TN). Which state would you like to explore further?

List the cities in the state of New York (NY), US.

Fetching cities for New York, United States... I've found cities such as Albany, Buffalo, New York City, and Rochester. Do you need specific details for any of these cities?

Use the `list_cities_by_state` tool by providing the Country ISO2 code (e.g., 'US') and the State ISO2 code (e.g., 'NY'). The agent will return a list of all cities registered in that region.

Related Connectors