NgoSon3868-Quas/WebSearch-MCP
If you are the rightful owner of WebSearch-MCP and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
This repository provides a configuration for an MCP Server Web Search using the Brave Search API, enabling web search capabilities across multiple computers.
Cấu hình MCP Server Web Search (Brave)
Repository này chứa cấu hình MCP Server Web Search sử dụng Brave Search API để sử dụng trên nhiều máy tính.
Cấu hình
File mcp.json chứa cấu hình để thêm vào .cursor/mcp.json hoặc ~/.cursor/mcp.json:
{
"mcpServers": {
"web-search": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-brave-search"
],
"env": {
"BRAVE_API_KEY": "your-brave-api-key-here"
}
}
}
}
Lưu ý quan trọng
⚠️ Cần Brave API Key: Bạn cần lấy Brave API Key từ https://brave.com/search/api/ và thay thế "invalid-placeholder" trong file cấu hình.
Lấy Brave API Key
- Truy cập: https://brave.com/search/api/
- Đăng ký tài khoản (nếu chưa có)
- Tạo API key mới
- Copy API key và thay thế trong file
mcp.json
Sử dụng
-
Clone repository này:
git clone https://github.com/NgoSon3868-Quas/WebSearch-MCP.git cd WebSearch-MCP -
Chỉnh sửa file
mcp.jsonvà thay thế"invalid-placeholder"bằng Brave API Key của bạn -
Copy nội dung từ
mcp.jsonvào file cấu hình MCP của bạn:- Windows:
C:\Users\<username>\.cursor\mcp.json - Mac/Linux:
~/.cursor/mcp.json
Hoặc merge vào file
mcpServershiện có của bạn. - Windows:
-
Khởi động lại Cursor IDE
Yêu cầu
- Node.js và npm đã được cài đặt
- Package
@modelcontextprotocol/server-brave-searchsẽ được tự động tải khi sử dụng - Brave API Key hợp lệ
Tính năng
MCP Server Web Search cung cấp các công cụ để:
- Tìm kiếm trên web
- Tìm kiếm địa phương (local search)
- Lấy kết quả tìm kiếm từ Brave Search
Kiểm tra cấu hình
Sau khi thêm cấu hình và khởi động lại Cursor:
- Vào Settings > Tools & MCP
- Kiểm tra trong danh sách "Installed MCP Servers" có
web-searchvới trạng thái "Ready"
Bảo mật
⚠️ Không commit API key vào public repository. Luôn sử dụng placeholder và cập nhật trên máy local.