这是一个集成了 Braven Search API 的 MCP 服务器实现,它提供了强大的 web 和本地搜索功能,能满足不同场景下的搜索需求。
要使用勇敢搜索 MCP 服务器,你需要先获取 API 密钥,然后根据自己的需求选择合适的配置方式进行配置。
将此内容添加到 claude_desktop_config.json
。
{
"mcpServers": {
"brave-search": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"BRAVE_API_KEY",
"mcp/brave-search"
],
"env": {
"BRAVE_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-brave-search"
],
"env": {
"BRAVE_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
Docker 构建:
docker build -t mcp/brave-search:latest -f src/brave-search/Dockerfile .
query
(字符串):搜索词。count
(数字, 可选):每页结果数 (最大值 20)。offset
(数字, 可选):分页偏移量 (最大值 9)。query
(字符串):本地搜索词。count
(数字, 可选):结果数量 (最大值 20)。此 MCP 服务器根据 MIT 许可证发布。这意味着你可以自由地使用、修改和分发软件,需遵守 MIT 许可证的条款和条件。更多详情,请参阅项目仓库中的 LICENSE 文件。