Skip to content

Commit 04806dc

Browse files
authored
Merge pull request #15 from modelcontextprotocol/bravesearch-server
Brave search server
2 parents a1de227 + dc123c1 commit 04806dc

File tree

6 files changed

+624
-0
lines changed

6 files changed

+624
-0
lines changed

package-lock.json

+160
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"@modelcontextprotocol/server-postgres": "*",
2323
"@modelcontextprotocol/server-puppeteer": "*",
2424
"@modelcontextprotocol/server-slack": "*",
25+
"@modelcontextprotocol/server-brave-search": "*",
2526
"@modelcontextprotocol/server-memory": "*"
2627
}
2728
}

src/brave-search/README.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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

Comments
 (0)