Bright Data MCP is a powerful server that enables AI agents to access real-time web data without getting blocked. It integrates with MCP clients like Claude Desktop and provides web search, navigation, and data extraction capabilities using Bright Data's web unlocker technology.
You can use Bright Data MCP with Claude Desktop in two ways:
Download the Bright Data MCP Extension from the official repository.
Get your API key from the Bright Data user settings page
Configure Claude Desktop by going to: Claude > Settings > Developer > Edit Config
Add the following to your claude_desktop_config.json
:
{
"mcpServers": {
"Bright Data": {
"command": "npx",
"args": ["@brightdata/mcp"],
"env": {
"API_TOKEN": "<insert-your-api-token-here>",
"WEB_UNLOCKER_ZONE": "<optional zone name override>",
"BROWSER_ZONE": "<optional browser zone name>",
"RATE_LIMIT": "<optional rate limit e.g., 100/1h>"
}
}
}
}
For other MCP-compatible clients, run the server with:
API_TOKEN=<your-token> npx @brightdata/mcp
Optional environment variables:
WEB_UNLOCKER_ZONE
: Custom Web Unlocker zone nameBROWSER_ZONE
: Browser API zone name (defaults to mcp_browser
)RATE_LIMIT
: Format limit/time+unit
(e.g., 100/1h
)Bright Data MCP provides various tools for web interaction:
The MCP server can help with queries like:
Always treat scraped web content as untrusted data:
Some tools that read web data may take longer to complete. Set a high enough timeout in your agent settings (around 180 seconds is recommended for most requests).
If your system can't find the npx
command:
Find your Node.js path:
which node
where node
Update your MCP configuration to use the full path:
"command": "/path/to/node",
"args": ["/path/to/npm/npx", "@brightdata/mcp"]
You can control API usage with the RATE_LIMIT
environment variable:
limit/time+unit
(e.g., 100/1h
for 100 calls per hour)To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "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_ZONE":"<optional browser zone name, defaults to mcp_browser>","RATE_LIMIT":"<optional rate limit format: limit/time+unit, e.g., 100/1h, 50/30m, 10/5s>"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"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_ZONE": "<optional browser zone name, defaults to mcp_browser>",
"RATE_LIMIT": "<optional rate limit format: limit/time+unit, e.g., 100/1h, 50/30m, 10/5s>"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration 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_ZONE": "<optional browser zone name, defaults to mcp_browser>",
"RATE_LIMIT": "<optional rate limit format: limit/time+unit, e.g., 100/1h, 50/30m, 10/5s>"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect