集成Brave Search API的MCP服务器实现,提供网页搜索、本地兴趣点搜索、视频搜索、图片搜索和新闻搜索功能。
<a href="https://glama.ai/mcp/servers/@mikechao/brave-search-mcp"> <img width="380" height="200" src="https://gips2.baidu.com/it/u=1906162620,320633646&fm=3081&app=3081&f=PNG?w=760&h=400" alt="Brave Search MCP server" /> </a>brave_web_search
query (字符串):要搜索的关键词。count (数字,可选):返回的结果数量(最大20,默认10)。offset (数字,可选,默认0):分页偏移量。freshness (枚举,可选):根据发现时间过滤搜索结果。
brave_image_search
query (字符串):要搜索的图片关键词。count (数字,可选):返回的图片数量(最大3,默认1)。brave_news_search
query (字符串):要搜索的新闻关键词。count (数字,可选):返回的结果数量(最大20,默认10)。freshness (枚举,可选):根据发现时间过滤搜索结果。
brave_local_search
query (字符串):本地搜索关键词。count (数字,可选):返回的结果数量(最大20,默认5)。brave_video_search
query (字符串):要搜索的视频关键词。count (数字,可选):返回的视频数量(最大20,默认10)。freshness (枚举,可选):根据发现时间过滤搜索结果。
对于Claude Code用户,运行以下命令:
Windows:
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:
claude mcp add-json brave-search '{"command":"npx","args":["-y","brave-search-mcp"],"env":{"BRAVE_API_KEY":"YOUR_API_KEY_HERE"}}'
将YOUR_API_KEY_HERE替换为您实际的Brave Search API密钥。
dxt文件。docker build -t brave-search-mcp:latest -f ./Dockerfile .
claude_desktop_config.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"
}
}
}
}
将此内容添加到您的claude_desktop_config.json:
{
"mcp-servers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"brave-search-mcp"
],
"env": {
"BRAVE_API_KEY": "YOUR API KEY HERE"
}
}
}
}
将此内容添加到librechat.yaml:
brave-search:
command: sh
args:
- -c
- BRAVE_API_KEY=API KEY npx -y brave-search-mcp
欢迎贡献!请随时提交Pull Request。
Anthropic最近发布了桌面扩展,允许一键安装本地MCP服务器。
安装CLI工具以帮助生成manifest.json和最终的.dxt文件。
npm install -g @anthropic-ai/dxt
dxt init。该命令将启动一个交互式CLI来帮助创建manifest.json。npm install
npm run build
npm install --omit=dev
dxt pack以创建一个dxt文件。这也将验证创建的manifest.json。dxt本质上是一个zip文件,将包含此目录中的所有内容。本库未与Brave Software官方关联。这是一个第三方实现的Brave Search API的MCP服务器。
本项目基于GNU通用公共许可证v3.0发布 - 详情见LICENSE文件。