
一个与SearXNG集成的MCP服务器实现,提供注重隐私的元搜索功能。
概览
一个与SearXNG集成的MCP服务器实现,提供注重隐私的元搜索功能。 - :合并多个搜索引擎的结果 - :无追踪,无用户画像 - 支持通用、新闻、科学、文件、图片、视频等 - :支持特定语言或所有语言搜索 - :按日期、周、月或年份筛选结果 - :三级安全搜索过滤 - :多个SearXNG实例以确保可靠性 1. 在Dive Desktop中点击“+ Add MCP Server” 2.复制粘贴此配置: 3. 点击“保存”以安装MCP服务器 - - 跨多个引擎执行元搜索 - 输入:- 查询(字符串):搜索词 - 页面(编号,可选):页码(默认:1)- 语言(字符串,可选):语言代码(例如:
概述(AI 翻译)
一个与SearXNG集成的MCP服务器实现,提供注重隐私的元搜索功能。
特色
- 元搜索:结合多个搜索引擎的结果
- 隐私为中心:无追踪,无用户画像
- 多类别:支持通用、新闻、科学、文件、图片、视频等
- 语言支持:在特定语言中搜索或所有语言
- 时间范围过滤:按日期、周、月份或年份筛选结果
- 安全搜索:三级安全搜索过滤
- 备援支持:多个SearXNG实例以保证可靠性
安装
用途
直线
使用潜水桌面
-
在Dive Desktop中点击“+ Add MCP Server”
-
复制粘贴此配置:
-
点击“保存”以安装MCP服务器
工具文档
- web_search
- 跨多个引擎执行元搜索
- 输入:
query(字符串):搜索词page(编号,可选):页码(默认:1)language(字符串,可选):语言代码(例如,‘en’,‘all’,默认:‘all’)categories(数组,可选):搜索类别(默认:[‘general’])
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
SearXNG MCP Server
An MCP server implementation that integrates with SearXNG, providing privacy-focused meta search capabilities.
Features
- Meta Search: Combines results from multiple search engines
- Privacy-Focused: No tracking, no user profiling
- Multiple Categories: Support for general, news, science, files, images, videos, and more
- Language Support: Search in specific languages or all languages
- Time Range Filtering: Filter results by day, week, month, or year
- Safe Search: Three levels of safe search filtering
- Fallback Support: Multiple SearXNG instances for reliability
Installation
npm install -g @kevinwatt/mcp-server-searxng
Usage
Direct Run
mcp-server-searxng
With Dive Desktop
- Click “+ Add MCP Server” in Dive Desktop
- Copy and paste this configuration:
{
"mcpServers": {
"searxng": {
"command": "npx",
"args": [
"-y",
"@kevinwatt/mcp-server-searxng"
]
}
}
}
- Click “Save” to install the MCP server
Tool Documentation
- web_search
- Execute meta searches across multiple engines
- Inputs:
query(string): Search termspage(number, optional): Page number (default: 1)language(string, optional): Language code (e.g., ‘en’, ‘all’, default: ‘all’)categories(array, optional): Search categories (default: [‘general’])- Available: “general”, “news”, “science”, “files”, “images”, “videos”, “music”, “social media”, “it”
time_range(string, optional): Time filter (all_time/day/week/month/year, default: ‘all_time’)safesearch(number, optional): Safe search level (0: None, 1: Moderate, 2: Strict, default: 1)
- Behavior:
- Instances listed in
SEARXNG_INSTANCESare tried in order; the first one that answers with results wins. - An instance that is reachable but has no matches returns
No results found for "".— an empty search is a normal result, not an error. - The error
All SearXNG instances failedis returned only when no instance was reachable at all: connection errors, non-2xx responses, or replies that aren’t a valid SearXNG JSON search response.
- Instances listed in
Development
git clone https://github.com/kevinwatt/mcp-server-searxng.git
cd mcp-server-searxng
npm install
npm run build # compiles to dist/src/
npm test # unit tests; HTTP is mocked, no live instance needed
node dist/src/index.js # run the server on stdio
Run a single test case with npm test -- -t "should resolve urls correctly".
License
This MCP server is licensed under the MIT License. See the LICENSE file for details.
Prerequisites
You need a local SearXNG instance running. To set it up:
Run SearXNG with Docker
Quick Start
# Create config directory
mkdir -p searxng
# Create config file
安装
npx -y @kevinwatt/mcp-server-searxng配置
{
"mcpServers": {
"searxng": {
"command": "npx",
"args": [
"-y",
"@kevinwatt/mcp-server-searxng"
]
}
}
}