Bright Data
STDIOReal-time web data access solution for AI agents with unblocking capabilities
Real-time web data access solution for AI agents with unblocking capabilities
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.
The videos below demonstrate a minimal use case for Claude Desktop:
https://github.com/user-attachments/assets/59f6ebba-801a-49ab-8278-1b2120912e33
https://github.com/user-attachments/assets/61ab0bee-fdfa-4d50-b0de-5fab96b4b91d
For more YouTube tutorials and demos: Demo
Some example queries that this MCP server will be able to help with:
Open Claude Desktop
Go to: Settings → Connectors → Add custom connector
Choose a Name, and in the “Remote MCP server URL” section, paste:
https://mcp.brightdata.com/mcp?token=YOUR_API_TOKEN_HERE
Open Claude Desktop
Go to: Settings → Developer → Edit Config
Add this to your claude_desktop_config.json:
{ "mcpServers": { "Bright Data": { "command": "npx", "args": [ "mcp-remote", "https://mcp.brightdata.com/mcp?token=YOUR_API_TOKEN_HERE" ] } } }
Replace YOUR_API_TOKEN_HERE with your actual API token from Step 1
Save and restart Claude Desktop
Download the Claude Desktop Extension:
📦 Bright Data's MCP Extension
Open Claude and go to:
Settings
→ Extensions
Drag the .dtx
file from Step 1 into the dropping area.
Enable the service and restart Claude.
Enjoy!
claude_desktop_config.json
:Install nodejs
to get the npx
command (node.js module runner). Installation instructions can be found on the node.js website
Go to Claude > Settings > Developer > Edit Config > Edit "claude_desktop_config.json" to include the following:
{ "mcpServers": { "Bright Data": { "command": "npx", "args": ["@brightdata/mcp"], "env": { "API_TOKEN": "<insert-your-api-token-here>" } } } }
{ "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).
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:
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
Enable Pro Mode (for access to all tools):
PRO_MODE=true
in your environment configuration to access browser automation, structured data extraction, and all available toolsfalse
(only exposes search_engine
and scrape_as_markdown
tools)Configure rate limiting:
RATE_LIMIT
environment variable to control API usagelimit/time+unit
(e.g., 100/1h
for 100 calls per hour)RATE_LIMIT=100/1h
, RATE_LIMIT=50/30m
, RATE_LIMIT=10/5s
Create a custom Web Unlocker zone
WEB_UNLOCKER_ZONE
environment variableCreate a custom Browser API zone:
BROWSER_ZONE
environment variableTo use this MCP server with other agent types, you should adapt the following to your specific software:
API_TOKEN=<your-token>
environment variable is setnpx @brightdata/mcp
export API_TOKEN=your-token npx @brightdata/mcp
set API_TOKEN=your-token npx @brightdata/mcp
$env:API_TOKEN="your-token" npx @brightdata/mcp
💡 Tip: You can also use a
.env
file and a tool likedotenv
to manage environment variables more easily during development.
Want to try Bright Data MCP without setting up anything?
Check out this playground on Smithery:
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!
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.
This error occurs when your system cannot find the npx
command. To fix it:
macOS:
which node
Shows path like /usr/local/bin/node
Windows:
where node
Shows path like C:\Program Files\nodejs\node.exe
Replace the npx
command with the full path to Node, for example, on mac, it will look as follows:
"command": "/usr/local/bin/node"
We welcome contributions to help improve the Bright Data MCP! Here's how you can help:
For major changes, please open an issue first to discuss your proposed changes. This ensures your time is well spent and aligned with project goals.
If you encounter any issues or have questions, please reach out to the Bright Data support team or open an issue in the repository.