> ## Documentation Index
> Fetch the complete documentation index at: https://linkly.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Using Linkly AI in Antigravity

> Connect Antigravity to your local documents through MCP or Linkly AI CLI.

Connect Antigravity to your local documents through MCP or Linkly AI CLI.

## Before you start

Install Antigravity and keep Linkly AI Desktop running on the same computer. Add a folder and wait for indexing to finish. On the **Agent usage** page, enable **Allow local access** and copy the address from **View MCP connection settings**. The example uses port `60606`; use the address shown in your app.

## Connect with local MCP

**1. Open the configuration**

In the Antigravity IDE agent panel, open **… → MCP Servers → Manage MCP Servers → View raw config**. In Antigravity App, open **Customizations → Installed → MCP Servers** and use **Copy Config File Path** to find the configuration.

![Official MCP Store screenshot, with the management button at the top right.](https://mintcdn.com/linklyai/mVKF7iMXAI5wxq17/images/antigravity-mcp-servers.png?fit=max\&auto=format\&n=mVKF7iMXAI5wxq17\&q=85\&s=504166e9fa8dc5cf62e8f2a9008a6a51)

Official MCP Store screenshot, with the management button at the top right.

Source: Google Codelabs. Unmodified. [Getting Started with Antigravity IDE](https://codelabs.developers.google.com/getting-started-agy-ide#9) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

**2. Add the server**

Add this entry to `mcpServers` in `mcp_config.json`, keeping your other server entries. Local HTTP access does not need an API key.

```json theme={null}
{
  "mcpServers": {
    "linkly-ai": {
      "serverUrl": "http://127.0.0.1:60606/mcp"
    }
  }
}
```

**3. Save and refresh**

Save the file. In the IDE, return to **Manage MCP Servers** and refresh. In the App, use **More actions (⋮) → Restart** next to the server. Confirm that `linkly-ai` and its tools appear.

## Other connection methods

### MCP stdio

First [install Linkly AI CLI](https://linkly.ai/docs/en/use-cli.md), then use this configuration instead of the HTTP entry. Keep Linkly AI Desktop running. If Antigravity cannot find `linkly`, use the full path to the installed executable as `command`.

```json theme={null}
{
  "mcpServers": {
    "linkly-ai": {
      "command": "linkly",
      "args": [
        "mcp"
      ]
    }
  }
}
```

### CLI

After installing the CLI, you can also ask the agent to run these commands directly:

```bash theme={null}
linkly search "project requirements"
linkly read <document-id>
```

## Verify the connection

Search my documents for project requirements and read one relevant result.

Ask this in a new conversation. Check that Antigravity calls Linkly AI tools and returns indexed documents. If it cannot connect, check that local access is running, the port matches the desktop app, and both apps run on the same computer.

> [!TIP]
>
> [Linkly AI Skills](https://linkly.ai/docs/en/use-skills.md) provide instructions for searching and reading documents. For cloud libraries or access from another computer, see the [integration overview](https://linkly.ai/docs/en/integration.md).

## Official reference

[Antigravity MCP](https://antigravity.google/docs/mcp)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.