Brave Search MCP Server

Brave Search MCP Server

MCP integration for web, image, news, video, and local search via Brave Search API.

86
Stars
17
Forks
86
Watchers
0
Issues
Implements a Model Context Protocol server that connects with the Brave Search API, enabling AI systems to perform comprehensive web, image, news, video, and local points of interest searches. Provides standardized MCP tools for various search types, each supporting advanced filtering parameters. Designed for easy integration in context-aware model interfaces such as Claude Code.

Key Features

Web search integration with Brave Search API
Image search with resource output
News, video, and local points of interest search support
Multiple search tools with customizable parameters (query, count, offset, freshness, date range)
Handles context-based information requests for AI models
Resource fallback strategies for local search
Easy configuration with API key management
Direct integration capability with Claude Code
Support for pagination and advanced date filtering
Optimized for scalable use with generous API limits

Use Cases

Enhancing AI assistant responses with up-to-date web search results
Retrieving relevant images for question answering or content generation
Providing localized business or services information to users
Fetching current news topics or recent events within conversational AI
Enabling video result retrieval for media-centric queries
Facilitating multi-modal search workflows within AI environments
Supporting AI-driven market or trend analysis
Automating research tasks needing specific web or news results
Empowering context-aware agents with timely information
Integrating structured search tools within model context pipelines

README

Brave Search MCP Server

An MCP Server implementation that integrates the Brave Search API, providing, Web Search, Local Points of Interest Search, Video Search, Image Search and News Search capabilities

Features

  • Web Search: Perform a regular search on the web
  • Image Search: Search the web for images. Image search results will be available as a Resource
  • News Search: Search the web for news
  • Video Search: Search the web for videos
  • Local Points of Interest Search: Search for local physical locations, businesses, restaurants, services, etc

Tools

  • brave_web_search

    • Execute web searches using Brave's API
    • Inputs:
      • query (string): The term to search the internet for
      • count (number, optional): The number of results to return (max 20, default 10)
      • offset (number, optional, default 0): The offset for pagination
      • freshness (enum, optional): Filters search results by when they were discovered
        • The following values are supported
          • pd: Discovered within the last 24 hours.
          • pw: Discovered within the last 7 Days.
          • pm: Discovered within the last 31 Days.
          • py: Discovered within the last 365 Days
          • YYYY-MM-DDtoYYYY-MM-DD: Custom date range (e.g., 2022-04-01to2022-07-30)
  • brave_image_search

    • Get images from the web relevant to the query
    • Inputs:
      • query (string): The term to search the internet for images of
      • count (number, optional): The number of images to return (max 3, default 1)
  • brave_news_search

    • Searches the web for news
    • Inputs:
      • query (string): The term to search the internet for news articles, trending topics, or recent events
      • count (number, optional): The number of results to return (max 20, default 10)
      • freshness (enum, optional): Filters search results by when they were discovered
        • The following values are supported
          • pd: Discovered within the last 24 hours.
          • pw: Discovered within the last 7 Days.
          • pm: Discovered within the last 31 Days.
          • py: Discovered within the last 365 Days
          • YYYY-MM-DDtoYYYY-MM-DD: Custom date range (e.g., 2022-04-01to2022-07-30)
  • brave_local_search

    • Search for local businesses, services and points of interest
    • REQUIRES subscription to the Pro api plan for location results
    • Falls back to brave_web_search if no location results are found
    • Inputs:
      • query (string): Local search term
      • count (number, optional): The number of results to return (max 20, default 5)
  • brave_video_search

    • Search the web for videos
    • Inputs:
      • query: (string): The term to search for videos
      • count: (number, optional): The number of videos to return (max 20, default 10)
      • freshness (enum, optional): Filters search results by when they were discovered
        • The following values are supported
          • pd: Discovered within the last 24 hours.
          • pw: Discovered within the last 7 Days.
          • pm: Discovered within the last 31 Days.
          • py: Discovered within the last 365 Days
          • YYYY-MM-DDtoYYYY-MM-DD: Custom date range (e.g., 2022-04-01to2022-07-30)

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 Code

For Claude Code users, run this command:

Windows:

bash
claude mcp add-json brave-search '{"command":"cmd","args":["/c","npx","-y","brave-search-mcp"],"env":{"BRAVE_API_KEY":"YOUR_API_KEY_HERE"}}'

Linux/macOS:

bash
claude mcp add-json brave-search '{"command":"npx","args":["-y","brave-search-mcp"],"env":{"BRAVE_API_KEY":"YOUR_API_KEY_HERE"}}'

Replace YOUR_API_KEY_HERE with your actual Brave Search API key.

Usage with Claude Desktop

Desktop Extension (DXT)

  1. Download the dxt file from the Releases
  2. Open it with Claude Desktop or Go to File -> Settings -> Extensions and drag the .DXT file to the window to install it

Docker

  1. Clone the repo
  2. Docker build
bash
docker build -t brave-search-mcp:latest -f ./Dockerfile .
  1. Add this to your claude_desktop_config.json:
json
{
  "mcp-servers": {
    "brave-search": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "BRAVE_API_KEY",
        "brave-search-mcp"
      ],
      "env": {
        "BRAVE_API_KEY": "YOUR API KEY HERE"
      }
    }
  }
}

