Back to MCP directory
publicPublicdnsLocal runtime

brightdata-mcp

Bright Data提供的MCP服务,允许AI客户端访问和引用公开网络数据

article

README

🚀 Bright Data MCP亮数据模型上下文协议(MCP)官方服务器

Bright Data MCP亮数据模型上下文协议(MCP)官方服务器可引用公共网络数据。它允许Claude Desktop、Cursor、Windsurf、OpenAI代理等MCP客户端依据网页信息进行决策。

smithery badge

🚀 快速开始

账户设置

  1. 确保您在 brightdata.com上拥有一个账户(新用户可获免费测试信用,还有按需付费选项)。
  2. 用户设置页面获取您的API密钥。
  3. 控制面板中创建名为mcp_unlocker的Web解锁器代理区域。
    • 您可通过环境变量WEB_UNLOCKER_ZONE覆盖此区域。
  4. (可选)若要启用浏览器控制工具:
    • 访问您的Bright Data控制面板brightdata.com/cp/zones
    • 创建一个新的“scraping browser”区域。
    • 创建完成后,从Scraping Browser概述选项卡复制身份验证字符串。
    • 身份验证字符串格式如下:brd - customer - [your - customer - ID] - zone - [your - zone - ID]:[your - password]

image

使用Claude Desktop快速入门

  1. 安装nodejs以获取npx命令(用于运行Node.js模块)。安装说明可在node.js网站找到。
  2. 进入Claude > 设置 > 开发者 > 编辑配置 > claude_desktop_config.json,添加以下内容:
{
  "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区域名称>",
        "BROWSER_AUTH": "<optional if you want to enable remote browser control tools>"
      }
    }
  }
}

其他MCP客户端

要与其他代理类型一起使用此MCP服务器,您需根据具体软件调整以下内容:

  • 运行MCP服务器的完整命令为npx @brightdata/mcp
  • 运行服务器时,环境变量API_TOKEN=<your-token>必须存在。

💻 使用示例

基础用法

一些此MCP服务器可以帮助解决的例子查询:

  • "Google一些在<区域>即将上映的电影"
  • "特斯拉的市值是多少?"
  • "今日的维基百科featured article是什么?"
  • "<位置>未来7天的天气预报是什么?"
  • "在收入最高的3大科技公司首席执行官中,他们的职业生涯有多久了?"

下面的视频展示了如何使用Bright Data MCP服务器:

[在此处插入视频链接]

🔧 故障排除

为确保最佳性能,请将超时设置为高值。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client