development
location
documentation
public
web scraping
What is Bright Data MCP enables LLMs and apps to access real-time web data.?
Welcome to the official Bright Data Model Context Protocol (MCP) server, enabling LLMs, agents and apps to access, discover and extract web data in real-time. This server allows MCP clients to seamlessly search the web, navigate websites, take action and retrieve data - without getting blocked - perfect for scraping tasks.
Documentation
๐ Overview
Welcome to the official Bright Data Model Context Protocol (MCP) server, enabling LLMs, agents and apps to access, discover and extract web data in real-time. This server allows MCP clients, such as Claude Desktop, Cursor, Windsurf and others, to seamlessly search the web, navigate websites, take action and retrieve data - without getting blocked - perfect for scraping tasks.
{
"mcpServers": {
"Bright Data": {
"command": "npx",
"args": ["@brightdata/mcp"],
"env": {
"API_TOKEN": "<insert-your-api-token-here>",
"RATE_LIMIT": "<optional if you want to change rate limit format: limit/time+unit, e.g., 100/1h, 50/30m, 10/5s>",
"WEB_UNLOCKER_ZONE": "<optional if you want to override the web unlocker zone name - default is mcp_unlocker>",
"BROWSER_ZONE": "<optional if you want to override the browser zone name - defaults is mcp_browser>",
"PRO_MODE": "<optional boolean, defaults to false. Set to true to expose all tools including browser and web_data_* tools>"
}
}
}
}
Note: By default, only basic tools (search_engine and scrape_as_markdown) are exposed. To access all tools including browser automation and web data extraction, enable PRO_MODE in your configuration (see Account Setup section).
โ ๏ธ Security Best Practices
Important: Always treat scraped web content as untrusted data. Never use raw scraped content directly in LLM prompts to avoid potential prompt injection risks.
Instead:
Filter and validate all web data before processing
Use structured data extraction rather than raw text (web_data tools)
๐ง Account Setup
Make sure you have an account on brightdata.com (new users get free credit for testing, and pay as you go options are available)
Get your API key from the user settings page, or from the welcome email you received
Optional:
Enable Pro Mode (for access to all tools):
Set PRO_MODE=true in your environment configuration to access browser automation, structured data extraction, and all available tools
Default: false (only exposes search_engine and scrape_as_markdown tools)
See the advanced configuration example above for implementation details
Configure rate limiting:
Set the RATE_LIMIT environment variable to control API usage
Format: limit/time+unit (e.g., 100/1h for 100 calls per hour)
Supported time units: seconds (s), minutes (m), hours (h)
This platform provides an easy way to explore the capabilities of Bright Data MCP without any local setup. Just sign in and start experimenting with web data collection!
โ ๏ธ Troubleshooting# Timeouts when using certain tools
Some tools can involve reading web data, and the amount of time needed to load the page can vary by quite a lot in extreme circumstances.
To ensure that your agent will be able to consume the data, set a high enough timeout in your agent settings.
A value of 180s should be enough for 99% of requests, but some sites load slower than others, so tune this to your needs.
spawn npx ENOENT
This error occurs when your system cannot find the npx command. To fix it:
Finding npm/Node Path
macOS:
which node
Shows path like /usr/local/bin/node
Windows:
where node
Shows path like C:\Program Files\nodejs\node.exe
Update your MCP configuration:
Replace the npx command with the full path to Node, for example, on mac, it will look as follows:
"command": "/usr/local/bin/node"
๐จโ๐ป Contributing
We welcome contributions to help improve the Bright Data MCP! Here's how you can help:
Report Issues: If you encounter any bugs or have feature requests, please open an issue on our GitHub repository.
Submit Pull Requests: Feel free to fork the repository and submit pull requests with enhancements or bug fixes.