Brave Search

Brave Search

By modelcontextprotocol GitHub

Web and local search using Brave's Search API

brave-search search-api
Overview

Brave Search is an MCP server implementation that utilizes the Brave Search API to provide both web and local search capabilities.

To use Brave Search, sign up for a Brave Search API account to get an API key, then configure the server in your application with the provided API key and start making search queries.

  • Web Search: Execute general queries, news, and articles with pagination and freshness controls.
  • Local Search: Find businesses and services with detailed descriptions, automatically falling back to web search if no local results are found.
  • Flexible Filtering: Control types of results, safety levels, and content freshness.
  • Smart Fallbacks: Automatically fallback to web search for local queries when no results are found.
  1. Conducting general web searches for news articles.
  2. Finding local businesses or services quickly.
  3. Custom filtering of search results based on user-defined criteria.
  • How do I obtain an API Key for Brave Search?

Sign up for a Brave Search API account, select a plan, and generate your API key from the developer dashboard.

  • Is there a free tier available?

Yes, the free tier allows up to 2,000 queries per month.

  • What happens if no local search results are found?

The service automatically falls back to a web search to continue providing relevant results.

Content

Brave Search MCP Server

An MCP server implementation that integrates the Brave Search API, providing both web and local search capabilities.

Features

  • Web Search: General queries, news, articles, with pagination and freshness controls
  • Local Search: Find businesses, restaurants, and services with detailed information
  • Flexible Filtering: Control result types, safety levels, and content freshness
  • Smart Fallbacks: Local search automatically falls back to web when no results are found

Tools

  • brave_web_search

    • Execute web searches with pagination and filtering
    • Inputs:
      • query (string): Search terms
      • count (number, optional): Results per page (max 20)
      • offset (number, optional): Pagination offset (max 9)
  • brave_local_search

    • Search for local businesses and services
    • Inputs:
      • query (string): Local search terms
      • count (number, optional): Number of results (max 20)
    • Automatically falls back to web search if no local results found

Configuration

Getting an API Key

  1. Sign up for a Brave Search API account
  2. Choose a plan (Free tier available with 2,000 queries/month)
  3. Generate your API key from the developer dashboard

Usage with Claude Desktop

Add this to your 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"
      }
    }
  }
}

Build

Docker build:

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

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Tools

brave_web_search

Performs a web search using the Brave Search API, ideal for general queries, news, articles, and online content. Use this for broad information gathering, recent events, or when you need diverse web sources. Supports pagination, content filtering, and freshness controls. Maximum 20 results per request, with offset for pagination.

brave_local_search

Searches for local businesses and places using Brave's Local Search API. Best for queries related to physical locations, businesses, restaurants, services, etc. Returns detailed information including: - Business names and addresses - Ratings and review counts - Phone numbers and opening hours Use this when the query implies 'near me' or mentions specific locations. Automatically falls back to web search if no local results are found.

MCP server for Naver Search API integration. Provides comprehensive search capabilities across Naver services (web, news, blog, shopping, etc) and data trend analysis tools via DataLab API.

data-analysis search-api
View Details

Stream Brave Search (web & local) results via a Model Context Protocol (MCP) / Server-Sent Events (SSE) interface. Acts as a centralized, observable tool provider for AI models, deployable via Docker or Helm.

brave-search mcp
View Details

MCP server for Brave Search API integration

brave-search api-integration
View Details