開源 AI 聯網搜索工具:Open-WebSearch MCP 全新升級,支持多引擎 + 流式響應! 原創
?? 開源 AI 聯網搜索工具:Open-WebSearch MCP 全新升級,支持多引擎 + 流式響應!
??「讓你的 AI 插件真正能聯網」—— 不需要 API Key,搜索結果可控、開箱即用!
大家好,我最近開源了一個 AI 插件開發工具 —— Open-WebSearch MCP。這個項目旨在解決 AI 在實際應用中無法聯網或聯網費用高昂的問題,特別適合在 Claude、LangChain、RAG 方案中添加“實時搜索”能力。
?? 項目亮點一覽
? 多引擎實時搜索
- 支持
Bing
、百度
、CSDN
(目前linux.do
暫不支持) - 可配置引擎組合搜索,獲取更全面的內容
? 流式響應(MCP協議)
- 完美兼容 Claude 插件(MCP)協議
- 更新為支持
streamableHttp
和SSE
兩種方式返回搜索結果,體驗絲滑流暢
? 文章正文抓取
- 支持提取 CSDN 博客文章全文
- 支持提取 Linux.do(開發中)
? 完全免費 & 無需 API Key
- 不再依賴 Bing API / Google Custom Search
- 可自托管,無額度限制,數據可控
? Docker 一鍵部署
- 提供
docker-compose
和鏡像:ghcr.io/aas-ee/open-web-search
?? 如何使用?
安裝非常簡單:
git clone https://github.com/Aas-ee/open-webSearch
cd open-webSearch
npm install
npm run build
node build/index.js
或者直接使用 Docker 啟動:
docker run -d \
--name web-search \
-p 3000:3000 \
-e ENABLE_CORS=true \
-e CORS_ORIGIN=* \
ghcr.io/aas-ee/open-web-search:latest
配合 Claude Dev Extension、Claude Desktop、Cherry Studio 使用效果更佳!
?? MCP 客戶端配置指南
?? Cherry Studio
{
"mcpServers": {
"web-search": {
"name": "Web Search MCP",
"type": "streamableHttp",
"description": "Multi-engine web search with article fetching",
"baseUrl": "http://localhost:3000/mcp"
},
"web-search-sse": {
"name": "Web Search SSE",
"type": "sse",
"description": "SSE version of web search",
"url": "http://localhost:3000/sse"
}
}
}
?? Claude Dev Extension (VSCode)
{
"mcpServers": {
"web-search": {
"transport": {
"type": "streamableHttp",
"url": "http://localhost:3000/mcp"
}
},
"web-search-sse": {
"transport": {
"type": "sse",
"url": "http://localhost:3000/sse"
}
}
}
}
?? Claude Desktop
{
"mcpServers": {
"web-search": {
"transport": {
"type": "streamableHttp",
"url": "http://localhost:3000/mcp"
}
},
"web-search-sse": {
"transport": {
"type": "sse",
"url": "http://localhost:3000/sse"
}
}
}
}
如果你是 Docker 部署,請把
localhost
換成實際 IP 地址
?? MCP 工具支持
?? search:多引擎搜索工具
{
query: "Claude 插件開發",
limit: 5,
engines: ["bing", "csdn"]
}
? 返回結構化數據(標題、URL、摘要、來源)
?? fetchCsdnArticle:提取 CSDN 文章全文
{
url: "https://blog.csdn.net/xxx/article/details/xxx"
}
? 獲取正文,支持摘要分析、RAG、訓練語料等場景
?? fetchLinuxDoArticle:抓取 Linux.do 文章(目前不穩定)
?? CI/CD:支持 Docker 鏡像自動構建發布
如果你想 Fork 并發布自己的版本,也完全沒問題:
-
支持 GitHub Actions 自動構建并發布到:
- GitHub Container Registry(ghcr.io)
- 阿里云容器鏡像服務(可選配置 ACR)
? 提供詳細 CI/CD 配置文檔
? 開發者可自由部署在內網、私有云環境下
?? 后續計劃
?? 支持更多搜索引擎(Google、知乎、Reddit)
?? 支持文檔類內容全文抽取(如微信公眾號、掘金)
? 項目地址
?? GitHub 地址:https://github.com/Aas-ee/open-webSearch
?? Docker 鏡像:ghcr.io/aas-ee/open-web-search:latest
如果你覺得這個項目對你有幫助,請 Star 一下再走 ??,你的支持是我繼續迭代的最大動力!
?? 一句話總結:
「Open-WebSearch MCP:讓你的 AI 插件真正實現聯網搜索,開源、免費、靈活、強大。」
