MCP Search Server
Provides search capabilities via Baidu's search engine, enabling web searches with results aggregated across multiple engines.
Provides search capabilities via Brave Search, enabling web searches with results aggregated across multiple engines.
Provides search capabilities via DuckDuckGo, enabling web searches with results aggregated across multiple engines.
Provides search capabilities for code repositories via GitHub search, enabling code searches with results aggregated across multiple engines.
Provides search capabilities via Sogou search engine, enabling web searches with results aggregated across multiple engines.
Provides search capabilities for Zhihu content via targeted search, enabling content searches with results aggregated across multiple engines.
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., "@MCP Search Serversearch for the latest AI research papers"
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.
MCP Search Server
English | 中文
多引擎聚合搜索本地 MCP 服务器 — 9 引擎并行 + 模糊去重 + 网页正文提取 + 深度研究 + 自定义场景 + 自定义搜索引擎。
兼容 Cursor · Claude Desktop · Continue.dev · Windsurf · Trae
隐私安全 · 零 API 费用 · 完全开源 · 可部署内网
目录
Related MCP server: serpent
功能特性
多引擎并行 — 同时调用 8+ 个搜索引擎;
Promise.allSettled确保单引擎失败不影响整体深度研究 —
research一键搜索 → 抓取 → 综合结论复合工具 —
search_and_fetch搜索同时抓取正文搜索会话 — 结果持久化,
refine二次过滤(引擎/关键词/域名/分页)搜索场景 — 6 种预设(general / tech / chinese / code / fast / deep)+ 环境变量自定义
结果聚合 — 模糊去重(Jaccard 标题相似度 + URL 去重)、关联性评分排序、引擎均衡输出
结构化输出 — 每条结果附带
score、publishedDate、domain,末尾嵌入 JSON查询扩展 — 结果不足时自动用同义词扩展查询,提升召回率
无用过滤 — 剔除广告词、导航词、跟踪参数/域名、短摘要、错误页面
网页抓取 — 使用 Mozilla Readability 提取正文,自动删除重复段落、版权声明、尾部推荐
磁盘缓存 — 5 分钟 TTL,重复查询秒级响应
熔断保护 — 引擎连续失败后自动冷却 30 秒,成功后全额重置
自定义搜索引擎 — 通过 JSON 配置文件添加任意 HTML 引擎(CSS 选择器驱动)
反爬增强 — 8 组浏览器指纹轮换、按域名频率限制、自定义请求头、代理支持
浏览器隐身 — 隐藏
navigator.webdriver、随机 UA/视口、Chrome stealth 启动参数无头浏览器 — 设置
HEADLESS_BROWSER=true启用 Puppeteer,知乎直连搜索绕过 403MCP 协议 — 标准 stdio 传输,Cursor / Claude Desktop 即插即用
隐私安全 — 全部本地运行,搜索记录不经过任何第三方服务器
零 API 费用 — 直接调用免费搜索引擎,无需付费 API
搜索引擎
引擎 | 类型 | 说明 |
| 通用 | 微软必应,中文搜索结果较好 |
| 通用 | 百度搜索(Cookie 热身后调用) |
| 通用 | 360 搜索(so.com),国内可用 |
| 通用 | 搜狗搜索(反爬限制较严) |
| 通用 | DuckDuckGo(国内网络可能被阻断) |
| 通用 | Brave Search(支持 API 密钥) |
| 代码 | GitHub 仓库搜索 |
| 内容 | 知乎(浏览器模式直连 / Bing |
| 技术 | CSDN 博客搜索(API 直连,无需浏览器) |
自定义 | 通用 | 通过 |
默认启用:bing baidu 360 github zhihu csdn
国内网络:sogou / duckduckgo / brave 可能失效,可用
SEARCH_DISABLED_ENGINES禁用。
快速开始
直接运行
git clone https://github.com/ZhenMoon/mcp-search-server.git
cd mcp-search-server
npm install
npm run buildDocker 一键部署
# 构建镜像
docker compose build
# 启动(前台运行,MCP stdio 模式)
docker compose run --rm mcp-search
# 或在后台运行
docker compose up -d客户端配置(Docker):
{
"mcpServers": {
"mcp-search": {
"command": "docker",
"args": ["compose", "run", "--rm", "mcp-search"]
}
}
}使用自定义配置文件:
# 创建配置目录
mkdir config
cp mcp-search-config.example.jsonc config/mcp-search-config.json
# 编辑 config/mcp-search-config.json 后启动
docker compose run --rm mcp-search环境变量通过 .env 文件或 docker-compose.yml 中的 environment 设置。支持所有 环境变量。
客户端配置
在 MCP 客户端配置中添加以下条目(将 <path> 替换为实际路径):
{
"mcpServers": {
"mcp-search": {
"command": "node",
"args": ["<path>/mcp-search-server/build/index.js"]
}
}
}配置文件位置:
客户端 | 配置文件路径 |
Cursor |
|
Claude Desktop |
|
Continue.dev |
|
Windsurf / Trae | 在 MCP 配置中添加相同 command/args |
环境变量
变量 | 说明 | 示例 |
| 启用指定引擎(逗号分隔) |
|
| 禁用指定引擎 |
|
| 自定义搜索场景引擎列表 |
|
| 配置文件路径 |
|
| HTTP 代理 |
|
| 启用无头浏览器 |
|
| Brave Search API 密钥 |
启用无头浏览器后:
知乎引擎通过 Puppeteer 直连知乎搜索,绕过 403 限制
自动获取本地 Chrome 的用户数据和 cookies(登录态共享),可绕过部分验证码
如果 Chrome 已在运行,自动使用独立 profile 启动新实例
国内网络建议:
SEARCH_DISABLED_ENGINES=duckduckgo,brave,sogou node build/index.js配置文件
在项目根目录创建 mcp-search-config.json(或 .jsonc 支持注释),可实现:
自定义搜索引擎
添加任意支持 HTML 抓取的搜索引擎,使用 CSS 选择器提取结果:
{
"customEngines": [
{
"name": "mysearch",
"displayName": "MySearch",
"searchUrl": "https://example.com/search?q={query}&page={page}",
"selectors": {
"item": ".result-item",
"title": "h2 a",
"url": "h2 a@href",
"description": ".desc"
},
"headers": { "Referer": "https://example.com/" },
"pageParam": "page",
"startPage": 1
}
]
}占位符:{query}、{encodedQuery}、{page}。详细示例见 mcp-search-config.example.jsonc。
频率限制
按域名设置请求间隔(毫秒),避免触发反爬:
{
"rateLimits": {
"baidu.com": { "minDelay": 1000, "maxDelay": 3000 },
"so.com": { "minDelay": 800, "maxDelay": 2000 }
}
}额外请求头
按域名附加自定义请求头:
{
"extraHeaders": {
"baidu.com": {
"Referer": "https://www.baidu.com/",
"Connection": "keep-alive"
}
}
}MCP 工具
search — 多引擎聚合搜索
参数 | 类型 | 默认值 | 说明 |
|
| 必填 | 搜索关键词(支持 |
|
|
| 最大返回结果数(1–50) |
|
| 默认 5 引擎 | 搜索引擎列表(内置 + 自定义) |
|
|
| 搜索超时(毫秒) |
|
| — | 搜索场景: |
返回结果包含 【会话ID】 和末尾 JSON 结构化数据(score、publishedDate、domain)。
refine — 精炼搜索结果
参数 | 类型 | 默认值 | 说明 |
|
| 必填 |
|
|
| — | 按引擎过滤,逗号分隔 |
|
| — | 关键词过滤 |
|
| — | 域名过滤 |
|
|
| 偏移量 |
|
|
| 返回数量 |
search_profiles — 列出可用搜索场景
无参数。
search_engines — 列出可用搜索引擎(含自定义)
无参数。
custom_engines — 列出已配置的自定义引擎
无参数。显示自定义引擎的名称、URL 模板和选择器。
fetch — 抓取网页正文
参数 | 类型 | 默认值 | 说明 |
|
| 必填 | 网页 URL |
|
|
| 抓取超时(毫秒) |
|
|
| 返回内容最大长度 |
search_and_fetch — 搜索 + 抓取正文
参数 | 类型 | 默认值 | 说明 |
|
| 必填 | 搜索关键词 |
|
|
| 搜索结果数 |
|
|
| 抓取前 N 条正文 |
|
| 默认 5 引擎 | 搜索引擎列表(内置 + 自定义) |
|
|
| 超时(毫秒) |
|
| — | 搜索场景 |
research — 深度研究(搜索 → 抓取 → 综合报告)
参数 | 类型 | 默认值 | 说明 |
|
| 必填 | 研究主题 |
|
|
| 搜索结果数 |
|
|
| 深入阅读前 N 条 |
|
| 默认 5 引擎 | 搜索引擎列表(内置 + 自定义) |
|
|
| 超时(毫秒) |
analyze — 搜索结果分析(对比 / 正反面 / 综合)
参数 | 类型 | 默认值 | 说明 |
|
| 必填 | 要分析的主题或问题 |
|
|
| 分析模式: |
|
| 默认 5 引擎 | 搜索引擎列表(内置 + 自定义) |
|
|
| 搜索超时(毫秒) |
项目结构
mcp-search-server/
├── src/
│ ├── index.ts # MCP 服务器入口(9 个工具)
│ ├── types.ts # 类型定义
│ ├── aggregator.ts # 多引擎聚合 + 去重 + 排序 + 元数据
│ ├── config.ts # 配置文件加载(JSON/JSONC)
│ ├── customEngine.ts # 配置驱动的通用搜索引擎
│ ├── metadata.ts # 时间/域名提取、JSON 格式化
│ ├── browser.ts # 无头浏览器管理 + 隐身增强
│ ├── cache.ts # 磁盘缓存 (TTL 5min)
│ ├── circuitBreaker.ts # 引擎熔断保护
│ ├── dedupContent.ts # 网页正文去重
│ ├── filter.ts # 无用信息过滤
│ ├── queryExpander.ts # 同义词查询扩展
│ ├── queryAdapter.ts # 引擎查询语法适配
│ ├── fetcher.ts # 网页抓取 (Readability + 轮换 UA)
│ ├── scraper.ts # 反爬共享工具(指纹轮换、代理、频率限制)
│ ├── searchContext.ts # 搜索结果会话管理 + 搜索场景
│ ├── session.ts # Cookie 会话管理 + 磁盘持久化
│ └── engines/
│ ├── bing.ts # 必应
│ ├── baidu.ts # 百度
│ ├── 360.ts # 360 搜索
│ ├── sogou.ts # 搜狗
│ ├── duckduckgo.ts # DuckDuckGo
│ ├── brave.ts # Brave Search
│ ├── github.ts # GitHub
│ └── zhihu.ts # 知乎(浏览器直连 / Bing site: 回退)
├── mcp-search-config.example.json # 配置示例(纯净 JSON)
├── mcp-search-config.example.jsonc # 配置示例(JSONC,含注释)
├── package.json
├── tsconfig.json
├── README.md # 中文文档
└── README.en.md # English使用示例
搜索 + 抓取组合使用:
search("Rust 语言 入门教程", maxResults: 5)
fetch("https://rustwiki.org/zh-CN/book/")
指定引擎(含自定义):
search(engines: ["bing", "mysearch"], query: "Vue.js 教程")
深度研究:
research("Rust vs Go 性能对比", maxResults: 8, fetchCount: 3)
结果分析:
analyze("量子计算最新进展", mode: "正反面", engines: ["bing", "zhihu"])
环境变量自定义:
SEARCH_ENGINES=bing,github node build/index.js
配置文件 (mcp-search-config.json):
export SEARCH_CONFIG_PATH=/etc/mcp-search-config.jsonLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenance🔍 High-Availability Multi-Engine Search Aggregation MCP Server - Intelligent Failover, Unified API, LLM-Optimized Content Processing.Last updated1MIT
- AlicenseAquality-maintenanceA metasearch backend MCP server that aggregates results from multiple search engines and knowledge sources into structured JSON for AI agents. It provides unified search capabilities across web, academic, developer, and knowledge providers through MCP tools.Last updated515
- AlicenseAqualityCmaintenanceA smart MCP server for multi-engine web search with AI-powered results, supporting 6 search engines and web content extraction.Last updated2MIT
- Alicense-qualityCmaintenanceAn MCP server that aggregates web search results from multiple engines and optionally renders pages to Markdown, providing a unified search interface.Last updated93ISC
Related MCP Connectors
Multi-engine search for AI agents. Trust scoring, local corpus, MCP-native. Self-hostable, BYOK.
MCP server for Google search results via SERP API
Hosted MCP: 795 structured web-data tools for search, maps, commerce, social, gaming & finance.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZhenMoon/mcp-search-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server