Brave DevTools MCP

io.github.triuzzi由 GitHub 账号 triuzzi 发布v1.11.0更新于 Oct 30, 2026

MCP server and CLI for Brave DevTools

已验证STDIO仅桌面浏览器自动化开发者工具

概览

AI 生成的概览

本地 MCP 服务器,让助手控制 Brave 浏览器,进行自动化、调试、性能分析、截图和无障碍检查。

可以做什么
  • 操作 Brave:打开页面、执行自动化操作并等待结果
  • 调试:查看网络请求、带源码映射堆栈的控制台消息以及无障碍树
  • 性能:录制 trace、提取性能洞察并运行 Lighthouse 分析
  • 采集:截图并检查页面内容
  • 内存分析,并可连接已有的 Brave 配置文件、HTTP 或 WebSocket 会话
  • 另附独立的 brave-devtools 命令行工具
适用场景
当目标浏览器是 Brave,且希望助手在真实浏览器中复现和诊断 Web 应用问题时适用,例如控制台报错、失败请求、无障碍、性能与内存。若目标是 Chrome,应改用 Chrome DevTools MCP。
运行要求
需要 Node.js LTS 与 npm,以及当前版本或更新的 Brave;通过 npx brave-mcp 安装。若要连接已打开的浏览器,需在 Brave 中一次性开启远程调试并加上 --autoConnect,然后在弹窗中允许连接;不加该参数时服务器会自行启动一个使用独立配置文件的 Brave。
安装前请注意
它会把浏览器实例的内容暴露给 MCP 客户端,客户端可检查、调试并修改浏览器或 DevTools 中的任何数据,请避免暴露敏感或个人信息。连接日常使用的浏览器会让助手访问真实标签页和已登录会话。性能工具可能把 trace 网址发送给 Google CrUX API,除非使用 --no-performance-crux。使用统计默认关闭,可用 --usage-statistics 开启。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Brave DevTools MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Brave DevTools for agents

Full Chrome DevTools MCP parity, rebuilt for Brave.

[CI] [npm] [npm downloads] [MCP Registry] [npm provenance] [upstream] [license]

[Brave DevTools MCP: full Chrome DevTools MCP parity, rebuilt for Brave]

brave-mcp gives Claude Code, Codex, Cursor, OpenCode, and other MCP clients direct access to Brave for browser automation, network and console debugging, performance analysis, screenshots, accessibility inspection, and memory profiling. A standalone brave-devtools CLI is included too.

Install in one command

The commands below use --autoConnect, which attaches brave-mcp to the Brave you already have open, so the agent works with your real tabs and signed-in sessions. Enable it once: open brave://inspect/#remote-debugging in Brave and check Allow remote debugging for this browser instance. Brave keeps this setting across restarts.

Claude Code

bash
claude mcp add brave-devtools --scope user -- npx -y brave-mcp@latest --autoConnect

Cursor

bash
cursor --add-mcp '{"name":"brave-devtools","command":"npx","args":["-y","brave-mcp@latest","--autoConnect"]}'

Codex

bash
codex mcp add brave-devtools -- npx -y brave-mcp@latest --autoConnect

OpenCode

bash
opencode mcp add brave-devtools -- npx -y brave-mcp@latest --autoConnect

Restart your client, then try this prompt:

Open my app in Brave. Find console errors and failed network requests, inspect the accessibility tree, run Lighthouse, and explain the highest-impact issue.

When the agent connects, Brave asks for permission. Click Allow.

--autoConnect attaches to Brave Release unless you add --channel beta or --channel nightly. To keep the agent out of your everyday browser, leave out --autoConnect: the server then launches its own Brave with a dedicated profile.

Why use this instead of Chrome DevTools MCP?

Capabilitybrave-mcpchrome-devtools-mcp
Browser launched and discovered nativelyBrave Release, Beta, and NightlyChrome Stable, Beta, Dev, and Canary
Attach to an existing browserBrave profiles, HTTP, or WebSocketChrome profiles, HTTP, or WebSocket
Upstream DevTools featuresFull parity; currently 0 commits behindSource implementation
Usage telemetryDisabled by defaultEnabled by default
Standalone CLIbrave-devtoolschrome-devtools

