这是一个集成了 SearXNG 的 MCP 服务器实现,专注于提供隐私保护的元搜索功能,能结合多个搜索引擎的结果,为用户带来更全面、安全的搜索体验。
本服务器可直接运行,也能与 Dive Desktop 结合使用,下面为你详细介绍使用方法。
使用以下命令进行全局安装:
npm install -g @kevinwatt/mcp-server-searxng
直接运行服务器:
mcp-server-searxng
与 Dive Desktop 结合使用:
{
"mcpServers": {
"searxng": {
"command": "npx",
"args": [
"-y",
"@kevinwatt/mcp-server-searxng"
]
}
}
}
query
(字符串):搜索词。page
(数字,可选):页码(默认:1)。language
(字符串,可选):语言代码(如 'en'、'all',默认:'all')。categories
(数组,可选):搜索类别(默认:['general']),可用值:"general"、"news"、"science"、"files"、"images"、"videos"、"music"、"social media"、"it"。time_range
(字符串,可选):时间过滤器(按天/周/月/年)。safesearch
(数字,可选):安全搜索级别(0: 无,1: 中等,2: 严格, 默认:1)。http://localhost:8080
。MCP-SearXNG/1.0
。示例配置:
{
"mcpServers": {
"searxng": {
"name": "searxng",
"command": "npx",
"args": [
"-y",
"@kevinwatt/mcp-server-searxng"
],
"env": {
"SEARXNG_INSTANCES": "http://localhost:8080,https://searx.example.com",
"SEARXNG_USER_AGENT": "CustomBot/1.0",
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
}
}
}
}
⚠️ 重要提示
在生产环境中禁用 SSL 证书验证是不推荐的。