Brave Search MCP 服务器
集成 Brave Search API 的 MCP 服务器实现,提供网络和本地搜索功能。
特征
网络搜索:一般查询、新闻、文章,具有分页和新鲜度控制
本地搜索:查找商家、餐厅和服务的详细信息
灵活过滤:控制结果类型、安全级别和内容新鲜度
智能回退:本地搜索在未找到结果时自动回退到网络
Related MCP server: Search MCP Server
工具
brave_web_search
使用分页和过滤功能执行网页搜索
输入:
query(字符串):搜索词count(数字,可选):每页结果数(最多 20 条)offset(数字,可选):分页偏移量(最大 9)
brave_local_search
搜索本地企业和服务
输入:
query(字符串):本地搜索词count(数字,可选):结果数量(最多 20 条)
如果未找到本地结果,则自动返回网络搜索
配置
获取 API 密钥
选择计划(免费套餐,每月 2,000 次查询)
从开发者仪表板生成您的 API 密钥
与 Claude Desktop 一起使用
将其添加到您的claude_desktop_config.json中:
Docker
{
"mcpServers": {
"brave-search": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"BRAVE_API_KEY",
"mcp/brave-search"
],
"env": {
"BRAVE_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}NPX
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-brave-search"
],
"env": {
"BRAVE_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}与 VS Code 一起使用
为了快速安装,请使用下面的一键安装按钮...
👁 在 VS Code 中使用 NPX 安装
👁 在 VS Code Insiders 中使用 NPX 安装
👁 在 VS Code 中使用 Docker 安装
👁 在 VS Code Insiders 中使用 Docker 安装
如需手动安装,请将以下 JSON 块添加到 VS Code 中的“用户设置 (JSON)”文件中。您可以按下Ctrl + Shift + P并输入Preferences: Open User Settings (JSON)来完成此操作。
或者,您可以将其添加到工作区中名为.vscode/mcp.json的文件中。这样您就可以与其他人共享该配置。
请注意
.vscode/mcp.json文件中不需要mcp键。
Docker
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "brave_api_key",
"description": "Brave Search API Key",
"password": true
}
],
"servers": {
"brave-search": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"BRAVE_API_KEY",
"mcp/brave-search"
],
"env": {
"BRAVE_API_KEY": "${input:brave_api_key}"
}
}
}
}
}NPX
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "brave_api_key",
"description": "Brave Search API Key",
"password": true
}
],
"servers": {
"brave-search": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-brave-search"],
"env": {
"BRAVE_API_KEY": "${input:brave_api_key}"
}
}
}
}
}建造
Docker 构建:
docker build -t mcp/brave-search:latest -f src/brave-search/Dockerfile .执照
此 MCP 服务器采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详情,请参阅项目仓库中的 LICENSE 文件。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/modelcontextprotocol/brave-search'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
