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.
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.
Sign in over OAuth to unlock the full experience — creating and editing maps, running Workflows, and administering your org. A read-only API token is a quick alternative for exploring data.
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:
Use-case examples by platform — Claude, ChatGPT, Gemini, Microsoft Copilot, Databricks, Snowflake, and Oracle.
Where to go next
CARTO for Agents documentation — the full reference: connecting each platform, the MCP tool catalog, Agent Skills, and the CLI.
Workflows as MCP Tools — expose your own analytical Workflows as tools any agent can call.
AI Agents — build conversational agents directly inside your Builder maps.
Last updated
Was this helpful?

