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

# Zenrows MCP Integration for VS Code

> Learn how to configure the Zenrows MCP server in VS Code with GitHub Copilot to scrape web pages and extract data from your editor.

> [!TIP]
>
> Using GitHub Copilot? The [Zenrows plugin for GitHub Copilot](https://docs.zenrows.com/integrations/github-copilot.md) installs the same tools with skills that tell Copilot when to use each one, and signs in with OAuth instead of an API key.

## Before You Start

You need:

> [card] [Zenrows Account](https://app.zenrows.com/register)
>
> A **Zenrows account**

> [card] [Zenrows API Key](https://app.zenrows.com/dashboard)
>
> Your **Zenrows API key**

> [card] [Node.js](https://nodejs.org/en/download/)
>
> Latest version of **Node.js** installed on your machine

> [card] [VS Code](https://code.visualstudio.com)
>
> **VS Code** installed

## Setup

**1. Step 1: Open the configuration file**

Open or create the MCP configuration file in your project:

```
.vscode/mcp.json
```

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

Paste the following into the configuration file, replacing `YOUR_ZENROWS_API_KEY` with your actual API key:

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

**3. Step 3: Reload the window**

Save the file and reload the VS Code window (**Cmd+Shift+P** / **Ctrl+Shift+P**, then **Developer: Reload Window**) to load the new configuration.

## Start scraping

Ask GitHub Copilot to scrape a webpage or automate a browser workflow in plain English:

```
Get the product names and prices from https://www.scrapingcourse.com/ecommerce/.
```

```
Scrape https://www.scrapingcourse.com/antibot-bypass using Premium Proxies.
```

```
Fetch https://www.scrapingcourse.com/javascript-rendering/ with JavaScript rendering enabled and return the page as Markdown.
```

```
Open https://scrapingcourse.com/login in a browser, fill in the credentials, click submit, then extract the account details.
```

## Troubleshooting

**The `scrape` tool is not available**

Confirm `.vscode/mcp.json` is present in your project root and contains valid JSON. You can validate the JSON syntax at [jsonlint.com](https://jsonlint.com). Then reload the VS Code window.

**Page content is missing or incomplete**

The page likely loads content dynamically. Ask the assistant to enable JavaScript rendering:

```
Scrape https://www.scrapingcourse.com/javascript-rendering/ with `js_render: true`.
```

**Requests return a 403 or bot detection page**

Ask the assistant to use Premium Proxies:

```
Scrape https://www.scrapingcourse.com/antibot-bypass using `premium_proxy: true`.
```

For more troubleshooting options, see the [Zenrows MCP overview](https://docs.zenrows.com/mcp/overview.md#troubleshooting).


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