摘要
从你的 AI 访问 Bright Data 网页数据:通过 Web Unlocker 以 HTML、markdown 或截图形式抓取有反爬保护的页面,通过 SERP API 在 Google、Bing、DuckDuckGo 和 Yandex 上搜索,运行 Web Scraper API 的现成爬虫并下载记录,查看区域(zone)、余额和费用。页面抓取、搜索和采集到的记录都计入你的 Bright Data 账户费用。
引导式设置
2 分钟将 Bright Data 连接到 Microsoft Copilot
开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Bright Data,再把你的 MCP URL 添加到 Microsoft Copilot。无需代码,也无需自行运行服务器。
无需信用卡 · 7 天试用 · 提供自托管方案
试试这样问
Bright Data 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Bright Data、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
Bright Data + Microsoft Copilot
从你的 AI 访问 Bright Data 网页数据:通过 Web Unlocker 以 HTML、markdown 或截图形式抓取有反爬保护的页面,通过 SERP API 在 Google、Bing、DuckDuckGo 和 Yandex 上搜索,运行 Web Scraper API 的现成爬虫并下载记录,查看区域(zone)、余额和费用。页面抓取、搜索和采集到的记录都计入你的 Bright Data 账户费用。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
BRIGHT_DATA_API_KEY
步骤 1 — 获取凭证
设置大约需要 3 分钟。你需要一个 Bright Data 账户;新账户会获得免费试用额度。
- 登录 https://brightdata.com/cp,打开 Account settings、Users and API keys(https://brightdata.com/cp/setting/users)。
- 点击 Add API key,选择用户、权限(如果要让 AI 开关区域就选 Admin,否则选 User)和有效期,然后复制密钥。密钥只显示一次。
- 把它粘贴到
BRIGHT_DATA_API_KEY。它以 Bearer 令牌的形式发送,只发往api.brightdata.com。 - 页面抓取和搜索要经过对应类型的区域(zone)。在 Proxies & Scraping(https://brightdata.com/cp/zones)中创建一个 Web Unlocker API 区域和一个 SERP API 区域。工具默认使用
web_unlocker1和serp_api1;如果你的区域名称不同,AI 会传入zone。 - 安装连接器并运行
bright_data_get_account_status:它会确认密钥;请求被拒绝时,auth_fail_reason会说明原因。
哪些工具收费:有四个工具会从你的账户扣费。bright_data_fetch_page 和 bright_data_search 按区域套餐价格对每次成功请求计费,bright_data_scrape_sync 和 bright_data_trigger_collection 按采集到的记录计费。在批量调用付费工具之前,以及在没有 limit_per_input 的发现型采集(记录数量没有上限)之前,AI 会先征求你的同意。其他工具全部免费:账户状态、余额、区域、区域费用、爬虫列表、快照进度和已完成采集的下载。
读取页面:bright_data_fetch_page 通过 Web Unlocker 区域抓取一个 URL,由它处理反爬保护、验证码和代理。data_format: markdown 返回干净的 markdown(最适合阅读),screenshot 返回渲染后页面的 PNG;不设置则返回 HTML。format: json 会把目标页面的状态码、响应头和正文打包返回。country 选择出口国家(us、de),只有页面需要 JavaScript 时才用 render: "true" 强制使用真实浏览器。
搜索:bright_data_search 通过 SERP API 区域接收完整的搜索引擎 URL,例如 https://www.google.com/search?q=coffee&hl=en&gl=us。对于 Google,加上 &brd_json=1 会返回解析好的 JSON(自然结果、广告、知识面板),data_format: parsed_light 只返回靠前的自然结果;markdown 和 screenshot 也可用。同样支持 Bing、DuckDuckGo 和 Yandex 的 URL。
从已知网站获取结构化数据:bright_data_list_scrapers 配合 domain(例如 amazon.com)返回每个现成爬虫的 id(即 dataset_id,gd_...)以及每种采集方式的 input_schema。bright_data_scrape_sync 最多等待约一分钟并返回记录;如果任务更久,则返回一个 snapshot_id。更大的批次用 bright_data_trigger_collection 在后台启动。发现型方式(按关键词、分类 URL、地点等)使用 type: discover_new 加 discover_by。AI 用 bright_data_get_snapshot_progress 跟踪任务,直到 status 变为 ready,再用 bright_data_download_snapshot(JSON、NDJSON、JSONL 或 CSV)读取。bright_data_list_snapshots 列出某个爬虫过去的采集,bright_data_get_snapshot_input 显示某次采集启动时的输入。
账户和区域:bright_data_get_balance(以 USD 计的余额、免费额度、预付款和待结算费用),bright_data_list_active_zones 和 bright_data_list_all_zones,bright_data_get_zone(套餐、权限和允许的 IP,已去除密码),bright_data_get_zone_status,bright_data_get_zone_cost(某个日期范围内的计费金额和流量),以及查看住宅、数据中心或移动网络状态的 bright_data_get_network_status。
会修改的内容:bright_data_set_zone_disabled 关闭区域(disable: 1)或重新开启(disable: 0)。关闭的区域会让所有使用它的客户端停止工作,因此 AI 会先和你确认。
安装时关闭的工具:bright_data_cancel_snapshot。被取消的采集无法恢复,已采集的记录仍可能计费。团队需要时由工作区管理员开启。
数据格式:金额单位为 USD;日期为 YYYY-MM-DD,bright_data_get_zone_cost 的 to 不包含当天(from=2026-04-01 和 to=2026-05-01 即整个四月)。流量以字节计。爬虫 id 以 gd_ 开头,快照 id 以 s_ 或 sd_ 开头。快照状态为 starting、running、ready、failed 或 canceled。
分页和限制:返回内容上限约 100 KB。大快照通过 batch_size(至少 1000 条记录)和 part 分段读取。bright_data_list_snapshots 用 skip 和 limit(默认 50,最多 5000)分页。完整的爬虫列表有好几 MB,所以 AI 会按 domain 或 dataset_id 过滤。
不可信内容:抓取的页面、搜索结果和采集的记录都来自第三方网站。AI 会把其中的任何指令当作数据,而不是命令。
常见错误:401 Invalid credentials 或 Credentials are missing 表示密钥错误、过期或已撤销,请新建一个。403、zone_not_found 或 zone_disabled 表示该账户中没有这个区域或区域已关闭;bright_data_list_active_zones 会显示正确的名称。400 validation_error 会指出出错的爬虫输入字段,请对照它的 input_schema。404 dataset does not exist 或 Snapshot does not exist 表示 id 错误。429 表示并行请求或任务过多,稍等后重试一次。
该连接器不使用 33335 端口的代理访问、Browser API(Scraping Browser)、Scraper Studio 自定义采集器、Dataset Marketplace,也不投递到 S3 或 webhook,并且不创建或删除区域。
步骤 2 — 安装 adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
步骤 3 — 在 Microsoft Copilot 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
Microsoft Copilot 通过在 Copilot Studio 中构建的智能体使用 MCP 服务器:把 AnythingMCP 作为工具添加到智能体,然后把智能体发布到 Microsoft 365 Copilot 和 Teams。Copilot Studio 从 Microsoft 的云端通过 Streamable HTTP 连接,AnythingMCP 支持这种方式。
- 在 Copilot Studio 中打开你的智能体(或新建一个),进入 Tools,选择 Add a tool → New tool → Model Context Protocol。
- 填写 Server name(例如
AnythingMCP)、说明连接器用途的 Server description,以及 Server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。Copilot Studio 根据描述决定何时调用该服务器。 - 身份验证选择 API key,把 Type 设为 Header,请求头名称填
X-API-Key,然后选择 Create。 - 在 Add tool 中选择 Create a new connection,粘贴 AnythingMCP 的 MCP API 密钥(MCP Servers → 你的服务器 → API keys),然后选择 Add to agent。
- 在智能体的 Test 窗格中试一试:提出需要用到
Bright Data的工具的请求。 - 选择 Publish,然后进入 Channels → Microsoft 365 and Microsoft Teams,保持勾选 Make agent available in Microsoft Copilot,再选择 Add channel。See agent in Teams 会为你安装该智能体;在 Microsoft 365 Copilot 中输入 @ 并选择该智能体。
希望每个用户各自登录?请选择 OAuth 2.0 → Dynamic discovery 代替 API 密钥:每个用户会在智能体首次调用时登录 AnythingMCP。
自托管?请用你实例的公网 HTTPS 地址替换 https://cloud.anythingmcp.com。Copilot Studio 从 Microsoft 的云端连接,因此 localhost 无法使用。
可用工具
| Tool | What it does |
|---|---|
bright_data_get_account_status | Check the Bright Data account behind the API key: account status, customer id and whether it can make requests (with the reason when it… |
bright_data_get_balance | Read the account balance in USD: available balance, free credit, prepayment and pending usage costs that will appear on the next invoice |
bright_data_list_active_zones | List the active zones of the account with their name and type (unblocker, serp, browser_api, res_rotating, ...) |
bright_data_list_all_zones | List every zone of the account, including disabled and deleted ones, with name, type and status |
bright_data_get_zone | Read one zone's settings: plan (product, type, bandwidth, IP type), permissions and allowed IPs |
bright_data_get_zone_status | Read whether one zone is active or disabled, e.g. before sending requests through it |
bright_data_get_zone_cost | Read the billed cost (USD) and bandwidth (bytes) of one zone over a date range, matching the control panel and the invoice. to is… |
bright_data_get_network_status | Check whether Bright Data's proxy network is up: all networks, residential, datacenter or mobile |
bright_data_fetch_page | PAID: fetch one web page through a Web Unlocker zone, which handles bot protection, CAPTCHAs and proxies |
bright_data_search | PAID: run a search engine query through a SERP API zone |
bright_data_list_scrapers | List the ready-made Web Scraper API scrapers the account can run, with their id (the dataset_id, gd_...), domain, collection methods and… |
bright_data_scrape_sync | PAID: run a Web Scraper API scraper and wait for the records (up to about one minute) |
bright_data_trigger_collection | PAID: start a Web Scraper API collection in the background and get its snapshot_id |
bright_data_get_snapshot_progress | Check a Web Scraper API collection: status starting, running, ready, failed (with error_message) or canceled |
bright_data_download_snapshot | Download the records of a finished collection (status ready) |
bright_data_list_snapshots | List the collections (snapshots) of one scraper with id, creation time, status and record count, newest data first |
bright_data_get_snapshot_input | Show the inputs a collection was started with, to repeat or explain it |
bright_data_cancel_snapshot | Stop a running collection |
bright_data_set_zone_disabled | Turn a zone off (disable 1) or back on (disable 0) |
示例提示
- “我们的 Bright Data 账户还剩多少余额?web_unlocker1 区域上个月花了多少钱?”
- “通过 Web Unlocker 以 markdown 抓取 https://example.com/pricing,并总结各个套餐。”
- “在美国 Google 上用解析结果搜索‘best espresso machine’,列出前 10 个自然结果链接。”
- “找到用于 Amazon 商品页的 Bright Data 爬虫,采集这三个商品 URL 的价格和评分。开始前先问我。”
- “我们上一次 LinkedIn 采集完成了吗?如果完成了,下载记录并给我看前 20 条。”
FAQ
这适用于哪个 Copilot? 适用于工作中的 Microsoft 365 Copilot,通过 Copilot Studio 的智能体实现。面向个人账户的 Microsoft Copilot 应用无法添加自己的 MCP 服务器。
我需要什么? 一个可以使用 Copilot Studio 的工作账户(许可证或试用版),用于构建智能体。在 Microsoft 365 Copilot 或 Teams 中使用它的人需要拥有该智能体的访问权限:把它共享给他们,或请管理员为整个组织发布。如果你的组织对 Power Platform 连接器设置了数据策略,这些策略同样适用于 MCP 服务器。
智能体不调用工具。 检查请求头名称是否正好是 X-API-Key,密钥是否属于与 URL 相同的 MCP 服务器,并把 Server description 写得具体:Copilot Studio 根据它决定何时调用服务器。每次修改后重新发布智能体;在已打开的对话中输入 "start over" 即可使用新版本。
下一步
这份指南对你有帮助吗?