Use Chrome DevTools MCP when your target browser is Chrome. Use brave-mcp when your target browser is Brave and you want Brave-native discovery, profiles, channels, naming, and privacy defaults without giving up upstream features.

Tool reference | Changelog | Contributing | Troubleshooting | Design principles

Key features

  • Get performance insights: Uses Chrome DevTools to record traces and extract actionable performance insights.
  • Advanced browser debugging: Analyze network requests, take screenshots and check browser console messages (with source-mapped stack traces).
  • Reliable automation. Uses puppeteer to automate actions in Brave and automatically wait for action results.

Disclaimers

brave-mcp exposes content of the browser instance to the MCP clients allowing them to inspect, debug, and modify any data in the browser or DevTools. Avoid sharing sensitive or personal information that you don't want to share with MCP clients.

brave-mcp officially supports the current Brave release. Beta and Nightly channels can be selected explicitly.

Performance tools may send trace URLs to the Google CrUX API to fetch real-user experience data. This helps provide a holistic performance picture by presenting field data alongside lab data. This data is collected by the Chrome User Experience Report (CrUX). To disable this, run with the --no-performance-crux flag.

Usage statistics

Usage statistics collection is disabled by default in this fork. It can be enabled explicitly with --usage-statistics, which uses the upstream Google Clearcut implementation:

json
"args": ["-y", "brave-mcp@latest", "--usage-statistics"]

When enabled, Google handles this data in accordance with the Google Privacy Policy. Collection remains disabled if BRAVE_DEVTOOLS_MCP_NO_USAGE_STATISTICS or CI is set.

Update checks

By default, the server periodically checks the npm registry for updates and logs a notification when a newer version is available. You can disable these update checks by setting BRAVE_DEVTOOLS_MCP_NO_UPDATE_CHECKS.

Requirements

Getting started

Enable remote debugging once at brave://inspect/#remote-debugging, then add the following config to your MCP client to attach to your running Brave:

json
{  "mcpServers": {    "brave-devtools": {      "command": "npx",      "args": ["-y", "brave-mcp@latest", "--autoConnect"]    }  }}

[!NOTE] Using brave-mcp@latest ensures that your MCP client will always use the latest version of the Brave DevTools MCP server.

Leave out --autoConnect to have the server launch its own Brave with a dedicated profile instead.

If you are interested in doing only basic browser tasks, use the --slim mode:

json
{  "mcpServers": {    "brave-devtools": {      "command": "npx",      "args": ["-y", "brave-mcp@latest", "--slim", "--headless"]    }  }}

See Slim tool reference.

MCP Client configuration

For setup instructions specific to your editor or agent (e.g. Antigravity, Claude Code, Cursor, VS Code), please see our Client Configurations Guide. To attach to your running Brave, add --autoConnect to the server arguments shown there.

Your first prompt

Enter the following prompt in your MCP Client to check if everything is working:

Check the performance of https://brave.com

Brave asks you to allow the connection. After you click Allow, your MCP client opens the page in Brave and records a performance trace.

[!NOTE] The MCP server connects to Brave only when the MCP client first uses a tool that needs a browser, not when the client starts. Without --autoConnect, that is when the server launches its own Brave.

Tools

If you run into any issues, checkout our troubleshooting guide. See the full Tool reference for a complete list of all supported MCP capabilities.

Configuration

Find the complete list of server parameters (e.g., --headless, --isolated, --slim) and how to configure WebSocket connections in the Configuration Guide.

Advanced usage

For advanced features such as handling concurrent sessions, persistent user data directories, connecting to a running Brave instance instead of starting a new one, or debugging on Android, see our Advanced Usage Guide.

Known limitations

See Troubleshooting.

Integrating as a browser subagent

If you are developing agentic tooling and want to provide an integrated browser subagent as part of your product, we recommend building on top of Brave DevTools for agents.

For a reference implementation, see the Gemini CLI browser agent documentation.

来源:README.md,提交 3861411

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

3
  1. v1.11.0最新Oct 15, 2026
  2. v1.10.1Oct 6, 2026
  3. v1.9.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分