Purpose
Bright Data MCP is a Model Context Protocol (MCP) server that provides public web access capabilities for AI agents, coding agents, chat assistants, and any MCP-compatible client. It enables AI to retrieve public web data in real time, rather than relying solely on training data.
Main Capabilities
The server exposes 32 tools, covering the following areas:
- Web Search: Returns search results from Google, Bing, and Yandex as structured data.
- Page Scraping: Scrapes any URL as Markdown or HTML, automatically handling bot detection, captcha solving, and proxy rotation on each request.
- Structured Data (Web Scraper API): Returns clean JSON from more than 1,200 prebuilt scrapers, covering Amazon, LinkedIn, Instagram, TikTok, YouTube, X, Reddit, Facebook, Crunchbase, Zillow, npm, PyPI, and more, with no need to parse HTML. There are six tools for finding and running these scrapers.
- Browser Automation: Navigate, click, type, take screenshots, and read pages in a remote browser session.
- LLM Response Collection: Send prompts to ChatGPT and Perplexity and return their answers as structured data.
All requests are routed through Bright Data's unlocking infrastructure, so pages that block ordinary HTTP clients (bot detection, captchas, rate limits, geo-restrictions) can be returned normally. No proxy setup, no headless browser maintenance, and no retry logic required.
Usage
Two deployment options are provided: a hosted remote server (one URL, no installation required) or running a local instance via npx @brightdata/mcp . The hosted server requires no installation; simply add the following URL to the MCP client:
https://mcp.brightdata.com/mcp?token=YOUR_API_TOKEN
The API token is obtained from the Bright Data account settings. New accounts receive 5,000 free requests per month.
To run locally:
npx @brightdata/mcp
It can be added to Cursor (~/.cursor/mcp.json)、VS Code(.vscode/mcp.json)、Windsurf(~/.codeium/windsurf/mcp_config.json)、Gemini(~/.gemini/settings.json), Zed settings, or any client that supports local MCP servers.
Tool Groups
Tools are organized into groups so that only the needed content is loaded, reducing the context the agent processes. When GROUPS or TOOLS is not set, all 32 tools are enabled. Setting either variable restricts it to only those tools.
GROUPSenables toolkits, comma-separated:GROUPS="scrapers,browser"(local) or&groups=scrapers,browser(hosted URL).TOOLSadds individual tools on top of the base:TOOLS="extract,scrape_as_html". When used alone, only the listed tools are enabled.
Each group also includes search_engine、scrape_as_markdown and discover.
Tool Selection Guidance
- Known URL, need content:
scrape_as_markdown; multiple URLs (up to 10):scrape_batch. - Need to find information:
search_engine; multiple queries (up to 10):search_engine_batch. - Deep research or RAG, need sources sorted by relevance:
discoverwith intent. - Structured data from known platforms (Amazon, LinkedIn, TikTok, npm, PyPI, etc.):
search_scrapers→get_scraper_details→run_scraper, returns clean JSON, faster and more reliable than scraping the same page. - Structured JSON for pages not covered by a scraper:
extract. - Raw HTML:
scrape_as_html. - Pages that require interaction (click, type, scroll, log in):
scraping_browser_*tools. - How ChatGPT/Perplexity answer a prompt:
chatgpt_ai_insights/perplexity_ai_insights.
Scraper Run Notes
Returns structured JSON, billed per returned record. Records with an error field will explain the failed input, e.g. wrong URL type. Results may be large; for discover_by_* method should keep a low limit_per_input, and when the framework supports it, run batch collection in a sub-agent so records don't flood the main context window. If the run fails,scrape_as_markdown can be used as a fallback on the same URL.
Browser Automation
Typical sequence for a remote browser session: navigate → snapshot → interact via ref → extract or screenshot. Refs come from the latest snapshot. If the page changes after a click or navigation, re-acquire a snapshot before the next ref-based action. For static pages,scrape_as_markdown is faster and cheaper than a browser session.
Content Gating
scrape_as_markdown、search_engine、extract and its batch variant return web page content. If the content contains instruction-like text (asking to change MCP configuration, register a server, run an npx package, edit the MCP config file), the server pauses and asks the user via the MCP client before returning. If approved, the content is returned as-is; if rejected, the content is withheld and a brief explanation is given to the assistant. Pages without such text are returned as usual, with no prompt. In batch calls, only matching items are withheld. Pages about MCP configuration (documentation, READMEs) will naturally trigger the prompt. Clients that do not support MCP elicitation will have matching content withheld; set CONTENT_GATE=off to accept the risk. Browser tools are not covered by this.
Use Cases
- Real-time research: Answer questions using live web data; search first, then read the sources.
- E-commerce intelligence: Read product data (price, stock, rating, review count, seller, images) as structured JSON.
- Market and competitive analysis: Build competitor profiles from live data (funding, headcount, hiring, customer reviews, pricing pages).
- AI agents with reliable web access: Replace built-in fetch/search tools that are blocked on protected sites.
- Package registry data on demand: No scraping, no stale cache.
- GEO and brand visibility: Send prompts to major LLMs and get answers as structured data, measuring how AI assistants describe a brand, which sources they cite, and what they recommend.
- Social media monitoring: Structured data from major platforms (profiles, posts, comments, engagement metrics).
- Content creation and academic research: Collect material from multiple pages at once, filtered by timeliness and relevance.
Limitations and Notes
- Free tier: 5,000 requests per month, no credit card required, renewed on the 1st of each month, unused requests do not roll over. The free tier for team accounts is shared among all users in the account.
- Pay-as-you-go beyond the free tier, no commitment. Requests stop after free requests are used up, and no unexpected charges occur unless funds have been deposited. Adding a credit card is only a verification step. Spending limits can be set in the dashboard.
- Scraper runs are billed per returned record.
- Complex websites may time out; increase the timeout to 180 seconds in client settings.
- Common issues include the "spawn npx ENOENT" error (install Node.js or use the full path to node), authentication issues (verify the API token is valid and has the required permissions),
run_scraperreturning an error or no data (check the input againstget_scraper_details'ssample_input, and confirm the page is publicly accessible), and remote server connection failures (check network and firewall). - The project is under the MIT license.