|
| 1 | +# Brave Search MCP Server |
| 2 | + |
| 3 | +An MCP server implementation that integrates the Brave Search API, providing both web and local search capabilities. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +- **Web Search**: General queries, news, articles, with pagination and freshness controls |
| 8 | +- **Local Search**: Find businesses, restaurants, and services with detailed information |
| 9 | +- **Flexible Filtering**: Control result types, safety levels, and content freshness |
| 10 | +- **Smart Fallbacks**: Local search automatically falls back to web when no results are found |
| 11 | + |
| 12 | +## Tools |
| 13 | + |
| 14 | +- **brave_web_search** |
| 15 | + - Execute web searches with pagination and filtering |
| 16 | + - Inputs: |
| 17 | + - `query` (string): Search terms |
| 18 | + - `count` (number, optional): Results per page (max 20) |
| 19 | + - `offset` (number, optional): Pagination offset (max 9) |
| 20 | + |
| 21 | +- **brave_local_search** |
| 22 | + - Search for local businesses and services |
| 23 | + - Inputs: |
| 24 | + - `query` (string): Local search terms |
| 25 | + - `count` (number, optional): Number of results (max 20) |
| 26 | + - Automatically falls back to web search if no local results found |
| 27 | + |
| 28 | + |
| 29 | +## Configuration |
| 30 | + |
| 31 | +### Getting an API Key |
| 32 | +1. Sign up for a [Brave Search API account](https://brave.com/search/api/) |
| 33 | +2. Choose a plan (Free tier available with 2,000 queries/month) |
| 34 | +3. Generate your API key [from the developer dashboard](https://api.search.brave.com/app/keys) |
| 35 | + |
| 36 | +### Usage with Claude Desktop |
| 37 | +Add this to your `claude_desktop_config.json`: |
| 38 | + |
| 39 | +```json |
| 40 | +"mcp-server-brave-search": { |
| 41 | + "command": "mcp-server-brave-search", |
| 42 | + "env": { |
| 43 | + "BRAVE_API_KEY": "YOUR_API_KEY_HERE" |
| 44 | + } |
| 45 | +} |
| 46 | +``` |
0 commit comments