> For the complete documentation index, see [llms.txt](https://docs.carto.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.carto.com/carto-for-agents/connect-your-platform/antigravity.md).

# Antigravity

[Google Antigravity](https://antigravity.google/) is an agentic development environment that can connect to CARTO through a remote MCP server.

> **Before you start:** Copy your **MCP Server URL** from CARTO Workspace under **Workspace > Settings > MCP Server**

## Connect the MCP Server

Antigravity supports remote MCP servers through its MCP configuration.

Open **Manage MCP Servers > View raw config** and add CARTO to the `mcpServers` configuration:

```json
{
  "mcpServers": {
    "carto": {
      "serverUrl": "https://<region>.api.carto.com/mcp/<account_id>",
      "headers": { "Authorization": "Bearer YOUR_CARTO_TOKEN" }
    }
  }
}
```

Replace `<region>` and `<account_id>` with the values from your CARTO MCP Server URL.

Use a CARTO [API Access Token](/carto-for-agents/mcp-server/connecting-with-api-tokens.md) in the header for the read-and-discovery subset.

For the full surface, set up OAuth with a manual client ID and secret — CARTO doesn't support dynamic client registration for non-Claude clients (see [Connecting with OAuth](/carto-for-agents/mcp-server/connecting-with-oauth.md#everything-else-a-one-time-oauth-client)).

{% hint style="info" %}
**Version note:** Antigravity is a newer product and its MCP configuration options may change. Confirm the configuration path and supported authentication fields against the version of Antigravity you're using.
{% endhint %}

## Skills and the CLI

Because Antigravity is a full IDE with a terminal, you can also use the [CARTO CLI](/carto-for-agents/cli.md) for scripting, automation, and administration.

Antigravity supports the `SKILL.md` format used by CARTO Agent Skills. You can add CARTO skills by placing the skill folders in your skills directory:

* **Workspace:** `.agents/skills/`
* **Global:** `~/.gemini/config/skills/`

The exact skills directory can vary by Antigravity version, so confirm the current path in your installed version before adding skills.

The CARTO CLI and Agent Skills are complementary to the MCP connection: MCP gives the agent access to CARTO tools, while the CLI and skills can provide additional instructions and workflows for working with CARTO from the development environment.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.carto.com/carto-for-agents/connect-your-platform/antigravity.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
