The Wuxing Search MCP server provides unlimited, privacy-focused web search by aggregating results from 100+ search engines (Google, Bing, DuckDuckGo, Wikipedia, GitHub, Stack Overflow, etc.) via a self-hosted SearXNG instance, with no API rate limits, quotas, or costs.
Key capabilities:
web_search— Perform web searches with full control over:query: any keyword or phraseresults: number of results (1–100, default 20)category:general,images,videos,news,it,science,files,social,map, ormusiclanguage: e.g.,en,zh,alltime_range:day,week,month,year, ornonesafesearch:0(off),1(moderate), or2(strict)Returns structured results with title, URL, content snippet, source engine, and relevance score
get_server_info— Check server status and version details (no parameters required)
Additional highlights:
Seamless MCP integration with Claude Code, Cursor, Windsurf, and other AI IDEs
Self-hosted via Docker with no tracking or logging — all data stays on your machine
Cross-platform support (Windows, macOS, Linux)
Provides the ability to query Brave Search for web content through the aggregated search service.
Allows performing web searches using DuckDuckGo results via the privacy-focused meta-search aggregator.
Facilitates searching for code repositories and developer-focused content on GitHub.
Enables searching Google for web results, news, and images through the meta-search aggregation interface.
Interfaces with a SearXNG instance to provide unlimited, privacy-friendly meta-search capabilities by aggregating results from over 100 different search engines.
Allows searching for programming solutions and technical discussions on Stack Overflow.
Enables searching and retrieving articles and encyclopedic information from Wikipedia.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Wuxing Search MCPsearch for the latest news about OpenAI's o3 model from this week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
什么是 Wuxing Search MCP?
Wuxing Search MCP 是一个基于 SearXNG 构建的强大无限制搜索服务器。它通过模型上下文协议与 Claude Code 无缝集成,通过聚合 100+ 搜索引擎的结果,提供免费且无限制的搜索能力。
为什么选择 Wuxing Search?
传统搜索 API 存在限制:
❌ 速率限制和配额
❌ 昂贵的 API 成本
❌ 单一来源的结果
Wuxing Search 解决了所有这些问题:
✅ 完全免费 - 自建 SearXNG,无 API 成本
✅ 无限制搜索 - 禁用速率限制器,支持高频搜索
✅ 多源聚合 - Google、Bing、DuckDuckGo、Brave 等 100+ 引擎
✅ 隐私友好 - 无追踪,无记录
✅ MCP 集成 - 完美适配 Claude Code 工作流
架构说明
功能特点
✨ 当前功能
🔍 无限制网页搜索
无 API 速率限制或配额
支持高频搜索
可配置结果数量(1-100)
🌐 多源聚合
Google、Bing、DuckDuckGo、Brave
Wikipedia、GitHub、Stack Overflow
支持 100+ 搜索引擎
📊 高级搜索选项
时间范围过滤(天、周、月、年)
类别过滤(通用、图片、视频、新闻、IT、科学、文件、社交)
语言过滤
安全搜索级别
🔌 MCP 集成
与 Claude Code 无缝集成
stdio 通信(MCP 不需要网络端口)
JSON-RPC 2.0 协议
🐳 简单部署
基于 Docker 的 SearXNG 部署
一键安装
跨平台支持(Windows、macOS、Linux)
🔒 隐私优先
无追踪,无记录
自托管,数据不离开你的机器
通过 SearXNG 匿名搜索
快速开始
4 个简单步骤即可开始:
前置要求
1. 克隆项目
2. 安装依赖
3. 启动 SearXNG
方式 A:使用 Docker 命令(推荐)
方式 B:使用 Docker Compose
4. 配置 Claude Code
找到你的 Claude Code 配置文件:
Windows:
macOS / Linux:
添加以下配置(更新路径为你的实际项目位置):
重要提示:
将
D:\\path\\to\\wuxing-search-mcp\\src\\index.js替换为你的实际项目路径Windows 路径使用双反斜杠
\\macOS/Linux 路径使用正斜杠
/
5. 重启 Claude Code
完全退出并重新打开 Claude Code。
使用方法
基础搜索
在 Claude Code 中直接输入:
高级搜索参数
你也可以指定参数:
可用工具
1. web_search
执行网页搜索并返回结果。
参数 | 说明 | 必需 | 默认值 |
| 搜索关键词 | 是 | - |
| 返回结果数量(1-100) | 否 | 20 |
| 搜索类别 | 否 | general |
| 语言代码 | 否 | all |
| 时间范围过滤器 | 否 | none |
| 安全搜索级别(0-2) | 否 | 1 |
类别选项:
general- 通用搜索images- 图片搜索videos- 视频搜索news- 新闻搜索it- IT 技术science- 科学files- 文件social- 社交媒体
时间范围选项:
day- 过去 24 小时week- 过去一周month- 过去一月year- 过去一年none- 无时间过滤
2. get_server_info
获取搜索服务器状态信息。无参数。
使用示例
示例 1:搜索文档
示例 2:搜索最新内容
示例 3:搜索特定类别
示例 4:查询服务器状态
管理命令
NPM 命令
Docker 命令
配置选项
通过环境变量配置 MCP Server:
变量 | 说明 | 默认值 |
| SearXNG 服务地址 | |
| 默认返回结果数 | 20 |
| 请求超时时间(毫秒) | 30000 |
在 Claude Code 配置的 env 字段中添加这些变量来自定义行为。
故障排查
问题 1:搜索工具不显示或报错
检查清单:
✅ SearXNG 容器是否运行?
docker ps | grep wuxing-searxng✅ SearXNG 服务是否正常?
curl http://localhost:18080✅ 配置文件路径是否正确(使用绝对路径)?
✅ Node.js 版本是否 >= 18?
node --version✅ Claude Code 是否已重启?
问题 2:SearXNG 容器无法启动
检查:
端口 18080 是否被占用?
# Windows netstat -ano | findstr :18080 # Linux/Mac lsof -ti:18080Docker 服务是否运行?
查看容器日志:
docker logs wuxing-searxng
解决方案:
问题 3:搜索返回连接错误
可能原因:SearXNG 服务尚未完全启动
解决方案:
问题 4:结果包含旧内容
原因:时间过滤依赖搜索引擎的支持
解决方案:
使用更短的时间范围(
day而非week)在 query 中添加明确的时间关键词(如
2025年1月)结合使用:
请搜索 2025年1月的 React 新特性
技术架构
MCP Server(Node.js)
文件:
src/index.js依赖:@modelcontextprotocol/sdk, axios
通信:stdio(标准输入/输出)
作用:实现 MCP 协议,转发请求到 SearXNG
SearXNG(Python/Docker)
镜像:searxng/searxng:latest
端口:18080(主机)→ 8080(容器)
配置:searxng/config/settings.yml
数据:searxng/data/(缓存)
作用:聚合 100+ 搜索引擎
数据流
项目结构
常见问题
Q: 为什么需要 Docker?
A: SearXNG 是 Python 项目,依赖 50+ 个 Python 包。Docker 提供:
避免复杂的手动依赖安装
环境隔离
简化部署和更新
Q: 可以不用 Docker 吗?
A: 理论上可以,但不推荐。你需要:
安装 Python 3.14
手动安装 50+ Python 依赖
配置 Python 环境
Docker 方案更简单可靠。
Q: 搜索有限额吗?
A: 没有!这是本项目的核心优势:
完全自托管
无 API 调用限制
无请求速率限制
Q: 支持哪些搜索引擎?
A: SearXNG 支持 100+ 搜索引擎,包括:
通用:Brave、DuckDuckGo、Google、Bing
百科:Wikipedia、Brave Encyclopedia
技术:GitHub、Stack Overflow、NPM
视频:YouTube、Dailymotion、Vimeo
文件:KickassTorrent、1337x
等等...
Q: 搜索质量如何?
A: 取决于启用的搜索引擎。默认配置已包含主流搜索引擎,质量较好。如需调整,可编辑 searxng/config/settings.yml。
贡献
欢迎社区贡献!你可以这样帮助我们:
Fork 本仓库
创建 功能分支(
git checkout -b feature/amazing-feature)提交 更改(
git commit -m 'Add amazing feature')推送 到分支(
git push origin feature/amazing-feature)打开 Pull Request
贡献方式
改进搜索引擎配置
为 MCP Server 添加新功能
报告 bug 和问题
建议新功能
改进文档
分享你的反馈
资源
📚 文档
安装指南 - 详细安装说明
SearXNG 文档 - SearXNG 官方文档
MCP 规范 - 模型上下文协议
🌐 官方网站
Wuxing Codes 博客 - 最新更新和教程
💬 社区
GitHub Issues - 报告问题
GitHub Discussions - 提问
许可证
MIT License - 详见 LICENSE 文件。
致谢
基于开源项目 SearXNG 构建
为 Claude Code 社区打造
属于 Wuxing Codes 生态系统的一部分
由 Wuxing 团队用 ❤️ 制作
⭐ 在 GitHub 上给我们加星 —— 这对我们很有帮助!