brightdata-mcp
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBright Data MCP
Bright Data MCP
MCP is the interface for an AI app that decides at run time what to fetch. The
model reads a list of Bright Data tools and picks one per turn. There is no
shell to run and no code path to edit between turns, so the tool list you expose
and the routing rules you write are the entire product surface.
If a human or a coding agent is going to run the work from a terminal, that is
. If the same job runs on a schedule from your own code, that is
. MCP is for run-time choice.
brightdata-clibrightdata-sdkMCP 是一种接口,供 AI app 在运行时决定要抓取什么。模型会读取 Bright Data 的工具列表,并在每一轮选择一个。无需运行 shell,也无需在轮次之间编辑代码路径,因此,你暴露的工具列表以及编写的路由规则,就是完整的产品使用界面。
如果由人类或 coding agent 从终端执行任务,应使用 。如果同一任务需要通过自己的代码定时运行,应使用 。MCP 适用于运行时的动态选择。
brightdata-clibrightdata-sdkTwo variants that have drifted
两个已经分化的变体
Bright Data ships two, and the vendor calls them Remote (the hosted service at
) and Local (the self-hosted package).
mcp.brightdata.com@brightdata/mcp| Remote | Local | |
|---|---|---|
| Endpoint | | |
| Auth | | |
| Tool config | URL query params | env vars |
| Default tool list | every tool on, 31 of them; | every tool on, 32 of them; |
The published package is . Remote tracks its
own release line. Do not assume a tool name present in one is present in the
other, and do not carry a working config across. Confirm against the variant
actually in use.
@brightdata/mcpBright Data 提供了两个版本,厂商将它们分别称为 Remote(托管服务,地址为 )和 Local(自行托管的 包)。
mcp.brightdata.com@brightdata/mcp| Remote | Local | |
|---|---|---|
| 端点 | | 通过 stdio 运行 |
| 认证 | 对于你控制的 client,在 URL 中使用 | |
| 工具配置 | URL 查询参数 | 环境变量 |
| 默认工具列表 | 默认启用全部 31 个工具;可通过 | 默认启用全部 32 个工具;可通过 |
已发布的包名为 。Remote 维护自己的发布版本线。不要假定某个工具名在一个变体中存在,就一定存在于另一个变体中,也不要直接沿用其他变体的可用配置。请根据实际使用的变体进行确认。
@brightdata/mcpThe key
关键点
Both and take the account API key. Find it the way the
CLI does: if set, else in the
that writes (Linux , macOS
, Windows
). After login the variable is normally empty and
the key is only in the file: that is a logged-in machine, not a missing key,
so read it in code and never print it. To check that it exists, run
from the skill (it never
prints the key); never , or the file or the variable. To
pass it into a config or URL, read it inside the program or command that writes
the config, and keep it out of anything that prints (the shell-specific reads
are in that skill's ). Neither exists: hand off to
. Never ask the user to paste a key into chat.
?token=API_TOKENBRIGHTDATA_API_KEYapi_keycredentials.jsonbdata login~/.config/brightdata-cli/~/Library/Application Support/brightdata-cli/%USERPROFILE%\AppData\Roaming\brightdata-cli\node scripts/check-auth.mjsagent-onboardingcatechojqreferences/auth.mdagent-onboarding?token=API_TOKENBRIGHTDATA_API_KEYbdata logincredentials.jsonapi_key~/.config/brightdata-cli/~/Library/Application Support/brightdata-cli/%USERPROFILE%\AppData\Roaming\brightdata-cli\要检查 key 是否存在,请运行 skill 中的 (它绝不会打印 key);绝不要使用 、 或 读取文件或变量。要将 key 传入配置或 URL,应在写入配置的程序或命令内部读取,并确保任何会输出内容的环节都不包含它(针对不同 shell 的读取方式位于该 skill 的 中)。如果两种方式都不存在,则转交 处理。绝不要让用户在聊天中粘贴 key。
agent-onboardingnode scripts/check-auth.mjscatechojqreferences/auth.mdagent-onboardingThe routing default
默认路由规则
Records from a site the agent can name go to a pre-built scraper:
to find it, to see its inputs, then
. Page content goes to . Raw unlocked HTML through
is the last resort, not the opening move. This is the misroute that burns the
most tokens and returns the worst data, so read the rule before writing prompts
or tool descriptions.
search_scrapersget_scraper_detailsrun_scraperscrape_as_markdownscrape_as_html如果 agent 能够明确指出目标站点,应使用预构建的 scraper 获取该站点的记录:先用 查找,再通过 查看输入参数,最后使用 。页面内容应使用 。通过 获取原始的已解锁 HTML 只应是最后手段,而不是首选。这种错误路由会浪费最多 token,并返回质量最差的数据,因此,在编写 prompt 或工具说明前,务必先阅读此规则。
search_scrapersget_scraper_detailsrun_scraperscrape_as_markdownscrape_as_htmlReferences
参考资料
- references/setup.md - open when connecting a client for the first time,
when the agent sees the wrong number of tools, or when deciding between Remote
and Local. Covers both installs, auth, zones, and the and
GROUPSfilters.TOOLS - references/choosing-tools.md - open before writing the system prompt or tool guidance for an agent, or when an agent is scraping raw HTML for data a ready scraper already returns. Covers the full tool inventory and the routing table.
- references/setup.md —— 首次连接 client、agent 看到的工具数量不正确,或需要在 Remote 和 Local 之间做选择时打开。涵盖两种安装方式、认证、zones,以及 和
GROUPS过滤条件。TOOLS - references/choosing-tools.md —— 在编写 agent 的 system prompt 或工具使用指南之前打开,或当 agent 正在抓取原始 HTML,而现成的 scraper 已经能够返回所需数据时打开。涵盖完整的工具清单和路由表。