Brave搜索配置工具

该工具用于在macOS上配置Claude Desktop以通过MCP协议使用Brave搜索服务。

  • by deedoi
  • 本地部署
  • 更新于
在 GitHub 查看 deedoi/Brave-Search-with-Claude-MCP-on-macOS

使用说明

在macOS上将Brave Search配置为使用Claude MCP

本指南介绍了如何进行配置 Claude Desktop(可译为“Claude桌面版”) 使用 勇敢搜索(或译为“无畏搜索”,根据语境可灵活选择) 通过MCP(模型上下文协议)。


先决条件


步骤

1. 安装并登录Claude桌面版

从官方网站下载并安装Claude桌面版,然后登录您的账户。


2. 创建MCP配置文件

打开终端并运行:

open ~/Library/Application\ Support/Claude
touch ~/Library/Application\ Support/Claude/claude_desktop_config.json

---

### 3. Edit the configuration file

Open the file in a text editor (for example, VS Code):

```bash
code ~/Library/Application\ Support/Claude/claude_desktop_config.json

Paste the following configuration:

```json

{
  "mcpServers": {
    "brave-search": {
      "command": "npx",
      "args": [
        "-y",
        "@brave/brave-search-mcp-server",
        "--transport",
        "http"
      ],
      "env": {
        "BRAVE_API_KEY": "YOUR_BRAVE_API_KEY"
      }
    }
  }
}

Replace YOUR_BRAVE_API_KEY with your actual key.

---

4. Obtain your Brave API key

Create a Brave Search account.

Generate and copy your API key.

Paste the key into the BRAVE_API_KEY field in the configuration file.

---

5. Restart Claude Desktop

If Claude Desktop is running, quit and relaunch it to apply the MCP configuration.

---

Verification

After restarting, open Claude and run a search prompt.
If configured correctly, Claude will respond using Brave Search results through MCP.