v2.0.11

Country State City

Complete world location data. Simple, fast, reliable.JSON, CSV, XML, YAML — your choice.

$ npm install @tansuasici/country-state-city

0

Countries

0

States

0

Cities

Location Selector

Select your location step by step

Built for Developers

Everything you need to work with location data

Multiple Formats

Export as JSON, CSV, XML, or YAML with a single method call

ISO Standards

ISO 3166-1 compliant country codes trusted by enterprise apps

Global Coverage

Comprehensive data from 250+ countries with coordinates and metadata

Developer Ready

Full TypeScript support, tree-shakeable, works in Node.js and browsers

New

MCP Integration

Connect directly to Claude Desktop and other MCP-compatible AI assistants. Query countries, states, and cities through natural language.

Learn More

Quick Start

Up and running in seconds

install.sh
$ npm install @tansuasici/country-state-city
app.ts
import { CountryStateCity }
  from '@tansuasici/country-state-city';

const countries = CountryStateCity.getAllCountries();
const states = CountryStateCity.getStatesByCountryId(225);