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

# How to Integrate ZenRows with Antigravity IDE

> Connect ZenRows with Antigravity IDE to give your coding agent live web access directly inside your editor.

Antigravity IDE is Google's AI-powered code editor. It combines a fully featured editor with an agent that operates across your editor, terminal, and browser, handling tab autocompletion, natural-language code commands, and autonomous task execution.

With ZenRows connected, your coding agent can fetch live documentation, pull real API specs, and scrape technical references without getting blocked.

## Prerequisites

* <a href="https://antigravity.google/download#antigravity-ide" target="_blank" rel="nofollow noopener noreferrer">Antigravity IDE</a> installed.
* A ZenRows API key from the [ZenRows dashboard](https://app.zenrows.com/builder).

## Setup

<Steps>
  <Step title="Step 1: Open the configuration file">
    Antigravity IDE shares its configuration file with Antigravity 2.0. Open the MCP configuration file:

    ```
    ~/.gemini/config/mcp_config.json
    ```

    If the file does not exist yet, create it.
  </Step>

  <Step title="Step 2: Add the ZenRows MCP server">
    Add the following configuration, replacing `YOUR_ZENROWS_API_KEY` with your actual API key:

    ```json JSON theme={null}
    {
      "mcpServers": {
        "zenrows": {
          "command": "npx",
          "args": ["-y", "@zenrows/mcp"],
          "env": {
            "ZENROWS_API_KEY": "YOUR_ZENROWS_API_KEY"
          }
        }
      }
    }
    ```
  </Step>

  <Step title="Step 3: Restart Antigravity IDE">
    Save the file and restart Antigravity IDE to load the new configuration. ZenRows tools will be available to the agent immediately.

    <Tip>For best results with MCP tool calls, use Claude Opus or Claude Sonnet as your model via the model selector in the IDE.</Tip>
  </Step>
</Steps>

## Fetch live data in your editor

With ZenRows connected, ask the agent to fetch and work with live web content directly in the editor.

To scrape a page and summarize its contents:

```text wrap theme={null}
Scrape https://www.scrapingcourse.com/antibot-challenge and tell me what the page is all about.
```

For a more focused use case:

```text wrap theme={null}
Use ZenRows to scrape https://github.com/vercel/next.js/issues and find open issues related to hydration errors. Summarize the most common causes and suggested fixes.
```

## Using autonomous agents with ZenRows

Antigravity IDE includes an agent that handles longer, multi-step tasks across your editor, terminal, and browser. For scheduled tasks, parallel research workflows, or autonomous data extraction, see the [ZenRows + Antigravity 2.0 integration guide](/integrations/mcp/antigravity-20) for the full agent setup.

## Troubleshooting

### ZenRows tools not appearing after saving the config

1. Confirm the file is saved to `~/.gemini/config/mcp_config.json`.
2. Restart Antigravity IDE to force a config reload.
3. Check that the JSON is valid, with no trailing commas or comments.

### Agent not using ZenRows tools

Antigravity IDE may use its built-in browser tool instead of ZenRows. Instruct the agent explicitly:

```text wrap theme={null}
Use ZenRows to scrape https://www.scrapingcourse.com/antibot-challenge with JavaScript rendering.
```

### JSON syntax error on startup

The configuration file must be valid JSON. Run it through a validator if Antigravity IDE fails to load the server.

## FAQ (Frequently asked questions)

<Accordion title="Can I use ZenRows alongside Antigravity IDE's built-in browser tool?">
  Yes. Both tools can coexist in the same session. Antigravity IDE picks its built-in browser tool by default for general browsing tasks, so when you need ZenRows specifically — for anti-bot bypass, JavaScript rendering, or residential proxies — instruct the agent explicitly to use ZenRows. See the [troubleshooting section](https://docs.zenrows.com/integrations/mcp/antigravity-ide#agent-not-using-zenrows-tools) for the exact prompt pattern.
</Accordion>

<Accordion title="Does every scraping request consume ZenRows credits?">
  Yes. Each request the agent makes through ZenRows counts against your plan credits. JavaScript rendering (`js_render`) and Premium Proxies consume more credits per request than a standard fetch. You can monitor your usage in real time from the [ZenRows dashboard](https://app.zenrows.com).
</Accordion>

<Accordion title="Can I use this integration on Windows?">
  Yes. The `mcp_config.json` file path uses Unix-style notation in this guide, but on Windows the equivalent path is `%USERPROFILE%\.gemini\config\mcp_config.json`. The rest of the setup is identical.
</Accordion>

<Accordion title="Will this work if I have other MCP servers already configured?">
  Yes. Add the `zenrows` block inside the existing `mcpServers` object alongside any other servers already defined. Each server runs independently, so adding ZenRows does not affect your other MCP connections.

  ```json JSON theme={null}
  {
      "mcpServers": {
          "your-existing-server": { ... },
          "zenrows": {
              "command": "npx",
              "args": ["-y", "@zenrows/mcp"],
              "env": {
                  "ZENROWS_API_KEY": "YOUR_ZENROWS_API_KEY"
              }
          }
      }
  }
  ```
</Accordion>
