• GEO DATA
  • LISTS
  • MAPPING
  • HUMAN

How to get location coordinates with your AI

Connect CountryStateCity to your AI client once. From then on, your agent can pull precise geographic data on demand.

Ask AI about this page

Short answer

How can I get city coordinates with my AI?

Your agent uses this MCP to find the exact latitude and longitude for cities. You'll get specific geographic data for any city you request. Here is how it works.

The results.

Where your data lands.

The AI processes your request and delivers these specific outcomes.

GEO DATA

Precise coordinates

The AI finds the exact latitude and longitude for the cities you name. You get raw numbers ready for mapping.

LISTS

City directories

Your agent builds lists of cities within specific states or countries. This helps you organize regional data.

MAPPING

Geospatial prep

The AI extracts location data so you can drop it into GIS tools or custom maps.

HUMAN

Manual review

You check the coordinates to ensure they match your specific project needs before using them.

The workflow

What your AI does when you ask for locations.

The AI uses specific tools to navigate the geographic hierarchy and find the numbers you need.

  1. Identify the region

    The AI narrows the search area by looking up valid countries or states.

    list_cities_by_countrylist_cities_by_state
  2. Locate the city

    Once the region is set, the agent finds the specific city within that boundary.

    list_cities_by_state
  3. Extract coordinates

    The AI pulls the latitude and longitude values associated with that city name.

    list_cities_by_state
  4. Format for use

    Your agent organizes the coordinates into a clean format for your specific task.

    list_cities_by_country

Try it

Copy these to start.

Use these prompts to kick off your task.

Starting points

Swap out the city, state, or country names with the ones you actually need.

CountryStateCity Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_84Tzke4E2WhwikYMpRcFHGTsTtK4ZRJ3G2gMigKE/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — CountryStateCity capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "countrystatecity-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_84Tzke4E2WhwikYMpRcFHGTsTtK4ZRJ3G2gMigKE/mcp"
    }
  }
}
Copy into chat04
  • Find the latitude and longitude for Austin, Texas.

  • List all cities in France and give me their coordinates.

  • I need the exact coordinates for Tokyo, Japan.

  • Give me a list of cities in California with their latitude and longitude.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect CountryStateCity once, then ask.

One click connects the MCP to your client. Your credentials stay encrypted and the setup is handled on our end.

Connect CountryStateCity to your AI

FAQ

How this task behaves.

  • 01

    Can the AI find coordinates for a specific street address?

    No. This MCP only provides coordinates for cities, not individual street addresses.

  • 02

    Can the AI change the location data in its database?

    No. The AI can only read the existing geographic data provided by the tools.

  • 03

    Does the AI provide elevation data?

    No. It only provides latitude and longitude.

  • 04

    Can I get a list of all cities in the world at once?

    No. You must specify a country or a state to narrow the search.

  • 05

    Will the AI automatically update my map files?

    No. The AI provides the data, but you must be the one to move that data into your mapping tools.

  • More questions about CountryStateCity? The Connector page answers them. See everything the CountryStateCity Connector can do

Connect CountryStateCity to Claude, Cursor, ChatGPT & more