• GEOCODING
  • DATA
  • MAPPING
  • HUMAN

How to convert addresses to coordinates with your AI

Connect OpenCage to your AI client once. After that, you can simply pass it any address or place name to get back exact coordinates.

Ask AI about this page

Short answer

How do I turn addresses into latitude and longitude?

Your AI uses the forward_geocode tool to look up any address or landmark. It returns the precise latitude and longitude for that location. You'll get a breakdown of how this works below.

The results.

Where your data lands.

The AI handles the lookup and organizes the results based on your instructions.

GEOCODING

Precise coordinates

The AI finds the exact latitude and longitude for the text you provide. You get clean numerical data ready for a map.

DATA

Structured lists

If you provide a spreadsheet or a long list, the AI processes each entry. It turns messy text into a structured set of coordinates.

MAPPING

Ready for maps

The AI formats the output so you can drop it directly into mapping software or GIS tools. It handles the heavy lifting of translation.

HUMAN

Manual verification

You decide if the results are accurate enough for your needs. The AI provides the data, but you confirm the locations match your intent.

The workflow

What your AI does when the address arrives.

The AI acts as the bridge between your text and the OpenCage database.

  1. Parse the input

    Your AI reads the address, landmark, or place name from your chat or document. It identifies the specific location details needed for a search.

    forward_geocode
  2. Execute lookup

    The AI calls the geocoding tool to query the OpenCage database. It sends the text to find the best matching geographic point.

    forward_geocode
  3. Extract coordinates

    The tool returns a response containing the latitude and longitude. The AI pulls these specific numbers out of the raw data.

    forward_geocode
  4. Format output

    The AI presents the coordinates in the format you requested, like a table, a JSON object, or a simple list.

    forward_geocode

Try it

Copy these to start.

Use these prompts to trigger the geocoding process immediately.

Starting points

Swap the bracketed text with your actual data, like a specific street address or a file name.

OpenCage Geocoder Connector

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

Connector linkhttps://edge.vinkius.com/vk_preview_Oo9CdLqd7PdzHDJE8MP4UsAbpXEOl2GV84VNK9hD/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 — OpenCage Geocoder capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "opencage-geocoder-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_Oo9CdLqd7PdzHDJE8MP4UsAbpXEOl2GV84VNK9hD/mcp"
    }
  }
}
Copy into chat04
  • Convert the address '1600 Amphitheatre Parkway, Mountain View, CA' into latitude and longitude.

  • Take the list of addresses in my current spreadsheet and find the coordinates for each one.

  • Find the coordinates for the Eiffel Tower and give them to me in a JSON format.

  • Geocode these locations from my text file: [insert list of addresses].

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

Start here

Connect OpenCage once, then ask.

Click the link to connect the MCP to your client. Your credentials stay encrypted, and you can start geocoding right away.

Connect OpenCage to your AI

FAQ

How this task behaves.

  • 01

    Can the AI convert coordinates back into addresses?

    No. This specific tool is for forward geocoding, which only moves from text to coordinates.

  • 02

    Will the AI automatically update my Google Maps?

    No. The AI only provides the coordinate data. You have to manually move that data into your mapping tools.

  • 03

    Does the AI handle misspelled addresses?

    Yes, the tool is designed to handle slight typos or incomplete address strings to find the most likely match.

  • 04

    Can I geocode an entire CSV file at once?

    Yes, if you provide the file or the text from the file, the AI can process the entries using the geocoding tool.

  • 05

    Does the AI save my location data?

    No. The AI uses the data to perform the lookup and then provides the result to you.

  • More questions about OpenCage? See everything the OpenCage Connector can do

Connect OpenCage Geocoder to Claude, Cursor, ChatGPT & more