Documentation Index
Fetch the complete documentation index at: https://docs.brightdata.com/llms.txt
Use this file to discover all available pages before exploring further.
入门视频:
托管 MCP
配置 MCP 服务器
- 打开 Claude Desktop
- 进入:Settings → Developer → Edit Config
- 在
claude_desktop_config.json 中添加以下内容:
{
"mcpServers": {
"Bright Data": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.brightdata.com/mcp?token=YOUR_API_TOKEN_HERE"
]
}
}
}
- 将
YOUR_API_TOKEN_HERE 替换为第 1 步中获取的实际 API 令牌
- 保存并重启 Claude Desktop
测试是否生效
- 向 AI 询问:“你能搜索 Google 的 ‘今日天气’ 吗?”
- Claude 会请求权限 — 点击 “Allow”
- 您应看到搜索结果!
监控使用情况
- 在 Bright Data 仪表盘的 My Zones 查看 API 使用情况
- 免费套餐每月包含 5,000 次请求
自托管 MCP
前置条件
开始前,请确保具备以下条件:如果希望使用不同的区域名称,可在配置中通过 WEB_UNLOCKER_ZONE 环境变量指定
基础配置
进入 Claude → Settings → Developer → Edit Config → claude_desktop_config.json,包含以下内容:{
"mcpServers": {
"Bright Data": {
"command": "npx",
"args": ["@brightdata/mcp"],
"env": {
"API_TOKEN": "<在 https://www.bright.cn/cp/setting/users 获取您的 API 密钥>"
}
}
}
}
高级配置
如果希望使用高级功能,如速率限制或自定义区域,可添加更多环境变量:{
"mcpServers": {
"Bright Data": {
"command": "npx",
"args": ["@brightdata/mcp"],
"env": {
"API_TOKEN": "<在 https://www.bright.cn/cp/setting/users 获取您的 API 密钥>",
"WEB_UNLOCKER_ZONE": "<可选 - 如果想为 web_unlocker 使用特定名称,在此填写;不使用则删除>",
"BROWSER_ZONE": "<可选 - 如果想为 browser_api 使用特定名称,在此填写;不使用则删除>",
"RATE_LIMIT": "<可选 - 速率限制格式,可选值:limit/time+unit,例如 100/1h, 50/30m, 10/5s;不使用则删除>",
"ADVANCED_MODE":"<可选 - 默认 false,设置为 true 可开放所有 60+ 工具>"
}
}
}
}