概覽
什麼是 Brightdata MCP?
Brightdata MCP(模型上下文協議)是一個強大的伺服器,旨在提供一體化的公共網絡訪問解決方案。它使得用戶能夠高效地管理和訪問來自各種網絡來源的數據,確保開發者和企業之間的無縫整合和功能性。
Brightdata MCP 的特點
- 全面的數據訪問:Brightdata MCP 允許用戶輕鬆訪問各種公共網絡數據。
- 用戶友好的界面:該平台設計有直觀的界面,簡化了導航和數據管理。
- 強大的安全性:Brightdata MCP 優先考慮用戶安全,實施先進措施來保護敏感信息。
- 可擴展性:該伺服器能夠處理不同的負載,適合小型項目和大規模操作。
- 實時數據處理:用戶可以實時訪問和處理數據,提升決策和運營效率。
如何使用 Brightdata MCP
- 註冊:在 Brightdata 網站上創建帳戶以訪問 MCP 伺服器。
- 設置您的環境:按照文檔配置您的開發環境,以最佳方式使用 MCP。
- 與您的應用集成:使用提供的 API 將 Brightdata MCP 集成到您現有的應用或工作流程中。
- 訪問數據:利用伺服器根據您的項目需求提取和管理公共網絡數據。
- 監控性能:定期檢查 Brightdata 提供的性能指標,以確保高效運行。
常見問題解答
我可以使用 Brightdata MCP 訪問哪些類型的數據?
Brightdata MCP 允許訪問各種公共網絡數據,包括但不限於社交媒體、電子商務和新聞網站。
Brightdata MCP 安全嗎?
是的,Brightdata MCP 採用強大的安全措施來保護用戶數據,確保安全訪問公共網絡信息。
我可以擴展我對 Brightdata MCP 的使用嗎?
當然可以!Brightdata MCP 設計為可擴展,能夠滿足小型和大規模數據訪問需求。
我如何獲得 Brightdata MCP 的支持?
用戶可以通過 Brightdata 網站獲取支持,該網站提供文檔和客戶服務選項。
使用 Brightdata MCP 是否需要付費?
Brightdata 提供基於使用和功能的多種定價計劃。建議查看他們的官方網站以獲取詳細的定價信息。
詳細
🌟 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.
Table of Content
- 🎬 Demo
- ✨ Features
- 🚀 Quickstart with Claude Desktop
- 🔧 Available Tools
- ⚠️ Security Best Practices
- 🔧 Account Setup
- 🔌 Other MCP Clients
- 🎮 Try Bright Data MCP Playgrounds
- 💡 Usage Examples
- ⚠️ Troubleshooting
- 👨💻 Contributing
- 📞 Support
🎬 Demo
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 YouTube tutorials and demos: Demo
✨ Features
- Real-time Web Access: Access up-to-date information directly from the web
- Bypass Geo-restrictions: Access content regardless of location constraints
- Web Unlocker: Navigate websites with bot detection protection
- Browser Control: Optional remote browser automation capabilities
- Seamless Integration: Works with all MCP-compatible AI assistants
🚀 Quickstart with Claude Desktop
-
Install
nodejs
to get thenpx
command (node.js module runner). Installation instructions can be found on the node.js website -
Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json to include the following:
{
"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>"
}
}
}
}
🔧 Available Tools
⚠️ 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
-
(Optional) Create a custom Web Unlocker zone
- By default, we create a Web Unlocker zone automatically using your API token
- For more control, you can create your own Web Unlocker zone in your control panel and specify it with the
WEB_UNLOCKER_ZONE
environment variable
-
(Optional) To enable browser control tools:
- By default, the MCP tries to fetch credentials of
mcp_browser
zone. - If you don't have an
mcp_browser
zone, you can :- Create a Browser API zone in your control panel or use an existing one and specify its name using the
BROWSER_ZONE
environment variable
- Create a Browser API zone in your control panel or use an existing one and specify its name using the
- By default, the MCP tries to fetch credentials of
-
(Optional) 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)
- Examples:
RATE_LIMIT=100/1h
,RATE_LIMIT=50/30m
,RATE_LIMIT=10/5s
- Rate limiting is session-based (resets when server restarts)
- Set the
🔌 Other MCP Clients
To use this MCP server with other agent types, you should adapt the following to your specific software:
- The full command to run the MCP server is
npx @brightdata/mcp
- The environment variable
API_TOKEN=<your-token>
must exist when running the server - (Optional) Set
BROWSER_ZONE=<zone-name>
to specify a custom Browser API zone name (defaults tomcp_browser
)
🔄 Breaking Changes
Browser Authentication Update
BREAKING CHANGE: The BROWSER_AUTH
environment variable has been replaced with BROWSER_ZONE
.
- Before: Users needed to provide
BROWSER_AUTH="user:pass"
from the Browser API zone - Now: Users only need to specify the browser zone name with
BROWSER_ZONE="zone_name"
- Default: If not specified, the system uses
mcp_browser
zone automatically - Migration: Replace
BROWSER_AUTH
withBROWSER_ZONE
in your configuration and specify your Browser API zone name ifmcp_browser
doesn't exists
🔄 Changelog
🎮 Try Bright Data MCP Playgrounds
Want to try Bright Data MCP without setting up anything?
Check out this playground on Smithery:
This platform provide 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!
💡 Usage Examples
Some example queries that this MCP server will be able to help with:
- "Google some movies that are releasing soon in [your area]"
- "What's Tesla's current market cap?"
- "What's the Wikipedia article of the day?"
- "What's the 7-day weather forecast in [your location]?"
- "Of the 3 highest paid tech CEOs, how long have their careers been?"
⚠️ 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.
- Coding Style: All JavaScript code should follow Bright Data's JavaScript coding conventions. This ensures consistency across the codebase.
- Documentation: Improvements to documentation, including this README, are always appreciated.
- Examples: Share your use cases by contributing examples to help other users.
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.
📞 Support
If you encounter any issues or have questions, please reach out to the Bright Data support team or open an issue in the repository.
伺服器配置
{
"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>"
}
}
}
}