> ## 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.

> ## Agent Instructions
> The Zenrows HTTP API serves Fetch and Extract (extract=auto) at https://api.zenrows.com/v1/, Crawl at https://api.zenrows.com/v1/crawls, and Batch at https://async.api.zenrows.com/v1. Fetch, Extract, Crawl and Batch are described in OpenAPI 3.1 at https://www.zenrows.com/openapi.json and listed in the RFC 9727 API catalog at https://www.zenrows.com/.well-known/api-catalog. Every endpoint also has its own page under /api-reference with its schema. Use the spec for exact parameter names and types. Crawl's endpoints, parameters and errors are also at https://docs.zenrows.com/crawl/endpoints.md. To call Zenrows from an agent, connect the MCP server at https://mcp.zenrows.com/mcp. To search these docs from an agent, connect the docs MCP server at https://docs.zenrows.com/mcp. Agent skills for Zenrows are published at https://github.com/ZenRows/cli and install with `npx skills add ZenRows/cli`.

# 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

* [Antigravity IDE](https://antigravity.google/download#antigravity-ide) installed.
* A Zenrows API key from the Zenrows dashboard.

  [Open the Playground](https://app.zenrows.com/fetch)

## Setup

**1. 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.

**2. Step 2: Add the Zenrows MCP server**

Add the following configuration, replacing `YOUR_ZENROWS_API_KEY` with your actual API key:

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

**3. 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.

## 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={"theme":"css-variables"}
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={"theme":"css-variables"}
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](https://docs.zenrows.com/integrations/antigravity-20.md) 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={"theme":"css-variables"}
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] 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/antigravity-ide.md#agent-not-using-zenrows-tools) for the exact prompt pattern.

> [accordion] 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.
>
> [Open the dashboard](https://app.zenrows.com)

> [accordion] 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] 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={"theme":"css-variables"}
> {
>     "mcpServers": {
>         "your-existing-server": { ... },
>         "zenrows": {
>             "command": "npx",
>             "args": ["-y", "@zenrows/mcp"],
>             "env": {
>                 "ZENROWS_API_KEY": "YOUR_ZENROWS_API_KEY"
>             }
>         }
>     }
> }
> ```


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