SearXNG MCP服务器
一 MCP服务器 实现集成了SearxNG API,提供了web搜索功能。
](https://smithery.ai/server/@ihor-sokoliuk/server-searxng)
特性
- 网页搜索:一般查询、新闻、文章,带页码。
- 分页:控制返回大小和结果计数选项。
工具
- 搜索引擎web_search
- 使用分页执行网络搜索 - 输入: - query (string):搜索词 - count (数字,可选):每页结果(默认值20) - offset (数字,可选):分页偏移量(默认值0)
配置
设置SEARXNG_URL
- 从中选择SearxNG实例 公共实例列表 或者使用您当地的环境。
- 设置
SEARXNG_URL环境变量到实例URL。 - 默认值
SEARXNG_URL值是http://localhost:8080.
使用Claude Desktop
通过Smithery安装
通过以下方式自动安装适用于克劳德桌面的SearxNG服务器 史密瑟里:
npx -y @smithery/cli install @ihor-sokoliuk/server-searxng --client claudeNPX
{
"mcpServers": {
"searxng": {
"command": "npx",
"args": [
"-y"
"/"
],
"env": {
"SEARXNG_URL": "YOUR_SEARXNG_INSTANCE_URL"
}
}
}
}码头工人
构建
docker build -t mcp-server-searxng:latest -f Dockerfile .使用
将此添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"searxng": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SEARXNG_URL",
"mcp-server-searxng:latest"
],
"env": {
"SEARXNG_URL": "YOUR_SEARXNG_INSTANCE_URL"
}
}
}
}许可证
此MCP服务器根据MIT许可证获得许可。这意味着您可以根据MIT许可证的条款和条件自由使用、修改和分发软件。有关更多详细信息,请参阅项目存储库中的LICENSE文件。
