loading…
Search for a command to run...
loading…
A privacy-focused search server built on SearXNG that provides unlimited, multi-source web searching across 100+ engines. It enables AI tools to perform advance
A privacy-focused search server built on SearXNG that provides unlimited, multi-source web searching across 100+ engines. It enables AI tools to perform advanced searches with specialized filters for time, language, and content categories without API costs or rate limits.
兼容 Claude Code、Cursor、Windsurf 和其他 AI 驱动的 IDE
基于 SearXNG 的无限制搜索 MCP Server
一个强大的无限制搜索服务器,聚合 100+ 搜索引擎
功能特点 • 快速开始 • 安装 • 使用方法 • 管理命令 • 故障排查
Wuxing Search MCP 是一个基于 SearXNG 构建的强大无限制搜索服务器。它通过模型上下文协议与 Claude Code 无缝集成,通过聚合 100+ 搜索引擎的结果,提供免费且无限制的搜索能力。
传统搜索 API 存在限制:
Wuxing Search 解决了所有这些问题:
┌─────────────┐ ┌──────────────┐ ┌─────────────┐ ┌─────────────┐
│ 你 │ ───▶ │ Claude Code │ ───▶ │ Wuxing │ ───▶ │ SearXNG │
│ (用户) │ │ (MCP 客户端) │ │ Search MCP │ │ (Docker) │
└─────────────┘ └──────────────┘ │ (Node.js) │ │ (Python) │
└──────────────┘ └─────────────┘
│
▼
┌───────────────────────────┐
│ 搜索引擎聚合 (13+) │
│ 通用: Google, Bing... │
│ 代码: GitHub, HuggingFace│
│ 问答: StackOverflow │
│ 包: npm, PyPI │
│ 学术: arXiv │
│ 社区: HN, Reddit │
│ 以及 100+ 更多... │
└───────────────────────────┘
🔍 无限制网页搜索
🌐 多源聚合
📊 高级搜索选项
🔌 MCP 集成
🐳 简单部署
🔒 隐私优先
4 个简单步骤即可开始:
git clone https://github.com/MaesHughes/wuxing-search-mcp.git
cd wuxing-search-mcp
npm install
方式 A:使用 Docker 命令(推荐)
docker run -d \
--name wuxing-searxng \
--restart unless-stopped \
-p 18080:8080 \
-v "$(pwd)/searxng/config:/etc/searxng/" \
-v "$(pwd)/searxng/data:/var/cache/searxng/" \
searxng/searxng:latest
方式 B:使用 Docker Compose
docker-compose up -d
找到你的 Claude Code 配置文件:
Windows:
%APPDATA%\Claude\claude_desktop_config.json
macOS / Linux:
~/.config/Claude/claude_desktop_config.json
在项目目录下运行以下命令获取绝对路径:
Windows (PowerShell):
Resolve-Path src\index.js
Windows (Git Bash / Bash):
pwd -W && echo "/src/index.js"
# 或手动拼接:$(pwd -W)/src/index.js
macOS / Linux:
pwd && echo "/src/index.js"
# 或手动拼接:$(pwd)/src/index.js
在配置文件中添加以下配置,⚠️ 务必替换 YOUR_FULL_PATH_HERE 为上一步获取的实际路径:
{
"mcpServers": {
"wuxing-search": {
"type": "stdio",
"command": "cmd",
"args": [
"/c",
"node",
"D:\\\\path\\\\to\\\\wuxing-search-mcp\\\\src\\\\index.js"
],
"env": {
"SEARXNG_URL": "http://localhost:18080",
"MAX_RESULTS": "20",
"TIMEOUT": "30000"
}
}
}
}
{
"mcpServers": {
"wuxing-search": {
"type": "stdio",
"command": "node",
"args": [
"/home/username/wuxing-search-mcp/src/index.js"
],
"env": {
"SEARXNG_URL": "http://localhost:18080",
"MAX_RESULTS": "20",
"TIMEOUT": "30000"
}
}
}
}
配置说明:
| 配置项 | Windows | macOS/Linux | 说明 |
|---|---|---|---|
type |
"stdio" |
"stdio" |
通信协议类型 |
command |
"cmd" |
"node" |
Windows 使用 cmd 包装器 |
args |
["/c", "node", "路径..."] |
["路径..."] |
路径必须使用绝对路径 |
env.SEARXNG_URL |
SearXNG 服务地址 | - | 默认 http://localhost:18080 |
env.MAX_RESULTS |
默认返回结果数 | - | 默认 20,范围 1-100 |
env.TIMEOUT |
请求超时时间(毫秒) | - | 默认 30000 |
⚠️ 重要提示:
\\\\(JSON 格式要求)/(Windows 也支持)完全退出并重新打开 Claude Code。
在 Claude Code 中直接输入:
请搜索最新的 AI 编程工具
你也可以指定参数:
请搜索最近一周的 React 教程,返回 10 条结果
执行网页搜索并返回结果。
| 参数 | 说明 | 必需 | 默认值 |
|---|---|---|---|
query |
搜索关键词 | 是 | - |
max_results |
返回结果数量(1-100) | 否 | 20 |
category |
搜索类别 | 否 | general |
language |
语言代码 | 否 | all |
time_range |
时间范围过滤器 | 否 | none |
safesearch |
安全搜索级别(0-2) | 否 | 1 |
类别选项:
general - 通用搜索images - 图片搜索videos - 视频搜索news - 新闻搜索it - IT 技术science - 科学files - 文件social - 社交媒体时间范围选项:
day - 过去 24 小时week - 过去一周month - 过去一月year - 过去一年none - 无时间过滤获取搜索服务器状态信息。无参数。
请搜索 GitHub 上热门的 AI agent 项目
在 Stack Overflow 上搜索 MCP 连接错误的解决方案
请搜索 arXiv 上关于多智能体协作的最新论文
在 PyPI 上搜索 LangChain agents 相关的包
请搜索 HackerNews 上关于 AI 编程的讨论
查询搜索服务器状态
# 查看 SearXNG 状态
npm run status:searxng
# 查看 SearXNG 日志
npm run logs:searxng
# 重启 SearXNG
npm run restart:searxng
# 停止 SearXNG
npm run stop:searxng
# 启动 SearXNG
npm run start:searxng
# 测试搜索服务
npm run test:searxng
# 查看容器状态
docker ps | grep wuxing-searxng
# 查看实时日志
docker logs -f wuxing-searxng
# 重启服务
docker restart wuxing-searxng
# 停止服务
docker stop wuxing-searxng
# 启动服务
docker start wuxing-searxng
# 删除并重建
docker stop wuxing-searxng && docker rm wuxing-searxng
# 然后重新运行启动命令
通过环境变量配置 MCP Server:
| 变量 | 说明 | 默认值 |
|---|---|---|
SEARXNG_URL |
SearXNG 服务地址 | http://localhost:18080 |
MAX_RESULTS |
默认返回结果数 | 20 |
TIMEOUT |
请求超时时间(毫秒) | 30000 |
在 Claude Code 配置的 env 字段中添加这些变量来自定义行为。
检查清单:
✅ SearXNG 容器是否运行?
docker ps | grep wuxing-searxng
✅ SearXNG 服务是否正常?
curl http://localhost:18080
✅ 配置文件路径是否正确(使用绝对路径)?
✅ Node.js 版本是否 >= 18?
node --version
✅ Claude Code 是否已重启?
检查:
端口 18080 是否被占用?
# Windows
netstat -ano | findstr :18080
# Linux/Mac
lsof -ti:18080
Docker 服务是否运行?
查看容器日志:
docker logs wuxing-searxng
解决方案:
# 删除旧容器并重新创建
docker stop wuxing-searxng && docker rm wuxing-searxng
# 然后重新运行启动命令
可能原因:SearXNG 服务尚未完全启动
解决方案:
# 等待 5-10 秒后重试
# 或重启 SearXNG
docker restart wuxing-searxng
原因:时间过滤依赖搜索引擎的支持
解决方案:
day 而非 week)2025年1月)请搜索 2025年1月的 React 新特性
src/index.js用户输入
→ Claude Code
→ MCP Server (stdio)
→ HTTP 请求到 SearXNG
→ 并发请求到各搜索引擎
→ 聚合结果
→ 返回给用户
wuxing-search-mcp/
├── src/ # MCP Server 源码
│ └── index.js # MCP Server 主实现
├── searxng/ # SearXNG 配置
│ ├── config/ # SearXNG settings.yml
│ └── data/ # SearXNG 缓存(自动创建)
├── assets/ # 文档图片
│ └── banner.png # 项目横幅
├── package.json # NPM 包配置
├── docker-compose.yml # Docker Compose 配置
├── install.sh # Linux/Mac 安装脚本
├── install.ps1 # Windows 安装脚本
├── README.md # 英文版
├── README.zh-CN.md # 中文版(本文件)
└── INSTALL.md # 详细安装指南
A: SearXNG 是 Python 项目,依赖 50+ 个 Python 包。Docker 提供:
A: 理论上可以,但不推荐。你需要:
Docker 方案更简单可靠。
A: 没有!这是本项目的核心优势:
A: SearXNG 支持 245 个搜索引擎,默认启用 89 个。
当前已启用的 21 个引擎:
| 类别 | 搜索引擎 |
|---|---|
| 通用搜索 | Google, Bing, DuckDuckGo, Baidu |
| 代码仓库 | GitHub, Hugging Face, GitLab |
| 技术问答 | Stack Overflow |
| 包管理器 | npm, PyPI, crates.io, Docker Hub |
| 学术论文 | arXiv, Google Scholar, Semantic Scholar, PubMed |
| 开发者社区 | HackerNews, Reddit, Mastodon |
| 开发文档 | MDN Web Docs |
| 新闻源 | Google News |
其他可用引擎(可在配置中启用):
A: 取决于启用的搜索引擎。默认配置已包含主流搜索引擎,质量较好。如需调整,可编辑 searxng/config/settings.yml。
欢迎社区贡献!你可以这样帮助我们:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)MIT License - 详见 LICENSE 文件。
由 Wuxing 团队用 ❤️ 制作
⭐ 在 GitHub 上给我们加星 —— 这对我们很有帮助!
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"wuxing-search-mcp": {
"command": "npx",
"args": []
}
}
}