• LIST
  • MAP
  • RAW
  • HUMAN

How to extract locations from text with your AI

Connect Geocode.xyz to your agent. Once connected, your AI can read through any text you provide to identify specific geographic points.

Ask AI about this page

Short answer

How can I pull cities and countries out of my text automatically?

Your AI uses the geoparse tool to scan your documents and identify every mentioned location. You'll get a clean list of cities and countries extracted directly from your raw text.

Where your data lands.

The extraction outcomes.

The AI processes your text and organizes the findings into these categories.

LIST

Extracted locations

The AI identifies every city and country mentioned in your text. You get a clean list of these names.

MAP

Geographic data

The AI pulls specific geographic details from the text. This helps you see where your data is concentrated.

RAW

Original context

The AI keeps track of the text surrounding the locations. This lets you verify the context of each find.

HUMAN

Manual review

You review the final list to catch any ambiguous names or typos. This ensures your data is accurate.

The workflow

What your AI does when the text arrives.

The AI handles the heavy lifting of reading and identifying locations so you don't have to.

  1. Scan text

    Your AI reads through the unstructured documents you provide to find any mention of a place.

    geoparse
  2. Identify places

    The AI distinguishes between cities, countries, and other geographic entities within the text.

    geoparse
  3. Extract names

    The AI pulls the specific names of these locations out of the sentences.

    geoparse
  4. Format results

    The AI organizes the extracted names into a structured list for you to use.

    geoparse

Try it

Copy these to start.

Use these prompts to trigger the extraction process.

Starting points

Replace the bracketed text with your specific file names or data sources.

Geocode.xyz Connector

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

Connector linkhttps://edge.vinkius.com/vk_preview_YMP5yr72ClOYHPbkGdAG4fut8bUvsypCNjyAPgwg/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 — Geocode.xyz capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "geocodexyz-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_YMP5yr72ClOYHPbkGdAG4fut8bUvsypCNjyAPgwg/mcp"
    }
  }
}
Copy into chat04
  • Extract all cities and countries mentioned in this PDF document.

  • Scan my recent support tickets and list every location mentioned.

  • Go through the text in this spreadsheet and pull out all the countries.

  • Find every city mentioned in this project brief and give me a list.

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

Start here

Connect Geocode.xyz once, then ask.

Just click the link to connect. Your credentials stay encrypted, and you can start asking your AI to find locations immediately.

Connect Geocode.xyz to your AI

FAQ

How this task behaves.

  • 01

    Can the AI automatically update my database with these locations?

    No. The AI extracts the locations from your text, but you must handle the actual database updates yourself.

  • 02

    Will the AI delete any of my original documents?

    No. The AI only reads your documents to find information. It cannot modify or delete your files.

  • 03

    Does it work on handwritten notes?

    It works on any digital text your AI client can read. If your client can parse the text, the AI can extract the locations.

  • 04

    Can it find specific street addresses?

    The current tool is optimized for cities and countries. It may not capture specific house numbers or street names.

  • 05

    Does it handle misspelled city names?

    The AI's ability to catch typos depends on your AI client's reasoning, but the geoparse tool focuses on the text provided.

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

Connect Geocode.xyz to Claude, Cursor, ChatGPT & more