For the complete documentation index, see llms.txt. This page is also available as Markdown.

Connecting your AI assistant to CARTO

CARTO for Agents lets you drive the full CARTO platform from the AI assistant you already use — Claude, ChatGPT, Gemini, Microsoft Copilot, and more. Instead of clicking through the Workspace, you ask in plain language, and the agent explores your data, builds maps, runs Workflows, and returns results in the conversation.

This tutorial gets you from zero to your first agent-built map, then points you to a use-case example for your platform of choice.

The bridge between your AI assistant and CARTO is the CARTO MCP Server, which speaks the open Model Context Protocol. For the full setup reference, see CARTO for Agents in the product documentation.

What you'll learn

  • How to connect an AI assistant to your CARTO account.

  • How to build and edit a map from a natural-language prompt.

  • A concrete use-case example for each major agent platform.

Before you begin

  • A CARTO account with a connected data warehouse. The built-in CARTO Data Warehouse works well for a first run.

  • An AI assistant that supports remote MCP servers. Claude is the quickest to connect.

Step 1 — Get your MCP Server URL

In the CARTO Workspace, open Developers > Workflow API & MCP Server and copy your MCP Server URL. It looks like https://<region>.api.carto.com/mcp/<account_id>. If your organization uses single sign-on, copy the SSO login URL instead.

Step 2 — Connect your assistant

Add the URL as a new MCP server in your assistant and sign in to CARTO when prompted. Claude connects with just the URL — there's nothing else to configure. Other platforms use a self-service OAuth client; the Connect your platform guides walk through each.

Step 3 — Build your first map from a prompt

Confirm the connection with a simple question:

List my CARTO connections and the tables in each.

Then build a map. Paste this and swap in one of your own tables:

Explore my CARTO data, then create a Builder map from <connection>.<schema>.<table>. Pick a sensible geometry or spatial-index column, style it clearly, add a legend, and keep it private. Show me the result and the link to open it in CARTO.

The agent inspects the table, composes the map, creates it in CARTO Builder, and hands back a link. On Claude, ChatGPT, and Claude Desktop, it also renders the map right in the chat.

Step 4 — Keep going with a real use case

Now that you're connected, try a workflow that matches how your team works. Pick your platform:

Where to go next

Last updated

Was this helpful?