M

MCP搜索服务

@ihor-sokoliuk/mcp-searxng
1 Stars 173 次浏览 ihor-sokoliuk 更新于 2026-08-23

一个集成了SearxNG API的MCP服务器实现,提供网页搜索功能。

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "searxng": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "SEARXNG_URL",
        "mcp-searxng:latest"
      ],
      "command": "docker",
      "env": {
        "SEARXNG_URL": "YOUR_SEARXNG_INSTANCE_URL"
      }
    }
  }
}

该服务需要配置环境变量:SEARXNG_URL

可用工具 (2 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

searxng_web_search 3 个参数 需填 1 项

Performs a web search using the SearxNG API, ideal for general queries, news, articles, and online content. Use this for broad information gathering, recent events, or when you need diverse web sources.

必填参数:query

web_url_read 1 个参数 需填 1 项

Read the content from an URL. Use this for further information retrieving to understand the content of each URL.

必填参数:url

服务介绍

SearXNG MCP 服务器

一个集成了 SearxNG API 的 MCP 服务器 实现,提供了网页搜索功能。

smithery 徽章

特性

  • 网页搜索:通用查询、新闻、文章,并支持分页。
  • 分页:控制返回结果的数量和结果计数选项。

工具

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

配置

设置 SEARXNG_URL

  1. 公共实例列表 中选择一个 SearxNG 实例,或使用你的本地环境。
  2. SEARXNG_URL 环境变量设置为实例 URL。
  3. 默认的 SEARXNG_URL 值是 http://localhost:8080

与 Claude Desktop 一起使用

通过 Smithery 安装

要通过 Smithery 自动安装 SearxNG 服务器用于 Claude Desktop:

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

NPX

{
  "mcpServers": {
    "searxng": {
      "command": "npx",
      "args": [
        "-y"
        "<full path to mcp-searxng repo>/"
      ],
      "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"
      }
    }
  }
}

许可证

此 MCP 服务器采用 MIT 许可证。这意味着你可以在遵守 MIT 许可证条款和条件的前提下自由使用、修改和分发该软件。有关更多详细信息,请参阅项目仓库中的 LICENSE 文件。

相关 MCP 服务