Prerequisites
- Antigravity IDE installed.
- A ZenRows API key from the ZenRows dashboard.
Setup
Step 1: Open the configuration file
Antigravity IDE shares its configuration file with Antigravity 2.0. Open the MCP configuration file:If the file does not exist yet, create it.
Step 2: Add the ZenRows MCP server
Add the following configuration, replacing
YOUR_ZENROWS_API_KEY with your actual API key:JSON
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: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 for the full agent setup.Troubleshooting
ZenRows tools not appearing after saving the config
- Confirm the file is saved to
~/.gemini/config/mcp_config.json. - Restart Antigravity IDE to force a config reload.
- 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: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)
Can I use ZenRows alongside Antigravity IDE's built-in browser tool?
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 for the exact prompt pattern.
Does every scraping request consume ZenRows credits?
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.Can I use this integration on Windows?
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.Will this work if I have other MCP servers already configured?
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