Skip to main content
Glama

Brave Search MCP Server

MIT License
16,464
68,255
  • Linux
  • Apple

Brave Search MCP 服务器

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

特征

  • 网络搜索:一般查询、新闻、文章,具有分页和新鲜度控制
  • 本地搜索:查找商家、餐厅和服务的详细信息
  • 灵活过滤:控制结果类型、安全级别和内容新鲜度
  • 智能回退:本地搜索在未找到结果时自动回退到网络

工具

  • 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 一起使用

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

如需手动安装,请将以下 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 文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

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

  1. 特征
    1. 工具
      1. 配置
        1. 获取 API 密钥
        2. 与 Claude Desktop 一起使用
        3. Docker
        4. NPX
        5. 与 VS Code 一起使用
      2. 建造
        1. 执照

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            A server based on the MCP protocol that uses the Brave API for web search functionality.
            Last updated -
            1
            MIT License
            • Apple
            • Linux
          • A
            security
            A
            license
            A
            quality
            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.
            Last updated -
            1
            72
            MIT License
            • Linux
          • A
            security
            A
            license
            A
            quality
            An MCP server that enables users to fetch Python documentation using the Brave Search API through natural language queries.
            Last updated -
            1
            Apache 2.0
            • Apple
          • -
            security
            A
            license
            -
            quality
            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.
            Last updated -
            13
            MIT License

          View all related MCP servers

          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