MCP 网络搜索工具是一个功能强大的模型上下文协议(MCP)服务器,它能提供实时网络搜索功能,并借助可插入式搜索提供程序来实现。目前,该工具已集成了 Brave 搜索 API。
克隆仓库:
git clone https://github.com/gabrimatic/mcp-web-search-tool.git
cd mcp-web-search-tool
安装依赖项:
npm install
配置环境变量:
在项目根目录创建一个 .env
文件:
BRAVE_API_KEY=your_api_key_here
MAX_RESULTS=10 # 可选:默认为 10
REQUEST_TIMEOUT=10000 # 可选:默认为 10000ms
构建项目:
npm run build
npm start
node test-server.js
该项目一大令人兴奋之处在于它能与 Claude 桌面应用实现无缝集成。通过这种集成,用户在询问需要实时信息的问题时,Claude 会自动调用网络搜索工具给出最新答案。
创建一个 claude_desktop_config.json
文件:
{
"mcpServers": {
"mcp-web-search": {
"command": "node",
"args": [
"/path/to/your/mcp-web-search-tool/build/index.js"
]
}
}
}
使用配置文件启动 Claude 桌面应用。
当你提出需要实时信息的问题时,Claude 会自动使用网络搜索工具。
观看 Claude 使用 MCP 网络搜索工具进行实时 AI 浏览器的实际操作!