hmily09013 发表于 2025-8-22 14:21:10

🚀开源 AI 联网搜索工具:Open-WebSearch MCP 全新升级,支持多引擎 + 流式响应!

<h1>开源 AI 联网搜索工具:Open-WebSearch MCP 全新升级,支持多引擎 + 流式响应!</h1>
<blockquote>
<p>「让你的 AI 插件真正能联网」—— 不需要 API Key,搜索结果可控、开箱即用!</p>
</blockquote>
<p>大家好,我最近开源了一个 AI 插件开发工具 —— <strong>Open-WebSearch MCP</strong>。这个项目旨在解决 AI 在实际应用中<strong>无法联网</strong>或<strong>联网费用高昂</strong>的问题,特别适合在 Claude、LangChain、RAG 方案中添加“实时搜索”能力。</p>
<hr />
<h2>在线测试</h2>
<ul>
<li>目前有部署到 smithery.ai:https://smithery.ai/server/@Aas-ee/open-websearch 可以在线试用</li>
<li>也部署到魔塔里了,欢迎试用,但是 duckduckgo 和 brave 没梯子好像没法访问 ,https://www.modelscope.cn/mcp/servers/Aasee1/open-webSearch</li>
</ul>
<h2>项目亮点一览</h2>
<p><strong>多引擎实时搜索</strong></p>
<ul>
<li>支持 <code>Bing</code>、<code>百度</code>、<code>CSDN</code></li>
<li>新增 <code>DuckDuckGo</code>、<code>Exa</code>、<code>Brave</code></li>
<li>支持HTTP代理配置,轻松解决网络访问限制</li>
<li>可自定义默认搜索引擎</li>
<li>可配置引擎组合搜索,获取更全面的内容</li>
</ul>
<p><strong>流式响应(MCP协议)</strong></p>
<ul>
<li>完美兼容 Claude 插件(MCP)协议</li>
<li>更新为支持 <code>streamableHttp</code> 和 <code>SSE</code> 两种方式返回搜索结果,体验丝滑流畅</li>
</ul>
<p><strong>文章正文抓取</strong></p>
<ul>
<li>支持提取 CSDN 博客文章全文</li>
</ul>
<p><strong>完全免费 &amp; 无需 API Key</strong></p>
<ul>
<li>不再依赖 Bing API / Google Custom Search</li>
<li>可自托管,无额度限制,数据可控</li>
</ul>
<p><strong>Docker 一键部署</strong></p>
<ul>
<li>提供 <code>docker-compose</code> 和镜像:Package open-web-search · GitHub</li>
</ul>
<hr />
<h2>如何使用?</h2>
<h3>安装非常简单:</h3>
<pre><code class="language-bash">git clone https://github.com/Aas-ee/open-webSearch
cd open-webSearch
npm install
npm run build
node build/index.js
</code></pre>
<h3>或者直接使用 Docker 启动:</h3>
<pre><code class="language-bash">docker run -d \
--name web-search \
-p 3000:3000 \
-e ENABLE_CORS=true \
-e CORS_ORIGIN=* \
ghcr.io/aas-ee/open-web-search:latest
</code></pre>
<h3>配置环境变量说明(可选):</h3>
<pre><code class="language-bash"># 启用CORS (默认: false)
ENABLE_CORS=true

# CORS来源配置 (默认: *)
CORS_ORIGIN=*

# 默认搜索引擎 (可选值: bing, duckduckgo, exa, brave,默认: bing)
DEFAULT_SEARCH_ENGINE=duckduckgo

# 启用HTTP代理 (默认: false)
USE_PROXY=true

