Zum Inhalt springen

MCP Server / brightdata

brightdata

A powerful Model Context Protocol (MCP) server that provides an all-in-one solution for public web access.

โ˜… 2,339von @brightdataMITGitHub โ†’

Installation

Claude Code
claude mcp add brightdata -- npx -y @brightdata/mcp
npx
npx -y @brightdata/mcp

npm: @brightdata/mcp

Transport

sse

Tools (14)

Category

Tools

Variable

Description

Example

API_TOKEN

Your Bright Data API token (required)

your-token-here

false

`true`

RATE_LIMIT

Custom rate limiting

WEB_UNLOCKER_ZONE

Custom Web Unlocker zone name

my_custom_zone

mcp_browser

`my_browser_zone`

POLLING_TIMEOUT

Timeout for web_data_* tools polling (seconds)

BASE_TIMEOUT

Request timeout for base tools in seconds (search & scrape)

BASE_MAX_RETRIES

Max retries for base tools on transient errors (0-3)

GROUPS

Comma-separated tool group IDs

Dokumentation


๐ŸŒŸ Overview

The Web MCP is your gateway to giving AI assistants true web capabilities. No more outdated responses, no more "I can't access real-time information" - just seamless, reliable web access that actually works.

Built by Bright Data, the world's #1 web data platform, this MCP server ensures your AI never gets blocked, rate-limited, or served CAPTCHAs.


๐ŸŽฏ Perfect For

  • ๐Ÿ” Real-time Research - Get current prices, news, and live data
  • ๐Ÿ›๏ธ E-commerce Intelligence - Monitor products, prices, and availability
  • ๐Ÿ“Š Market Analysis - Track competitors and industry trends
  • ๐Ÿค– AI Agents - Build agents that can actually browse the web
  • ๐Ÿ’ป Coding Agents - Look up npm/PyPI packages, versions, and READMEs in real time
  • ๐Ÿง  GEO & Brand Visibility - See how ChatGPT, Grok, and Perplexity perceive your brand
  • ๐Ÿ“ Content Creation - Access up-to-date information for writing
  • ๐ŸŽ“ Academic Research - Gather data from multiple sources efficiently

โšก Quick Start

Use the configuration wizard:

Perfect for users who want zero setup. Just add this URL to your MCP client:

https://mcp.brightdata.com/mcp?token=YOUR_API_TOKEN_HERE

Setup in Claude Desktop:

  1. Go to: Settings โ†’ Connectors โ†’ Add custom connector
  2. Name: Bright Data Web
  3. URL: https://mcp.brightdata.com/mcp?token=YOUR_API_TOKEN
  4. Click "Add" and you're done! โœจ
{
  "mcpServers": {
    "Bright Data": {
      "command": "npx",
      "args": ["@brightdata/mcp"],
      "env": {
        "API_TOKEN": "<your-api-token-here>"
      }
    }
  }
}

๐Ÿš€ Pricing & Modes

๐Ÿ’ก Note: Pro mode is not included in the free tier and incurs additional charges based on usage.


๐Ÿง  Advanced Tool Selection

  • GROUPS lets you enable curated tool bundles. Use comma-separated group IDs such as ecommerce,browser.
  • TOOLS adds explicit tool names on top of the selected groups.
  • Mode priority: PRO_MODE=true (all tools) โ†’ GROUPS / TOOLS (whitelist) โ†’ default rapid mode (base toolkit).
  • Base tools always enabled: search_engine, search_engine_batch, scrape_as_markdown, scrape_batch, discover.
  • Group ID custom is reserved; use TOOLS for bespoke picks.

Claude Desktop example

{
  "mcpServers": {
    "Bright Data": {
      "command": "npx",
      "args": ["@brightdata/mcp"],
      "env": {
        "API_TOKEN": "<your-api-token-here>",
        "GROUPS": "browser,advanced_scraping",
        "TOOLS": "extract"
      }
    }
  }
}

Coding agent example (Claude Code / Cursor / Windsurf)

Give your coding agent real-time package intelligence โ€” latest versions, READMEs, dependencies, and metadata from npm and PyPI without scraping:

{
  "mcpServers": {
    "Bright Data": {
      "command": "npx",
      "args": ["@brightdata/mcp"],
      "env": {
        "API_TOKEN": "<your-api-token-here>",
        "GROUPS": "code"
      }
    }
  }
}

โœจ Features

๐Ÿ”ฅ Core Capabilities

๐ŸŽฏ Example Queries That Just Work

โœ… "What's Tesla's current stock price?"
โœ… "Find the best-rated restaurants in Tokyo right now"
โœ… "Get today's weather forecast for New York"
โœ… "What movies are releasing this week?"
โœ… "What are the trending topics on Twitter today?"
โœ… "What's the latest version of express on npm?"
โœ… "Get the README for the langchain-brightdata PyPI package"

