SearXNG MCP Server

SearXNG MCP Server

用于SearXNG的MCP Server。

SearXNG MCP 服务器 smithery 徽章

这是一个集成了 SearXNG API 的 MCP 服务器,为语言模型提供网页搜索功能。

功能简介

  • 网页搜索:通用查询、新闻、文章
  • 分页支持:控制结果数量和偏移量

使用方法

1. 配置 SEARXNG_URL

公共实例列表 选择一个 SearXNG 实例,或使用本地实例。默认值为 http://localhost:8080

2. 安装选项

通过 Smithery 安装 (推荐)

npx -y @smithery/cli install @ihor-sokoliuk/server-searxng --client claude

使用 NPX

claude_desktop_config.json 中添加:

{
  "mcpServers": {
    "searxng": {
      "command": "npx",
      "args": ["-y", "<mcp-searxng仓库路径>/"],
      "env": {
        "SEARXNG_URL": "YOUR_SEARXNG_INSTANCE_URL"
      }
    }
  }
}

使用 Docker

# 构建镜像
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"
      }
    }
  }
}

可用工具

searxng_web_search

执行网页搜索并支持分页

  • 输入参数:
    • query (字符串): 搜索词
    • count (数字, 可选): 每页结果数 (默认: 20)
    • offset (数字, 可选): 分页偏移量 (默认: 0)

许可证

MIT 许可证