# 代理服务器URL (默认: http://127.0.0.1:10809)
PROXY_URL=http://your-proxy-server:port
</code></pre>
<blockquote>
<p>配合 Claude Dev Extension、Claude Desktop、Cherry Studio 使用效果更佳!</p>
</blockquote>
<hr />
<h2>MCP 客户端配置指南</h2>
<h3>Cherry Studio</h3>
<pre><code class="language-json">{
&quot;mcpServers&quot;: {
    &quot;web-search&quot;: {
      &quot;name&quot;: &quot;Web Search MCP&quot;,
      &quot;type&quot;: &quot;streamableHttp&quot;,
      &quot;description&quot;: &quot;Multi-engine web search with article fetching&quot;,
      &quot;baseUrl&quot;: &quot;http://localhost:3000/mcp&quot;
    },
    &quot;web-search-sse&quot;: {
      &quot;name&quot;: &quot;Web Search SSE&quot;,
      &quot;type&quot;: &quot;sse&quot;,
      &quot;description&quot;: &quot;SSE version of web search&quot;,
      &quot;url&quot;: &quot;http://localhost:3000/sse&quot;
    }
}
}
</code></pre>
<h3>Claude Dev Extension (VSCode</h3>
<pre><code class="language-json">{
&quot;mcpServers&quot;: {
    &quot;web-search&quot;: {
      &quot;transport&quot;: {
      &quot;type&quot;: &quot;streamableHttp&quot;,
      &quot;url&quot;: &quot;http://localhost:3000/mcp&quot;
      }
    },
    &quot;web-search-sse&quot;: {
      &quot;transport&quot;: {
      &quot;type&quot;: &quot;sse&quot;,
      &quot;url&quot;: &quot;http://localhost:3000/sse&quot;
      }
    }
}
}
</code></pre>
<h3>Claude Desktop</h3>
<pre><code class="language-json">{
&quot;mcpServers&quot;: {
    &quot;web-search&quot;: {
      &quot;transport&quot;: {
      &quot;type&quot;: &quot;streamableHttp&quot;,
      &quot;url&quot;: &quot;http://localhost:3000/mcp&quot;
      }
    },
    &quot;web-search-sse&quot;: {
      &quot;transport&quot;: {
      &quot;type&quot;: &quot;sse&quot;,
      &quot;url&quot;: &quot;http://localhost:3000/sse&quot;
      }
    }
}
}
</code></pre>
<blockquote>
<p>如果你是 Docker 部署,请把 <code>localhost</code> 换成实际 IP 地址</p>
</blockquote>
<hr />
<h2>MCP 工具支持</h2>
<h3>多引擎搜索工具</h3>
<pre><code class="language-typescript">{
query: &quot;Claude 插件开发&quot;,
limit: 5,
engines: [&quot;bing&quot;, &quot;duckduckgo&quot;]
}
</code></pre>
<p>返回结构化数据(标题、URL、摘要、来源)</p>
<hr />
<h3>fetchCsdnArticle:提取 CSDN 文章全文</h3>
<pre><code class="language-typescript">{
url: &quot;https://blog.csdn.net/xxx/article/details/xxx&quot;
}
</code></pre>
<p>获取正文,支持摘要分析、RAG、训练语料等场景</p>
<h2>CI/CD:支持 Docker 镜像自动构建发布</h2>
<p>如果你想 Fork 并发布自己的版本,也完全没问题:</p>
<ul>
<li>支持 GitHub Actions 自动构建并发布到:
<ul>
<li>GitHub Container Registry(ghcr.io)</li>
<li>阿里云容器镜像服务(可选配置 ACR)</li>
</ul>
</li>
</ul>
<p>提供详细 CI/CD 配置文档<br />
开发者可自由部署在内网、私有云环境下</p>
<hr />
<h2>后续计划</h2>
<p>支持更多搜索引擎(Google、知乎、Reddit)<br />
支持文档类内容全文抽取(如微信公众号、掘金)</p>
<hr />
<h2>项目地址</h2>
<p>GitHub 地址:https://github.com/Aas-ee/open-webSearch<br />
Docker 镜像:<code>ghcr.io/aas-ee/open-web-search:latest</code></p>
<p>如果你觉得这个项目对你有帮助,请 <strong>Star 一下再走</strong>,你的支持是我继续迭代的最大动力!</p>
<hr />
<h2>一句话总结:</h2>
<blockquote>
<p>「Open-WebSearch MCP:让你的 AI 插件真正实现联网搜索,开源、免费、灵活、强大。」</p>
</blockquote>
<hr />
<details id="post-cooked-html__details-755642-1-0" dir="auto"><summary>
验证效果</summary>
<blockquote>
<p>prompt: 使用websearch工具查询 《Open-WebSearch MCP》,用csdn引擎,查20条记录,告诉我工具返回的engine,以及相关信息,再通过url查询作者是Aasee的文章内容(如果有多篇顺序查询,不要同时查询)。规范输出</p>
</blockquote>
<p>我将使用MCP_search工具查询《Open-WebSearch MCP》并使用CSDN引擎获取20条记录。</p>
<h3>查询结果分析</h3>
<ol>
<li><strong>使用的搜索引擎</strong>: CSDN</li>
<li><strong>总记录数</strong>: 20条</li>
</ol>
<h3>作者Aasee的文章列表</h3>
<p>搜索结果显示有2篇作者是&quot;Aasee.&quot;的文章:</p>
<ol>
<li><strong>文章标题</strong>: “开源 AI 联网搜索工具:Open-WebSearch MCP 全新升级,支持多引擎 + 流式响应!”<br />
<strong>URL</strong>: https://blog.csdn.net/weixin_45801664/article/details/149000138?ops_request_misc=%257B%2522request%255Fid%2522%253A%252203ceec270907178223ab139631d9a81f%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&amp;request_id=03ceec270907178223ab139631d9a81f&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_ecpm_v1~rank_v31_ecpm-1-149000138-null-null.142^v102^pc_search_result_base6&amp;utm_term=Open-WebSearch%20MCP<br />
**简介**: 该项目为AI插件开发提供免费、可控的联网搜索能力,支持Bing、百度、CSDN多引擎组合搜索…</li>
<li><strong>文章标题</strong>: “Web Seach 搜索 MCP 启动!”<br />
<strong>URL</strong>: https://blog.csdn.net/weixin_45801664/article/details/148813614?ops_request_misc=%257B%2522request%255Fid%2522%253A%252203ceec270907178223ab139631d9a81f%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&amp;request_id=03ceec270907178223ab139631d9a81f&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_ecpm_v1~rank_v31_ecpm-4-148813614-null-null.142^v102^pc_search_result_base6&amp;utm_term=Open-WebSearch%20MCP<br />
**简介**: 开源Web搜索MCP服务器Open-WebSearch上线,解决AI模型无法获取最新网络信息的问题…</li>
</ol>
<h3>开始查询第一篇文章内容</h3>
<p>我将先查询第一篇文章的全文内容:</p>
<h1>搜索结果分析</h1>
<h2>工具返回的引擎信息</h2>
<p>使用了CSDN搜索引擎进行查询,返回了20条相关记录。</p>
<h2>作者Aasee的相关文章内容</h2>
<h3>文章1: “开源 AI 联网搜索工具:Open-WebSearch MCP 全新升级,支持多引擎 + 流式响应!”</h3>
<pre><code class="language-bash">🚀 开源 AI 联网搜索工具:Open-WebSearch MCP 全新升级,支持多引擎 + 流式响应!

💡「让你的 AI 插件真正能联网」—— 不需要 API Key,搜索结果可控、开箱即用!

项目亮点一览:
✅ 多引擎实时搜索:支持 Bing、百度、CSDN
✅ 流式响应(MCP协议):兼容 Claude 插件(MCP)协议
✅ 文章正文抓取:支持提取 CSDN 博客文章全文
✅ 完全免费 &amp; 无需 API Key
✅ Docker 一键部署

安装方法:
- Git克隆项目: git clone https://github.com/Aas-ee/open-webSearch
- 或使用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

MCP工具支持:
🔍 search:多引擎搜索工具
📄 fetchCsdnArticle:提取 CSDN 文章全文

项目地址:
🧩 GitHub: https://github.com/Aas-ee/open-webSearch
📦 Docker: ghcr.io/aas-ee/open-web-search:latest
</code></pre>
<h3>文章2: “Web Seach 搜索 MCP 启动!”</h3>
<pre><code class="language-javascript">开源Web搜索MCP服务器Open-WebSearch上线,解决AI模型无法获取最新网络信息的问题。
该项目免费提供百度搜索结果API,支持结构化JSON返回格式,兼容Claude等AI工具的MCP协议。
用户仅需简单安装即可使用,无需API密钥...
</code></pre>
<p>需要查询其他Aasee作者的文章内容吗?我可以继续为您检索。</p>

efrog 发表于 2025-8-22 14:30:51

开源AI联网搜索工具:OpenWebSearch MCP全新升级啦,支持多引擎 + 流式响应!

小快树儿 发表于 2025-8-22 14:39:56

支持支持!

tszqc 发表于 2025-8-22 15:20:56

CSDN(一般在中文语境里,CSDN就是直接使用其英文原名,它是知名的技术社区和开发者平台,没有特定需要按照中文习惯大幅修改。若一定要贴近中文表达习惯,可简单说明为)

CSDN,即“中国软件开发者网络”。

暗果 发表于 2025-8-23 15:30:38

验证效果

暖光希 发表于 2025-8-23 15:36:25

老友太强了

xiaoji1543 发表于 2025-8-23 15:43:29

好东西
已点赞收藏
感谢分享

侧面 发表于 2025-8-25 17:00:03

这工具听着挺牛啊

紫⃰霞⃰狼 发表于 2025-8-29 10:26:32

我稍微一看就知道这工具特别厉害
这不就是搜集知识库的小帮手嘛
就是不知道,比如说我在某个网站有会员,能不能看到会员内容呢
先赞
页: [1]
查看完整版本: 🚀开源 AI 联网搜索工具:Open-WebSearch MCP 全新升级,支持多引擎 + 流式响应!