CountryStateCity MCP for AI. Validate global location data, instantly.
Works with every AI agent you already use
…and any MCP-compatible client








Connect to your AI in seconds.
CountryStateCity provides direct access to global geographical data, letting your AI agent query ISO codes and location metadata conversationally. Instantly list countries, find states within a region, or drill down to specific cities with latitude/longitude context.
What your AI can do
Get country
Gets detailed information, including codes, for one specific country.
Get state
Retrieves details for a single administrative state or province.
List cities by country
Lists every city within an entire country (requires Supporter+ tier).
Get a comprehensive list of every country and its associated ISO codes, phone codes, and emojis.
List all administrative divisions or provinces that belong to a specific country you name.
Fetch a list of every city located within a specific state's boundaries.
Generate a complete list of cities belonging to an entire nation.
Ask an AI about this
Waiting for input…
CountryStateCity: 6 Geographic Tools
Use these tools to query structured location data, allowing you to list everything from global country records down to individual city metadata.
Make your AI actually useful.
Add this MCP to Claude, Cursor, or Windsurf and your AI stops guessing. It gets real tools to look things up, take action, and handle the stuff you keep doing by hand.
Start using CountryStateCity on VinkiusGet Country
Gets detailed information, including codes, for one specific country.
Get State
Retrieves details for a single administrative state or province.
List Cities By Country
Lists every city within an entire country (requires Supporter+ tier).
List Cities By State
Lists all cities contained inside a specific state or province.
List Countries
Retrieves a full list of every recognized country globally.
List States
Lists all states and provinces that belong to a given country.
Security and governance baked right in.
Pick your AI client below to get set up. Just create a Vinkius account, subscribe, and you're instantly up and running. We handle the entire backend infrastructure, delivering out-of-the-box support for HTTPS Streamable, SSE, and OAuth2—zero messy routing required.
Choose How to Get Started
Build a custom MCP for your own tools, or connect a ready-made integration from our catalog.
Build Your Own
Turn any API into an MCP. Import a spec, define Agent Skills, or deploy with MCPFusion.
- Import from OpenAPI, Swagger, or YAML specs
- Create Agent Skills with progressive disclosure
- Deploy to edge with MCPFusion framework
- Built in DLP, auth, and compliance on every call
- Real time usage dashboard and cost metering
- Publish to catalog or keep private
Make Your AI Do More
Start with CountryStateCity, then connect any of our 5,100+ other servers whenever your AI needs more. One click, no limits.
- Use this MCP plus 5,100+ others, all in one place
- Add new capabilities to your AI anytime you want
- Every connection is secured and compliant automatically
- Track usage and costs across all your servers
- Works with Claude, ChatGPT, Cursor, and more
- New servers added to the catalog every week
Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by CountryStateCity. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
VINKIUS INFRASTRUCTURE
Cloud Hosted
Managed infra
V8 Isolated
Sandboxed per request
Zero-Trust Proxy
No stored credentials
DLP Enforced
Policy on every call
GDPR Compliant
EU data residency
Token Compression
~60% cost reduction
Works with Claude, ChatGPT, Cursor, and more
The Model Context Protocol standardizes how applications expose capabilities to LLMs. Instead of operating in isolation, your AI gains direct access to external platforms, live data, and real-world actions through secure, standardized connections.
This connection provides 6 powerful capabilities that interface natively with Claude, ChatGPT, Cursor, and other compatible AI platforms. No middleware. No custom integration required.
The headache of manual address validation
Right now, if you're building an international form or cleaning up a CRM database, the process is painful. You have to check country lists in one tab, then switch to a state lookup sheet, copy the code, and paste it into another tool just to verify city names. It’s slow, error-prone copy/paste work that nobody wants to do.
With this MCP, you talk to your agent like a person. You simply ask: 'What are all the states in France?' The system handles the complex lookups and returns clean, structured data instantly. Your AI client gets you the answer without a single manual click.
Getting location facts with CountryStateCity
The biggest time sink that vanishes is context switching. You never have to leave your development environment or chat window to validate whether an address exists, what its primary codes are, or if the state you listed belongs to the country you named.
You get instant validation and structured data points right where you're working. The complexity of global geography becomes a simple conversation.
What your AI can actually do with this
Need to validate shipping addresses or build a database that requires accurate geopolitical boundaries? This MCP connects your AI client directly to comprehensive global location data. You can ask for everything from a full list of all countries and their codes, to listing every state within a country like India, or pulling specific cities inside a region like New York.
This means you don't have to copy-paste lookups or consult multiple API endpoints just to validate coordinates. Your agent handles the hierarchy automatically, giving you precise data points—like latitude and longitude for any address—right in your chat window. If you use Vinkius, this MCP fits right into your existing catalog of powerful tools, letting you query location facts alongside everything else you're building.
019e5d0d-e5ba-7011-a55b-f1652129cb9a Here's how it actually works
The bottom line is that your AI client acts as the middleman, translating your conversational request into precise database queries and handing back clean, structured location facts.
Subscribe to this MCP and enter your CountryStateCity API Key.
Connect the MCP to your preferred AI client (Claude, Cursor, etc.).
Ask a natural language question, like 'What are the states in Brazil?' or 'List all cities in California.' The agent uses the tools to get the specific data you asked for.
Who is this actually for?
Data analysts who spend hours cleaning messy address records. Developers building applications that require accurate international addressing. Anyone frustrated by having to switch between multiple lookup tables just to validate a single shipping region.
Validates geographic hierarchies and cleans location data, ensuring every state or city record has the correct ISO codes.
Writes backend logic that requires knowing a country's list of states or finding a specific region’s coordinates without hardcoding values.
Verifies shipping regions and city-state relationships instantly when building out international fulfillment rules for an application.
What Changes When You Connect
Instead of manually querying for state lists, you can ask the agent to use list_states and get all provinces for any country right away. This saves time in building out international forms.
Build your application's backend logic around validated addresses. Use the tools like get_country or get_state to pull precise ISO codes needed for payment gateways or tax calculations.
Need a comprehensive list of all cities across an entire nation? The MCP handles it using list_cities_by_country, giving you a full dataset without writing complex loops in your code.
The agent allows you to drill down deep. If you know the state but not the country, you can use get_state and then specify which cities belong there via list_cities_by_state.
It gives you foundational data points like latitude and longitude for any given location, making it perfect for mapping features or calculating shipping distances.
See it in action
Validating a new market's address structure
A logistics planner needs to know if all the states in Mexico are properly listed. They prompt their agent, and it runs list_states against Mexico, giving them a definitive list of administrative divisions they need for their internal database.
Building an international form generator
A developer needs to create a country selector that also lists all subsequent states. They use the agent with list_countries first, then chain it with list_states for the selected region, ensuring the dropdowns are always current.
Debugging location data discrepancies
A data analyst finds a city listed incorrectly. They use the agent to cross-reference using get_state and then check that specific location's details, confirming its correct state context before fixing the record.
Populating a country directory
A content manager needs to write an article listing every major city in China. They ask the agent to use list_cities_by_country, getting hundreds of clean, structured names ready for publication.
The honest tradeoffs
Assuming a simple lookup works
A developer tries to write code that just queries 'City Name' and gets confused because multiple states might share the same city name.
Don't query by city alone. First, use list_countries to narrow it down globally, then specify a country, and finally use list_states to pinpoint the exact region before listing cities via list_cities_by_state. Always add context.
Missing the required tier level
Attempting to list all cities for an entire country when the account is on a basic plan, resulting in an error message.
If you need a complete city breakdown across a whole nation, make sure your subscription supports it. Use list_cities_by_country once that tier requirement is met.
Over-complicating the flow
Writing five separate API calls to get country codes, state codes, and city coordinates individually.
Let your agent handle it. Start by asking for a complex query like 'Get all data for New York State, US.' The MCP will route through get_country, then get_state automatically.
When It Fits, When It Doesn't
Use this MCP if your core problem is validating or retrieving structured geopolitical addresses. If you need ISO codes, country lists, state boundaries, or city coordinates—this tool set is exactly what you need. Don't use it if your data needs complex spatial analysis, like finding the nearest gas station to a given coordinate (that requires a dedicated mapping service). Also, don't rely on this for non-standard geopolitical entities that change rapidly; assume standard governmental structures are required.
When building workflows, remember: always start with the broadest scope you know (the country) and progressively narrow it down using list_states, then list_cities_by_state. If your task is simpler, like just getting a list of all countries, use list_countries directly.
Questions you might have
How do I use list_countries with CountryStateCity? +
Run list_countries to get every country name and its ISO codes. This tool gives you the fundamental starting point for any location query.
What does get_state do in CountryStateCity? +
The get_state tool lets you fetch specific details about one single administrative division, like its name and codes, after you know which country it belongs to.
Can I use list_cities_by_country with CountryStateCity? +
Yes, list_cities_by_country retrieves a complete directory of all cities within one nation. Remember, this function requires the Supporter+ tier.
How do I get coordinates using the MCP? +
The data returned from most queries includes latitude and longitude for precise location context, allowing you to map or calculate distances easily.
Is there a tool to list all states in a country? (list_states) +
Yes, use list_states. This tool takes a specific country and returns every associated state/province name and code.
How do I use list_cities_by_state to find locations? +
list_cities_by_state lists all cities within a specified state. You provide the name of the state and its country code, and the MCP returns a complete roster of every city in that administrative division.
What do I need to use get_country for accurate data? +
You must subscribe to the MCP and input your CountryStateCity API Key. This authentication step ensures secure access when retrieving detailed country metadata, like ISO codes or phone prefixes.
Does get_country provide more than just a list of names? +
Yes, it provides robust geographic context for the queried nation. Beyond basic identifiers, you get specific fields including latitude, longitude coordinates, and current currency information.
How can I list all cities within a specific state or province? +
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.
Can I get detailed metadata like emojis and phone codes for a country? +
Yes! The get_country tool allows you to fetch full details for a specific country using its ISO2 code. You can also use list_countries with the fields parameter to include 'emoji' or 'phonecode' in the results.
Is there a limit when listing all cities in a country? +
The list_cities_by_country tool requires a Supporter+ tier API key from CountryStateCity. For standard users, it is recommended to use list_cities_by_state to query cities in smaller administrative batches.
We've already built the connector for CountryStateCity. Just plug in your AI agents and start using Vinkius.
No hosting. No infrastructure. No complex setup.
All 6 tools are live and waiting.
You're up and running in seconds.
Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.
Built, hosted, and secured by Vinkius. You just connect and go.