๐ŸŽฌ Demos

Note: These videos show earlier versions. New demos coming soon! ๐ŸŽฅ

Basic Web Search Demo

https://github.com/user-attachments/assets/59f6ebba-801a-49ab-8278-1b2120912e33

Advanced Scraping Demo

https://github.com/user-attachments/assets/61ab0bee-fdfa-4d50-b0de-5fab96b4b91d

๐Ÿ“บ More tutorials on YouTube โ†’


๐Ÿ”ง Available Tools

โšก Rapid Mode Tools (Default - Free)

| Tool | Description | Use Case | |------|-------------|----------| | ๐Ÿ” search_engine | Web search with AI-optimized results | Research, fact-checking, current events | | ๐Ÿ“„ scrape_as_markdown | Convert any webpage to clean markdown | Content extraction, documentation | | ๐ŸŽฏ discover | AI-ranked web search with intent-based relevance scoring | Deep research, RAG pipelines, competitive analysis |

๐Ÿ’Ž Pro Mode Tools (60+ Tools)

| Category | Tools | Description | |----------|-------|-------------| | Browser Control | scraping_browser.* | Full browser automation | | Web Data APIs | web_data_* | Structured data extraction | | E-commerce | Product scrapers | Amazon, eBay, Walmart data | | Social Media | Social scrapers | Twitter, LinkedIn, Instagram | | Maps & Local | Location tools | Google Maps, business data |

๐Ÿ“š View complete tool documentation โ†’


๐ŸŽฎ Try It Now!

๐Ÿงช Online Playground

Try the Web MCP without any setup:


๐Ÿ”ง Configuration

Basic Setup

{
  "mcpServers": {
    "Bright Data": {
      "command": "npx",
      "args": ["@brightdata/mcp"],
      "env": {
        "API_TOKEN": "your-token-here"
      }
    }
  }
}

Advanced Configuration

{
  "mcpServers": {
    "Bright Data": {
      "command": "npx",
      "args": ["@brightdata/mcp"],
      "env": {
        "API_TOKEN": "your-token-here",
        "PRO_MODE": "true",              // Enable all 60+ tools
        "RATE_LIMIT": "100/1h",          // Custom rate limiting
        "WEB_UNLOCKER_ZONE": "custom",   // Custom unlocker zone
        "BROWSER_ZONE": "custom_browser", // Custom browser zone
        "POLLING_TIMEOUT": "600"         // Polling timeout in seconds (default: 600)
      }
    }
  }
}

Environment Variables

| Variable | Description | Default | Example | |----------|-------------|---------|---------| | API_TOKEN | Your Bright Data API token (required) | - | your-token-here | | PRO_MODE | Enable all 60+ tools | false | true | | RATE_LIMIT | Custom rate limiting | unlimited | 100/1h, 50/30m | | WEB_UNLOCKER_ZONE | Custom Web Unlocker zone name | mcp_unlocker | my_custom_zone | | BROWSER_ZONE | Custom Browser zone name | mcp_browser | my_browser_zone | | POLLING_TIMEOUT | Timeout for web_data_* tools polling (seconds) | 600 | 300, 1200 | | BASE_TIMEOUT | Request timeout for base tools in seconds (search & scrape) | No limit | 60, 120 | | BASE_MAX_RETRIES | Max retries for base tools on transient errors (0-3) | 0 | 1, 3 | | GROUPS | Comma-separated tool group IDs | - | ecommerce,browser | | TOOLS | Comma-separated individual tool names | - | extract,scrape_as_html |

Notes:

  • POLLING_TIMEOUT controls how long web_data_* tools wait for results. Each second = 1 polling attempt.
  • Lower values (e.g., 300) will fail faster on slow data collections.
  • Higher values (e.g., 1200) allow more time for complex scraping tasks.

๐Ÿ“š Documentation


๐Ÿšจ Common Issues & Solutions

โŒ "spawn npx ENOENT" Error

Solution: Install Node.js or use the full path to node:

"command": "/usr/local/bin/node"  // macOS/Linux
"command": "C:\\Program Files\\nodejs\\node.exe"  // Windows

โฑ๏ธ Timeouts on Complex Sites

Solution: Increase timeout in your client settings to 180s

๐Ÿ”‘ Authentication Issues

Solution: Ensure your API token is valid and has proper permissions

๐Ÿ“ก Remote Server Connection

Solution: Check your internet connection and firewall settings

More troubleshooting โ†’


๐Ÿค Contributing

We love contributions! Here's how you can help:

Please follow Bright Data's coding standards.


๐Ÿ“ž Support


๐Ÿ“œ License

MIT ยฉ Bright Data Ltd.