NPX

Add this to your claude_desktop_config.json:

json
{
  "mcp-servers": {
    "brave-search": {
      "command": "npx",
      "args": [
        "-y",
        "brave-search-mcp"
      ],
      "env": {
        "BRAVE_API_KEY": "YOUR API KEY HERE"
      }
    }
  }
}

Usage with LibreChat

Add this to librechat.yaml

yaml
brave-search:
  command: sh
  args:
    - -c
    - BRAVE_API_KEY=API KEY npx -y brave-search-mcp

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Desktop Extensions (DXT)

Anthropic recently released Desktop Extensions allowing installation of local MCP Servers with one click.

Install the CLI tool to help generate both manifest.json and final .dxt file.

sh
npm install -g @anthropic-ai/dxt

Creating the manifest.json file

  1. In this folder/directory which contains the local MCP Server, run dxt init. The command will start an interactive CLI to help create the manifest.json.

Creating the dxt file

  1. First install dev dependencies and build
sh
npm install
npm run build
  1. Then install only the production dependencies, generate a smaller nodule_modules directory
sh
npm install --omit=dev
  1. Run dxt pack to create a dxt file. This will also validate the manifest.json that was created. The dxt is essentially a zip file and will contain everything in this directory.

Disclaimer

This library is not officially associated with Brave Software. It is a third-party implementation of the Brave Search API with a MCP Server.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Star History

Star History Chart

Repository Owner

mikechao
mikechao

User

Repository Details

Language TypeScript
Default Branch main
Size 27,723 KB
Contributors 3
License GNU General Public License v3.0
MCP Verified Nov 12, 2025

Programming Languages

TypeScript
95.45%
JavaScript
2.59%
Dockerfile
1.96%

Tags

Topics

brave-search image-search mcp model-context-protocol news-search video-search web-search

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • Brave Search MCP Server

    Brave Search MCP Server

    MCP-compliant server providing advanced Brave Search API tools via STDIO and HTTP.

    Implements a Model Context Protocol (MCP) server for integrating with the Brave Search API, offering tools for web, local business, image, video, and news searches along with AI-powered summarization. Supports both STDIO and HTTP transports and adheres to established MCP conventions for context management. Provides structured tool schemas and customizable parameters to handle sophisticated search queries and results. Enables advanced filtering, multi-type result aggregation, and seamless integration for AI model workflows.

    • 337
    • MCP
    • brave/brave-search-mcp-server
  • tavily-search MCP server

    tavily-search MCP server

    A search server that integrates Tavily API with Model Context Protocol tools.

    tavily-search MCP server provides an MCP-compliant server to perform search queries using the Tavily API. It returns search results in text format, including AI responses, URLs, and result titles. The server is designed for easy integration with clients like Claude Desktop or Cursor and supports both local and Docker-based deployment. It facilitates AI workflows by offering search functionality as part of a standardized protocol interface.

    • 44
    • MCP
    • Tomatio13/mcp-server-tavily
  • searchcraft-mcp-server

    searchcraft-mcp-server

    An MCP Server for managing Searchcraft clusters and powering AI-driven search administration.

    searchcraft-mcp-server is a TypeScript/Node.js server that implements the Model Context Protocol (MCP) for Searchcraft clusters. It provides a suite of programmable tools for managing indexes, documents, federations, access keys, and analytics using plain English prompts via AI model clients. The server enables seamless interaction between AI interfaces like Claude Desktop and Searchcraft's administrative functions by exposing these operations as protocol-driven actions.

    • 6
    • MCP
    • searchcraft-inc/searchcraft-mcp-server
  • MCP-searxng

    MCP-searxng

    MCP server bridging agentic systems with SearXNG web search

    MCP-searxng enables agentic systems to interface with web search engines via the SearXNG platform by implementing the Model Context Protocol. It supports both command-line and local server deployment, providing flexible integration options. Users can configure custom SearXNG server URLs and connect through clients like uvx or claude desktop. The tool simplifies access to structured web search within agentic workflows.

    • 107
    • MCP
    • SecretiveShell/MCP-searxng
  • MCP Web Research Server

    MCP Web Research Server

    Bring real-time web research and Google search capabilities into Claude using MCP.

    MCP Web Research Server acts as a Model Context Protocol (MCP) server, seamlessly integrating web research functionalities with Claude Desktop. It enables Google search, webpage content extraction, research session tracking, and screenshot capture, all accessible directly from Claude. The server supports interactive and guided research sessions, exposing session data and screenshots as MCP resources for enhanced context-aware AI interactions.

    • 284
    • MCP
    • mzxrai/mcp-webresearch
  • DuckDuckGo Search MCP Server

    DuckDuckGo Search MCP Server

    A Model Context Protocol server for DuckDuckGo web search and intelligent content retrieval.

    DuckDuckGo Search MCP Server provides web search capabilities through DuckDuckGo, with advanced content fetching and parsing tailored for large language models. It supports rate limiting, error handling, and delivers results in an LLM-friendly format. The server is designed for seamless integration with AI applications and tools like Claude Desktop, enabling enhanced web search and content extraction through the Model Context Protocol.

    • 637
    • MCP
    • nickclyde/duckduckgo-mcp-server
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results