Skip to main content
Glama
modelcontextprotocol

Brave Search MCP Server

Brave Search MCP 服务器

集成 Brave Search API 的 MCP 服务器实现,提供网络和本地搜索功能。

特征

  • 网络搜索:一般查询、新闻、文章,具有分页和新鲜度控制

  • 本地搜索:查找商家、餐厅和服务的详细信息

  • 灵活过滤:控制结果类型、安全级别和内容新鲜度

  • 智能回退:本地搜索在未找到结果时自动回退到网络

Related MCP server: Search MCP Server

工具

  • brave_web_search

    • 使用分页和过滤功能执行网页搜索

    • 输入:

      • query (字符串):搜索词

      • count (数字,可选):每页结果数(最多 20 条)

      • offset (数字,可选):分页偏移量(最大 9)

  • brave_local_search

    • 搜索本地企业和服务

    • 输入:

      • query (字符串):本地搜索词

      • count (数字,可选):结果数量(最多 20 条)

    • 如果未找到本地结果,则自动返回网络搜索

配置

获取 API 密钥

  1. 注册Brave Search API 帐户

  2. 选择计划(免费套餐,每月 2,000 次查询)

  3. 从开发者仪表板生成您的 API 密钥

与 Claude Desktop 一起使用

将其添加到您的claude_desktop_config.json中:

Docker

{
  "mcpServers": {
    "brave-search": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "BRAVE_API_KEY",
        "mcp/brave-search"
      ],
      "env": {
        "BRAVE_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

NPX

{
  "mcpServers": {
    "brave-search": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-brave-search"
      ],
      "env": {
        "BRAVE_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

与 VS Code 一起使用

为了快速安装,请使用下面的一键安装按钮...

在 VS Code 中使用 NPX 安装 在 VS Code Insiders 中使用 NPX 安装

在 VS Code 中使用 Docker 安装 在 VS Code Insiders 中使用 Docker 安装

如需手动安装,请将以下 JSON 块添加到 VS Code 中的“用户设置 (JSON)”文件中。您可以按下Ctrl + Shift + P并输入Preferences: Open User Settings (JSON)来完成此操作。

或者,您可以将其添加到工作区中名为.vscode/mcp.json的文件中。这样您就可以与其他人共享该配置。

请注意.vscode/mcp.json文件中不需要mcp键。

Docker

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "brave_api_key",
        "description": "Brave Search API Key",
        "password": true
      }
    ],
    "servers": {
      "brave-search": {
        "command": "docker",
        "args": [
          "run",
          "-i",
          "--rm",
          "-e",
          "BRAVE_API_KEY",
          "mcp/brave-search"
        ],
        "env": {
          "BRAVE_API_KEY": "${input:brave_api_key}"
        }
      }
    }
  }
}

NPX

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "brave_api_key",
        "description": "Brave Search API Key",
        "password": true
      }
    ],
    "servers": {
      "brave-search": {
        "command": "npx",
        "args": ["-y", "@modelcontextprotocol/server-brave-search"],
        "env": {
          "BRAVE_API_KEY": "${input:brave_api_key}"
        }
      }
    }
  }
}

建造

Docker 构建:

docker build -t mcp/brave-search:latest -f src/brave-search/Dockerfile .

执照

此 MCP 服务器采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详情,请参阅项目仓库中的 LICENSE 文件。

-
license - not tested
Not graded
quality - not tested
A
maintenance

Maintenance

UpdatingMaintainers
UpdatingResponse time
7wRelease cycle
8Releases (12mo)
Commit activity
Issues opened vs closed

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    The Search MCP Server enables seamless integration of network and local search capabilities in tools like Claude Desktop and Cursor, utilizing the Brave Search API for high-concurrency and asynchronous requests.
    1
    78
    MIT
  • A
    license
    Not graded
    quality
    F
    maintenance
    An MCP server that integrates the Brave Search API to provide both web and local search capabilities, with features like pagination, filtering, and smart fallbacks.
    16
    MIT

View all related MCP servers

Related MCP Connectors

  • Serper MCP — wraps the Serper Google Search API (serper.dev)

  • An MCP server that gives your AI access to the source code and docs of all public github repos

  • Brave Search MCP — independent web index (no Google/Bing dependency)

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/modelcontextprotocol/brave-search'

If you have feedback or need assistance with the MCP directory API, please join our Discord server