> ## Documentation Index
> Fetch the complete documentation index at: https://brightdata-ipv6-release.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Server

> Integrating with Bright Data MCP Server

Bright Data Model Context Protocol (MCP) empowers your AI models and agents with real-time, reliable access to public web data. With Bright Data MCP, your applications can effortlessly retrieve both static and dynamic content from across the web, eliminating the need to build or maintain complex data scraping and unlocking infrastructure.

<CardGroup cols="2">
  <Card title="GitHub" iconType="light" color="#NaNNaNNaN" href="https://github.com/luminati-io/brightdata-mcp" cta>
    Visit Bright Data GitHub repository
  </Card>

  <Card title="npm" href="https://www.npmjs.com/package/@brightdata/mcp">
    Visit Bright Data npm repository
  </Card>
</CardGroup>

## **Configuration**

**Before you begin, ensure you have the below completed:**

* [Node.js package](https://nodejs.org/en/download) is installed and updated
* Make sure you have an [account on Bright Data](https://brightdata.com/?hs_signup=1\&utm_source=docs) (new users get free credit for testing, and pay as you go options are available)
* Get your API key from the [user settings page](https://brightdata.com/cp/setting/users)
* Create a [Web Unlocker](https://docs.brightdata.com/scraping-automation/web-unlocker/introduction) zone named `mcp_unlocker` in your [control panel](https://brightdata.com/cp/zones)
* For browser automation capabilities create a [Scraping Browser](https://docs.brightdata.com/scraping-automation/scraping-browser/introduction) zone in [your control panel](https://brightdata.com/cp/zones) (any zone name is allowed)

<Tip>
  If you prefer to use a different zone name, you can specify it with the `WEB_UNLOCKER_ZONE `environment variable in your configuration
</Tip>

**Step 1:**

Install Bright Data MCP package:\
[https://www.npmjs.com/package/@brightdata/mcp](https://www.npmjs.com/package/@brightdata/mcp)

**Step 2:**

Choose your client configuration:

<Tabs>
  <Tab title="Claude">
    ```json [expandable] theme={null}
    // Paste the below code onto your MCP configuration.json file

    {
      "mcpServers": {
        "Bright Data": {
          "command": "npx",
          "args": ["@brightdata/mcp"],
          "env": {
            "API_TOKEN": "<insert-your-api-token-here>",
            "WEB_UNLOCKER_ZONE": "<optional if you want to override the default mcp_unlocker zone name>",
            "BROWSER_AUTH": "<optional if you want to enable remote browser control tools>"
          }
        }
      }
    }
    ```
  </Tab>

  <Tab title="n8n">
    | **Variable** | **Value**                                                                                                                                                                                                                              |
    | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | Command      | `npx`                                                                                                                                                                                                                                  |
    | Arguments    | `@btightdata/mcp`                                                                                                                                                                                                                      |
    | Enviorements | API\_TOKEN=  "\<insert-your-api-token-here>"    WEB\_UNLOCKER\_ZONE= "\<optional if you want to override the default mcp\_unlocker zone name>"     BROWSER\_AUTH= "\<optional if you want to enable remote browser control tools>"`  ` |
  </Tab>
</Tabs>

## **Examples**

<AccordionGroup>
  <Accordion title="Extract real-time data from Google" iconType="sharp-solid">
    “Extract all flight times depart from JFK airport to Heathrow in the next 24 hours”
  </Accordion>

  <Accordion title="Extract data from Linkedin ">
    “Extract Bright Data overview section content from Linkedin”
  </Accordion>

  <Accordion title="Extract dynamic data from ebay.com">
    “Go to ebay.com, click the “shop by category” button on the navigation bar, extract all categories”
  </Accordion>
</AccordionGroup>
